Solved

3D Model Browser in C#.NET

Posted on 2013-11-20
5
1,175 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now