Animating a b3d file
Blitz3D Forums/Blitz3D Beginners Area/Animating a b3d file
| ||
im trying to animate a b3d file, but teh only tut i found on it, was for md2 files, i draw teh zombie onto the screen like this: Global zombie1 = LoadMesh("zombie\zombie.b3d") PositionEntity zombie1,15,15,80 EntityType zombie1,PROPS EntityRadius zombie1,0.1 ScaleEntity zombie1,0.1,0.1,0.1 i first tryed to animate it like an md2 file, but it's not a md2, i found a command called "animate" but it needs a preset animation sequence, i also found a "addanimseq" but i can only edit the handle and the length, can't tell it which frames to start and end with... im sure there's something big im not missing, but i can't see it.... |
| ||
ExtractAnimSeq() |
| ||
cool, it works, thx |
| ||
Careful with that command you can't delete a sequence once it has been created, neither can you overwrite one that's has been already allocated, unless you "free" your model and re-init your animation. Working on a hack, but so far not very successful as I can't find the memory area where ExtractAnimSeq() keeps its infomation. |