loading and animating a mesh?
Blitz3D Forums/Blitz3D Programming/loading and animating a mesh?
| ||
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? |
| ||
i dont understand these animated meshes much, but as i understand it, you use Animate mesh, 1 Animate [mesh your using], [looped] |
| ||
Still not working... Do I put this in the main loop or what? |
| ||
In addition to using the Animate command, make sure to call UpdateWorld every frame. The animation is only incremented on UpdateWorld. |
| ||
does your Animated Mesh have any actual movement? IE KeyFrames? |
| ||
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 |