|
Set a specific point of the animation
See STATE_3D_animation_get_triangle_point() for more information
Note 1
--------
Please remember to give a name to a frame before you change its point
set the frame name using STATE_3D_animation_set_frame_name()
The name should start with letters and end with digits. For example
walk02. After calling STATE_3D_animation_finished_editing() all consequtive frames that have the same letters
will be grouped into one sequence. For example walk01, walk02, walk03 will be grouped to sequence walk.
Note 2
--------
Please note that modifying points of the animation doesnt work very well with the md2 file format
This is because the md2 file format represent each point with three BYTES (Thats right, only one byte for X, one for Y and one for Z !!!)
In order to modify an md2 animation in realtime it is best to convert it first to the anim3d format.
To convert from md2 to the anim3d format simply do a short program that looks like this
void main()
{
DWORD obj=STATE_object_create_from_file("woman.md2");
DWORD anim3d=STATE_object_get_3D_animation(obj);
STATE_3D_animation_save(anim3d,"woman.anim3d");
}
Note that the anim3d format is a lot better for manipulating frames in realtime
though the file created is a lot bigger. This means that it will use more memory
and thus is less recommended to use if you have many models and you are concern
with the speed of your application.
|