To load several animations in one file.osm

wharl

20-07-2006 10:14:16

I've succeed to export .osm from max and succeed to load them with the demo...

But how can I export several animations in one file.osm and load them separately? I found that if I export two animation in one osm, for example, with the names of animat1, animat2, then in the script.osm would appeare animation 'animat1' and 'animat1animat2'.... why? And how can I use them separately?

BTW: why the in the release mode, frame speed would be tem times of debug mode!?!?

BTW2: I found if I raise the value in Key Optimizer, the file size of .osm would reduce(because of cutting the key frame, right?). but the time of the remaining key frame seems not linear increase, why?

Lioric

22-07-2006 03:40:22

You can export just the animation(s) and the entities (not the meshes or other) and other scene with all the data but the animations, then you can load the scenes with the animations as you need and use/apply the loaded animations

The scene loader comes with full source code, so if you need you can customize to your specific needs

About that animation name, seems like a bug, it should be the same name as you defined, send me the scene that produces this

Release mode is faster as the code is optimized (highly optimized), has less size (executes faster and fits in memory pages easily) and dont do most of the debug tests and assertions

Im not sure what you mean about the keyframe is not lineraly increased, keyframes are optimized but the start and final keyframes are not modified to mantain the animation length

wharl

22-07-2006 16:37:29

the source code didn't leave us any fuction to handle different animation in one .osm (thought we can export two in one .osm)....and it would execute the last one by default...

I'm not quite aware of how the keyframe optimizer work... I thought it would be abridged linearly...

Lioric

23-07-2006 02:39:17

The code is there so modify it to suit your needs, see the part that loads the animations, and make a new callback when a new animation is loaded so your application is notified about the new animation and handle it as your applications needs