PDA

View Full Version : small md5mesh & md5anim loader class



cbwan
12-01-2002, 09:38 AM
if anybody is interested I've made
a small md5mesh & md5anim loader class.
full source code for class and a small linux viewer here :
http://www.nowan.net/cb/3d

animation is not perfect, I'm still working on it, but it works fine for several anims http://www.opengl.org/discussion_boards/ubb/wink.gif

suggestions for improvement are very welcome!

have fun!
cbwan
--
It's a new dawn, it's a new day, it's a new life, and I'm feeling good!
--
edit: changed url & added linux to 'linux viewer' =)

[This message has been edited by cbwan (edited 12-02-2002).]

Asgard
12-01-2002, 09:50 AM
Cool. Thanks for sharing. Have to try it out right away http://www.opengl.org/discussion_boards/ubb/smile.gif

Nakoruru
12-02-2002, 06:53 AM
I was wondering, since md5 and other doom formats are just a text files, if anyone has created a lex and yacc files for them?

I was planning on doing it myself, but I have been unable to get ahold of the, admittedly illegal, materials I would need to test it ^_^

I've come to the conclusion that any future file formats I create will be text files (compilable into binary if necessary), and lex/yacc are much easier than writing parsers by hand.

SirKnight
12-02-2002, 07:10 AM
Originally posted by Nakoruru:
I was wondering, since md5 and other doom formats are just a text files, if anyone has created a lex and yacc files for them?

Yes, well pretty much. That post on flipcode where I found the first md5mesh loading code has it in there by the same person who posted the md5mesh code.

-SirKnight

SirKnight
12-02-2002, 07:12 AM
I decided to post the link so you wont have to search for it your self. http://www.opengl.org/discussion_boards/ubb/biggrin.gif http://www.flipcode.com/cgi-bin/msg.cgi?showThread=00006455&forum=3dtheory&id=141

-SirKnight

[This message has been edited by SirKnight (edited 12-02-2002).]

Nakoruru
12-03-2002, 09:45 AM
Cool. I'll have a go at removing any backing up from the lex grammar (if there is any).