[Plib-devel] key frame animation approach - aka Dance Moves
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2000-04-07 20:45:46
|
In order to implement key frame animation from ASE files (TM_ANIMATION samples) I need a selector that can choose between ssgTransforms. I am considering the following approach: use a ssgSelector (or derived class) branch. the branch would have ssgTransform kids all sharing a single ssgVtxTable kid. the selection would cull the correct transform to be applied to the kid. The problem with this approach is the limit of 32 total selections. The selector branch may easily have hundreds of transform keys to guide a camera around the scene or a bird in it's flight path. I'm trying to get a humanoid figure to do a single dance move and it takes around 70 keys to finish the spin. my approach is to create a ssgBaseSelector to remove the limit of 32 total selections. the constructor will take a count 'ns' and i'll use a flag array to keep track of the selections for culling. This should not impact any existing code. ssgBranch will construct a ns=32 ssgBaseSelector. This change will not happen until 1.3 development gets underway. Any comments or suggestions? --Dave McClurg |