entity and its child

Blitz3D Forums/Blitz3D Programming/entity and its child

vivaigiochi(Posted 2006) [#1]
I save a b3d model with 3dsmax.
Inside the model there some cube that moving along a path.
i use findchild to find the child and use animate but
blitz say that entity has no animation.
Ok this is because the entity isn't root.
HOw can extract the animation for each entity


b32(Posted 2006) [#2]
You should loop through the root's animation, and then use SetAnimKey on each child.


vivaigiochi(Posted 2006) [#3]
ok! i will try this.many thanks


vivaigiochi(Posted 2007) [#4]
NOw i have setup setanimkey entity,1 for each entity there is in b3d file, but when i use animate blitz say entity has no animation


jfk EO-11110(Posted 2007) [#5]
Other than with SetAnimKey, LoadAnimMEsh is not thought to load multiple animations in one file. They have to be played all together as one animation. Solution: save them seperately, then load them in blitz and parent them to a pivot. This way you can animate each child.


vivaigiochi(Posted 2007) [#6]
I load each entity in memory using type, than i use setanimkey for each entity (it is the same frame for all entities...). BUt not works.... I just know of separate saving....


b32(Posted 2007) [#7]
I converted the LoadAnimMesh example and tested it on a .b3d animated mesh. It needs a .b3d file, and a 'subobject' needs to be defined. It works, but it might need some adjustments to fit your model.



vivaigiochi(Posted 2007) [#8]
Ok there is all of i asked but how define a subobjects in max