loading and animating a mesh?

Blitz3D Forums/Blitz3D Programming/loading and animating a mesh?

elseano(Posted 2003) [#1]
Noobish yet very necesary question ;]
Once I have loaded a mesh with the LoadAnimMesh function, how do I animate it?
ie. If it was a walk cycle, make it go through the frames and then loop back to the beginning again?
And what does SetAnimKey do, exactly...?
Can anyone help me?


Neochrome(Posted 2003) [#2]
i dont understand these animated meshes much, but as i understand it, you use Animate mesh, 1
Animate [mesh your using], [looped]


elseano(Posted 2003) [#3]
Still not working...
Do I put this in the main loop or what?


jhocking(Posted 2003) [#4]
In addition to using the Animate command, make sure to call UpdateWorld every frame. The animation is only incremented on UpdateWorld.


Neochrome(Posted 2003) [#5]
does your Animated Mesh have any actual movement? IE KeyFrames?


Doggie(Posted 2003) [#6]
But the animate command does not have to be in the loop.

For example

obj1=LoadAnimMesh("D:\4x\crap1.x")
PositionEntity obj1,67,17,10
ScaleEntity obj1,5,5,5
EntityType obj1,2
EntityRadius obj1,2
EntityAlpha obj1,1.0
EntityBlend obj1,1
Animate obj1,1,.4
While Not Keyhit(1)
UpdateWorld
RenderWorld
Wend