Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

3D Model Browser in C#.NET

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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

828 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