Jump to content
  • Advertisement
Sign in to follow this  
CombatHammie

OpenGL Models in OpenGL... any code?

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

I made a model in Softimage XSI mod tool, and need ANY OpenGL code to view it. I have this book: http://glbook.gamedev.net/moglgp/code.asp. But it appears to be that the chapter that covers model (OBJ) loading doesn't have code. The book only shows how to render the model and no other code.

Share this post


Link to post
Share on other sites
Advertisement
I made this a long time ago. It's probably fairly bad - I think it limits you to one material per object or something (and it could be buggy, I can't remember now).

But you might be able to do something with it.

http://members.gamedev.net/sprite_hound/src/objloader.zip

Share this post


Link to post
Share on other sites
Thanks for the code, I will try it out ASAP. I am, however, wondering why is it so hard to find any resources/samples/reading on this subject. It's like model-loading and drawing is a taboo in OpenGL? :S

Share this post


Link to post
Share on other sites
You can find a lot of file loader source code using www.google.com

http://www.ultimategameprogramming.com/demoDownload.php?category=OpenGL&page=6
http://assimp.sourceforge.net/
http://www.robthebloke.org/opengl_programming.html#5
http://users.design.ucla.edu/~tatsuyas/tools/objloader/
http://www.thesocialgeek.com/blog/2008/02/obj-loader-in-opengl.html
http://sourceforge.net/projects/objloader

Share this post


Link to post
Share on other sites
Quote:
Original post by CombatHammie
Thanks for the code, I will try it out ASAP. I am, however, wondering why is it so hard to find any resources/samples/reading on this subject. It's like model-loading and drawing is a taboo in OpenGL? :S


Model loading isn t so hard, that you couldn t unroll your own loader/fileformat

afterall there is the collada dom API which can serve as an intermediate format to be converted to any self made format.


Using existing code for such simple things wont teach you anything

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!