Solved

3D Model Browser in C#.NET

Posted on 2013-11-20
5
1,312 Views
Last Modified: 2013-12-09
Hi, I'm using VS C#.NET 2010. I would like to create a "browser" where I can view a 3D model. The model's file format is FBX. I would like to have the ability to see (and if possible) rotate a 3D model within a viewable are - much like a picture control.

The problem is that I can do it with a picture, but I don't know what type of control would handle a 3D object. It would definitely have to be a control that is not 2 dimensional like a picture control, but that has some degree of depth.

Has anyone ever seen anything like this that you can recommend a way to accomplish this?

Thanks,
Fulano
0
Comment
Question by:Mr_Fulano
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
ddurgaprasad earned 500 total points
ID: 39665264
Normally ,viewer is any Form in NET terminology.You have two pieces to accomplish in this specific query.First,you need a parser that has the ability to read the model-FBX in this case.
Seondly,you have render(draw) this model in NET Form,which you are calling browser.

Since the task is related to reading a graphic object , rendering it and interacting with it ,OpenGL is preferred.I suggest you to go through a basic applications of OpenGL like below.
The first example shows the 3D interaction basics using C# and OpenGL(Tao).The second one has an example to load the model(VRML) and render in 3D.

1)http://www.codeproject.com/Articles/23739/OpenGL-3D-Navigation-with-Tao-and-C
2)http://www.codeproject.com/Articles/82/A-small-VRML-viewer-using-OpenGL-and-MFC

Wiki says "Autodesk provides a C++ FBX SDK that can read, write, and convert to/from FBX files.".You may want to grab that SDK to read FBX format and render it using OpenGL
0
 

Author Comment

by:Mr_Fulano
ID: 39671803
Hi ddurgaprasad, thank for the suggestions. Your second option is very interesting. I did some further research and think that what I want to do can always be accomplished with XNA. I'm looking further into this, but one of the two options may work.

I'm going to leave this question open for a couple more days in case someone else on the forum has done this and may have additional thoughts. - Thank you none the less for your help.

Fulano
0
 
LVL 2

Expert Comment

by:ddurgaprasad
ID: 39677273
Fulano

 XNA is a good choice.Flip side is,MS is stopping active development of XNA framework.
 If  you have long term objective then you may need to think about alternatives.

durgaprasad
0
 

Author Comment

by:Mr_Fulano
ID: 39684371
Hi durgaprasad, wow…thanks for the heads up on that. I didn't know that MS was discontinuing support. -- OK, well maybe your first set of suggestions were best. I need to mull this over a bit, so let me get to work and make a decision.

I'll get back to you shortly.

Thanks again,
Fulano
0
 

Author Closing Comment

by:Mr_Fulano
ID: 39707527
Very good answer. Thank you very much for your help.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question