hey, I was trying to "translate" the introduction to animation tutorial from c++ to bmax, everything is ok but when I get to animate the mesh automatically, I do it correctly (or that's I think) but does not animate, just stands stopped.
here's the code
Framework leadwerks.engine
Graphics 1280,1024
RegisterAbstractPath AppDir
If Not CreateWorld() RuntimeError "Hubo un fallo al lanzar la aplicacion"
cam:TCamera=CreateCamera()
CameraClearColor cam,Vec4(0,0,1,1)
MoveEntity cam,Vec3(0,0.85,-2)
buffer:TBuffer=CreateBuffer(1280,1024,BUFFER_COLOR0|BUFFER_DEPTH|BUFFER_NORMAL)
light:TLight=CreateSpotLight()
RotateEntity light,Vec3(20,45,0)
EntityColor light,Vec4(2,2,2,1)
MoveEntity light,Vec3(0,0,-5)
SetShadowMapSize light,1024
AmbientLight Vec3(0.1)
mesh:TMesh=LoadMesh("crawler.gmf")
While Not KeyHit(KEY_ESCAPE)
Animate(mesh,AppTime()/100.0,1.0,0,True)
UpdateWorld
SetBuffer(buffer)
RenderWorld
SetBuffer BackBuffer()
RenderLights(buffer)
Flip()
Wend
What am i doing wrong ?
sorry if the question is rather stupid but im just starting with bmax
thanks ^^