Animating a .B3D model in Blitz3D?!?

Blitz3D Forums/Blitz3D Programming/Animating a .B3D model in Blitz3D?!?

Kozmi(Posted 2004) [#1]
Hi Guys...

Just a little curious on how exactly to animate a .b3d model? If I had say 30 frames of animation in this .b3d model, and say that the models' Attack frames are numbered from: 12 to 19.. How exactly would I set-up the Blitz3D code to call and animate these frames within the .b3d model file? I know you can use LoadAnimMesh
to load the .b3d model file, And also use the Animate
keyword to animate your model.. But how do I use the Animate keyword to call the animations I want to use???

Thank's for your help guys!!


scribbla(Posted 2004) [#2]
doctor is this what u mean

mesh = LoadAnimMesh("mymodel.b3d")

; grab the anim frames
attack=ExtractAnimSeq(mesh,12,19)

Animate mesh,1,.9,attack,7

Animate mesh,mode,speed,sequnece,tweening

this might help with code
http://www.btinternet.com/~coloured.pixels/Mek.zip


Kozmi(Posted 2004) [#3]
If this is how a normal .b3d file is animated then.. I would say yes this would do it!! Thank's very much tiler for your kind help! :)