Hi there,
This is a message for those who has previous experience writing file-export plug-ins for 3DSMAX. I''m having a hard time extracting an animation out of a MAX scene.
Say I have a sphere that''s animated, say it travels from left to right in 100 frames. What I''ve tried to do is simply ask the MAX system to give me the location of the vertices in every frame. I know this sounds pretty dumb, but I''m having trouble to even get this to work. The objects I export don''t move!!!
Here''s my code to get the time information:
Interface *gi;
Interval aniRange = gi->GetAnimRange();
tpf = GetTicksPerFrame();
startTime = aniRange.Start();
endTime = aniRange.End();
Then I for loop through endTime to startTime, and I do the following:
Object *obj = node->EvalWorldState(doItTime).obj;
// and later on, I do
tri = (TriObject *)obj->ConvertToType(doItTime, triObjectClassID);
so now I have the TriObject (the mesh) at the specified time... but this isn''t working. The above code should look familiar to anyone who''s done this before.