md2

Hi Alex

Blitz have a new animation command : ExtractAnimSeq

This command allows you to convert an animation with an MD2-style series of anim sequences into a pure Blitz anim sequence, and play it back as such using Animate.

Example:
mesh=LoadAnimMesh( base_mesh$ ) ;anim sequence 0.
ExtractAnimSeq( mesh,0,30 ) ;anim sequence 1: frames 0…30 are ‘run’
ExtractAnimSeq( mesh,31,40 ) ;anim sequence 2: frames 31…40 are ‘jump’ etc etc…
Animate mesh,3,1,2 ;play one-shot jump anim

I’ve not yet use this command.

You can find here a demo of my first game animation test (1,5 Mo) :
[img:3meovt70]http://www.bayre.com/worklog/upload/alpha22_05_02.zip[/img:3meovt70]
<!– m –><a class="postlink" href="http://www.bayre.com/worklog/upload/alpha22_05_02.zip">http://www.bayre.com/worklog/upload/alpha22_05_02.zip</a>&lt;!– m –>
. I use an amd 1800 xp, geforce2, i’ve not tested this into an other machine ! At the beginning position the mouse into the middle of the window. Then you can orient the camera when you move the mouse pointer. Use the left and right mouse button to zoom in/out. Use the directional keys to move the man.

Hello everybody…

i want create an animate a character for my game and export the model to md2 format (to use into Blitz3d). But i’ve some problems with the animation.

I’ve Created a skin, bones and attached the skin. Now i can animate my model by moving some bones, but i can’t move all the model.

In fact, i want compose a jump movement, when my model jump, its body move (legs, arm,…) and _all_ the model move. (translation).

Is it possible to do this : animate legs and arms and move all the model in a same animation ?

I hope you understand my problem, my english is very poor so i’ve some difficulties to explain…

Thanks!

This doesn’t work for me. andnbsp;I believe that i’ve another problem with my bone hierarchy… I must do some tests to find where is the problem !

I’ve some bugs with 3dc when i experiment to move my model (it crash!), but it’s a new pc and i’ve not updated my video driver yet.

i believe that i must understand and use your animation hierarchy tutorial before experiment the md2 ! In fact bones is for me too complicated <!– s;-) –><img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";-)" title="Wink" /><!– s;-) –> Perhaps animation hierachy is the best choice for the newbie <!– s;-) –><img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";-)" title="Wink" /><!– s;-) –>

Thanks Alex, andnbsp;your tutorial is fantastic !

I’ve realised an very simple animated model and incorpore it in my Blitz code. In fact, each .x exported file represents an action (walk, run or andnbsp;jump). Then , it’s very easy to use the different files into a simple sequential animation into Blitz3d.

[img:14socxqc]http&#58;//www&#46;bayre&#46;com/worklog/upload/man_move&#46;gif[/img:14socxqc]

You must be logged in to reply in this thread.

4 posts