PDA

View Full Version : md2 files



geohoffman49431
06-15-2004, 11:24 PM
I would like to learn more about md2 files and how to put them into my own program. Is this a good format for animated models or is there a better one now? Also, I saw that there is a section in md2 files for opengl commands. What does that mean exactly? Are these commands that can make the files easier to display?

Jnz86
06-15-2004, 11:43 PM
these command are for rendering model with GL_TRIANGLES_FAN or GL_TRIANGLES_STRIP, not with simple GL_TRIANGLES, by using triangles strips or fans rendering is faster

here's a toturial how to load MD2 and render it:

http://tfc.duke.free.fr/us/tutorials/models/md2.htm