Jump to content
  • Advertisement
Sign in to follow this  
ehsan2004

loading 3ds files in OpenGL

This topic is 4834 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there I want to load the 3d models in my OpenGL program. I used from the trial version of PolyTrans software. It was so surprising for me. It converts the 3ds files to the OpenGL c codes. But as it's the trial version, there is many holes in the objects. 1.So can i use from another free application to covert the 3ds files to the OpenGL c code? 2. If it's not possible, where can i find the best code to load the 3ds files? I need an easy and good code-not a complicated code- to load the 3ds objects. can you give me a suitable link? Any suggestion? Best Regards -Ehsan-

Share this post


Link to post
Share on other sites
Advertisement
I wouldn't embed 3DS models into your program, but load them separately. Search google for some documentation on the 3DS format. You can then draw the model using vertex arrays, vertex buffer elements, or immediate mode+display lists.

The 3DS file will have a list of objects in it, and each object will have a list of vertices, texture coordinates, and indices. If you want I can write code to convert non-animated 3ds meshes to immediate mode OpenGL commands.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!