Help with models

Started by
8 comments, last by steven katic 16 years, 3 months ago
Hey! I am chugging along learning OGL, and loving it. I feel the next step is to learn how to go about loading models (really, any format, as I presume they use the same concepts in the end). The problem is, most tutorials seem to think you know either a ton about it already, or they start with you explaining things such as primitives (triangles, quads, etc.). Is there a really good tutorial online somewhere that explains the details of loading some sort of model (or creating your own format) that is possibly visual? Thanks so much! FlyingIsFun1217
Advertisement
Ya know, this is one of the hardest things to do in OpenGL, since the API is completely agnostic of any particular model format. You can find tutorials for .3ds files, .bsp files, and many others on google.

Write an OBJ loader. OBJ is a simple format that is human readable, easy to understand, and easy to debug.
"When you die, if you get a choice between going to regular heaven or pie heaven, choose pie heaven. It might be a trick, but if it's not, mmmmmmm, boy."
How to Ask Questions the Smart Way.
Alright, I'd heard that OBJ was easy to understand...

But I'm wondering if there's any really outstanding tutorials anywhere. Something that explains all of the texture coord stuff, vertex data, those kind of vitals to a model.

It would really be awesome if there was a tut that explained most of the stuff with pictures too. I'm quite the visual learner :)

Thanks again!
FlyingIsFun1217
link

Just search for "_____ format" and you can probably find every format.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

I haven't been able to find any source code for importing 3d files so I read in obj files.

http://www.csit.fsu.edu/~burkardt/txt/obj_format.txt

This explains the format but you might be able to understand it just by opening an obj file in a text editor. You can also turn off all the features you don't need when exporting the files to reduce clutter.
or a simpler obj file format description here. I've also got a step-by-step loader example here.

This is old tutorial for 3ds, but a good one for start :
http://www.spacesimulator.net/tut4_3dsloader.html

After you have some experience I recommend checking out COLLADA.
Sincerely,Arto RuotsalainenDawn Bringer 3D - Tips & Tricks
Thanks everybody! All of these seem like extremely useful explanations of the format!

I will be sure to check out all of these in-depth when I get home, as I am currently stuck at school... :/

Thanks again!
FlyingIsFun1217
http://www.wotsit.org/list.asp?fc=2

wotsit.org is a great first stop for links to (m)any sorts of file format,
with examples of reader source code for the typically more common
formats such as 3ds, obj etc.

This topic is closed to new replies.

Advertisement