Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Gandalf

OpenGL Loading objects in OpenGL

This topic is 6674 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

Are there any standard format in OpenGL to load a object? Like the x-files in d3d. I´m aware of glut functions like gluSphere. Almost everyone can make a cube or even a pyramid, but to make a helicopter by hand is more difficult and takes time. Gandalf the White

Share this post


Link to post
Share on other sites
Advertisement
Hrm - as far as my opengl knowledge goes there isn''t any standard opengl import object type format that you are talking about. Generally you have to read whatever file specification u want to use yourself and implement that. I''m making my own 3d-editor (a quick and nasty one) that''ll basically save an object and then I put that into a display list or whatever.
sorry

Share this post


Link to post
Share on other sites
It is very bad. A weak spot in OpenGL.

Do you design monsters and objects also in your editor?

Gandalf the White

Share this post


Link to post
Share on other sites
No, it isn''t a weak spot in oGL, but maybe in a programmer who is too lazy to write his own routine to import files. First of all, there are a billion 3D formats out there, and second of all, why settle for just one format? Most 3D packages will let you export an ascii file with scene and model data, and there are a ton of tutorials on the net about loading 3ds, ase (MAX scene export), obj and Lightwave files. You just have to do a little bit of looking around. Hell, you can have the routine I wrote to load in MAX files if you want it.
If you''re looking for samples, go to nate.scuzzy.net and there are a bunch of samples for loading in model data. There are also some on www.opengl.org, and I''m going to put mine on my site once I get around to it.

-BacksideSnap-

Share this post


Link to post
Share on other sites

  • 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!