Models in OpenGL... any code?

Started by
3 comments, last by Basiror 15 years, 5 months ago
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.
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
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
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
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

http://www.8ung.at/basiror/theironcross.html

This topic is closed to new replies.

Advertisement