books that show how to parse model formats

Started by
5 comments, last by V-man 12 years, 11 months ago
Is there any programming books purely on how to parse model formats for c++ and get the model rendering on screen etc...
:)
Advertisement

Is there any programming books purely on how to parse model formats for c++ and get the model rendering on screen etc...


What model formats were you looking for? There are plenty of parsers or parser tutorials out there for the more common model formats.
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper
well i was looking for one that can handle animation data, i know that .x can but i wanted to look at some code that does it with c++
:)
That depends on some facts.
-Which format has the file you want to parse? (e.g. XML)
-What kind of data do you want to retrieve from that file?
-etc.

Maybe there is a manual or something where you can lookup the structure of the file format?

(You wan't to parse a specific file format,don't you?)

Visit my blog, follow me on twitter or check out my bitbucket repositories.

How about using FBX? The format is supported by many Autodesk programs.

Autodesk provides an extensive SDK including model viewer example in C++.

Cheers!

Autodesk provides an extensive SDK including model viewer example in C++
[/quote]

thanks i will look in to it
:)
There are plenty of obj and 3ds loaders out there. Specifications can be found at wotsit.org.
There is collada (xml based).
After you are done with those formats, create your own.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement