Animation...? HELP!

Blitz3D Forums/Blitz3D Beginners Area/Animation...? HELP!

Da MaN(Posted 2004) [#1]
Hi i'm completely new to blitz or any programing lanquage so
expect some realy stupid questions,

Anyhow i made an animation in milkshape and exported it as an
x file how do i import it into my project.

Any help here would be great!


puki(Posted 2004) [#2]
Hi "Da MaN" - welcome to Blitz.

You'll find info on the loading meshes and stuff here:

http://www.blitzbasic.com/b3ddocs/command_list_3d_a-z.php?show=L

Just post again if you need more help - LoadAnimMesh, similar to LoadMesh, Loads a mesh from an .X, .3DS or .B3D file and returns a mesh handle.

There is example code in there.


scribbla(Posted 2004) [#3]
i convert to .b3d but i guess its the same for an animated .x file


mymesh = LoadAnimMesh("mymesh.b3d")
;----------------------------------------------
; grab the anim frames
idle=ExtractAnimSeq(mymesh,1,20) ; first frame/last frame of anim cycle
walk=ExtractAnimSeq(mymesh,21,30)
run=ExtractAnimSeq(mymesh,31,45)
..and so on

Animate mymesh,1,.6,walk,7 ; for example

may help :)


Tim Nevo(Posted 2004) [#4]
I thought an .X file can't have animation?


puki(Posted 2004) [#5]
I use animated .X files in Blitz3D


Regular K(Posted 2004) [#6]
A signature is small sentence or image thats place at the end of every post you make.

I dont have one, but lots of people do.


puki(Posted 2004) [#7]
"Da MaN" - If you click on the 'Account' button at the top of the site and then 'Edit profile' you can then type in a signature or link something in.


jhocking(Posted 2004) [#8]
Blitz supports heirarchy (older style) animation with the .x file format. It supports both heirarchy and skeletal animation with b3d file format. Since you are using Milkshape, and Milkshape can export b3d file format, you should use b3d.


Gabriel(Posted 2004) [#9]
Erm guys.. The "And by the way whats a signature?
??? " IS his signature ;)


WolRon(Posted 2004) [#10]
That's why signatures should look different from the body of the post (like mine).


VIP3R(Posted 2004) [#11]
LOL @ the signature confusion

I agree with WolRon, can you do that with your signature Sybixsus? I must have read it about 3508 times by mistake ;)


Gabriel(Posted 2004) [#12]
Heh sure.


VIP3R(Posted 2004) [#13]
I just meant stick it in a quote box, not the line thingy ;)

10/10 for effort though :D


Da MaN(Posted 2004) [#14]
Thanks alot guys on on my way to brighter blitz future!


Da MaN(Posted 2004) [#15]
And the way i chose my signature to cause the very confusion
that its just cause!


Da MaN(Posted 2004) [#16]
Im changing my signiture sorry bout the confusion.