Every time I make a model with animation with Blender, I export it as x and 3ds, neither work, when I try to animate them in blender, 3ds gives me errors saying "Mesh does not have animation" and x just doesnt load the model at all.
Here is my code:
[code]
Graphics3D 800,600
SetBuffer BackBuffer()
camera=CreateCamera()
MoveEntity camera,0,3,0
CameraViewport camera,0,0,GraphicsWidth(),GraphicsHeight()
AmbientLight 255,255,255
MoveEntity camera,0,0,-15
Global ninja=LoadAnimMesh("untitled.x")
Global walk=ExtractAnimSeq (ninja,1,12)
EntityColor ninja,255,0,0
ScaleEntity ninja,2,2,2
Const transpose = 40
;************** Main Loop ***********************************
While Not KeyHit(1)
Animate ninja,1,walk,1,40
UpdateWorld
RenderWorld
Flip
Wend
I've tried to remake animation and model several times buti t does same thing every time. Any ideas?
Here is my code:
[code]
Graphics3D 800,600
SetBuffer BackBuffer()
camera=CreateCamera()
MoveEntity camera,0,3,0
CameraViewport camera,0,0,GraphicsWidth(),GraphicsHeight()
AmbientLight 255,255,255
MoveEntity camera,0,0,-15
Global ninja=LoadAnimMesh("untitled.x")
Global walk=ExtractAnimSeq (ninja,1,12)
EntityColor ninja,255,0,0
ScaleEntity ninja,2,2,2
Const transpose = 40
;************** Main Loop ***********************************
While Not KeyHit(1)
Animate ninja,1,walk,1,40
UpdateWorld
RenderWorld
Flip
Wend
I've tried to remake animation and model several times buti t does same thing every time. Any ideas?