Help with models
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
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.
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
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
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.
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.
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.
http://www.spacesimulator.net/tut4_3dsloader.html
After you have some experience I recommend checking out COLLADA.
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
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.
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
Popular Topics
Advertisement