bones

Blitz3D Forums/Blitz3D Beginners Area/bones

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It doesn't animate but it loads fine. I suspect it is an error with your code.

I used this to test the mesh. It loads fine but there is no movement.

Graphics3D 640,480,16,2

mesh=LoadAnimMesh("man.b3d")
Animate mesh,1,2

camera=CreateCamera()
light=CreateLight(camera)
MoveEntity camera,0,3,-5

debugmesh(mesh)

DebugLog AnimLength(mesh)

Repeat

	UpdateWorld
	RenderWorld
	Flip

Until KeyHit(1)

End

Function debugmesh(mesh)

	DebugLog "children= "+CountChildren(mesh)
	DebugLog "class= "+EntityClass(mesh)
	
	For i=1 To CountChildren(mesh)
		child=GetChild(mesh,i)
		debugmesh(child)
	Next

End Function


Make sure your mesh is in the same directory as the bb file.

Also to check your blitz version go to the help menu and click about. If you have the latest version then your runtime will be 1.85.

If it isn't 1.85 then go to the account tab at the top of the page and download the latest update from the product updates page.