How to load and animate MD2 models

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Nobby
Posts: 3
Joined: Fri Jul 20, 2012 7:04 am

How to load and animate MD2 models

Post by Nobby »

Hi all

How can I load different MD2 human models with different frames and poses.
In CAnimatedMeshMD2.cpp it seems the animations (stand, run..) are hard-coded.

I also look for a function to place a MD2 (or other) model to the ground.
That means the lowest point of the model should be placed on the subjacent polygon.

Thank you for any hint,
Nobby
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: How to load and animate MD2 models

Post by hybrid »

You can always set arbitrary frame loops, just not by name. And for the lowest point you should animate the model to each frame and check the bounding box.
Post Reply