LoadAnimSeq
Blitz3D Forums/Blitz3D Programming/LoadAnimSeq
| ||
Hi, How does LoadAnimSeq() work? Do I create a model with no vertices and just the bones, and then load this into a model with the same bone structure? Do I have to load my model with LoadAnimMesh or is LoadMesh good enough? Thanks. |
| ||
Global Mesh = LoadAnimMesh("model.b3d") Dim seqs(8) seqs(1) = LoadAnimSeq (Mesh,"crawl idle.b3d") seqs(2) = LoadAnimSeq (Mesh,"crawl.b3d") seqs(3) = LoadAnimSeq (Mesh,"run.b3d") seqs(4) = LoadAnimSeq (Mesh,"walk.b3d") seqs(5) = LoadAnimSeq (Mesh,"death 1.b3d") seqs(6) = LoadAnimSeq (Mesh,"death 2.b3d") seqs(7) = LoadAnimSeq (Mesh,"death 3.b3d") seqs(8) = LoadAnimSeq (Mesh,"jump left.b3d") ; THEN DO Animate Mesh,1,0.3,seqs(5) ; number from the array ^_^ I dunno how most people do it. But you can set it all up, so you just load in the model using loadanimmesh, and extractanimseq. Doesn't suppose it really matters :D |
| ||
Thanks. In this case, what is in, say, "run.b3d"? Is just the bones enough? So I could re-use these files with different models (so I could make the walking animation only once and re-use it for enemies, other players, npc's, ...)? |
| ||
Yep, that seems to be the main idea behind it. I imagine that the models must be build the same way and the vertices in the same order tho. I'm not too sure tho, i didn't write that code :o) |