View Full Version : exporting skeletal animation in md2
influt 10-15-2008, 01:44 PM Hello!
I have made a model with armature and animated it. In Blender, everything works fine (see this (http://rapidshare.de/files/40683512/test.blend.html)), but after exporting it to md2 (it's here (http://rapidshare.de/files/40683513/after_export.blend.html)), the mesh geometry is mess! I don't know why http://blenderunderground.com/forums/images/smiles/icon_sad.gif The model in exported md2 file is broken, too. http://blenderunderground.com/forums/images/smiles/icon_sad.gif
Can anybody help me? What am i doing wrong?
|
|
chewedon
10-22-2008, 05:11 AM
MD2 is a frame based animation format.
It isn't a skeletal animation format.
and I'm not sure how you even export the animation out in md2, I tried to export one out but it doesn't work for me.
Ran13
10-22-2008, 08:30 PM
I'm not sure how Blender handles this, but you usually need some sort of .qc (quake 'c') quake script file that list the frames in teh animation before the MD2 can be compiled.
alternately, if you have the original quake2 tools, export each frame as 3ds (xxxx001.3ds for frame 1, xxx002.3ds for frame2, etc) and use the qdata tool to compile the MD2 and create the required QC file.
It's been quite some time since I messed with q2, so my memory of the process is extremely fuzzy. :p
chewedon
10-23-2008, 08:10 AM
Right, so that's how you do it.
I remember ID Software gave out the source code of Quake 2 for free.
Does the conversion tool come with it ?
Ran13
10-23-2008, 04:23 PM
IIRC, the source code comes with not only the QData tool, but the source for it as well.
chewedon
10-26-2008, 02:57 AM
Well, I'm on the same boat as Influt.
I exported the md2 model, but I got no animation.
I also downloaded the Quake 2 source, but I don't see any QTool or qc file.
thedaemon
10-28-2008, 10:26 PM
You must make a qc file for any animation to work.
chewedon
10-29-2008, 03:58 AM
Hey, I got the animation working. . .strangely enough.
I didn't need any QTool or qc file.
I simply just exported my mesh from Blender as md2, load it into my OpenGL program and I had animation :)
The md2 loader I'm using is obtained from game wiki. Thank you for that guys !
-------
INFLUT,
how are you drawing your md2 mesh in OpenGL ?
Are you using glBegin(GL_TRIANGLES) or glBegin(GL_POLYGON) ?
You need to use glBegin(GL_TRIANGLES) since md2 converts everything into triangle, glBegin(GL_POLYGON) would most definitely screw up the look of your mesh in OpenGL.
CGTalk Moderation
10-29-2008, 03:58 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.