b3d not loading

BlitzMax Modules Forums/MiniB3D/b3d not loading

if you load it up in Unwrap3d and export it (with multiple meshes checked) it will load and collisions will work.

the 3d world studio? exporter seems to be creating an animated mesh. (maybe for doors in the level or something?) sphere to poly collisions don't work with animated meshes.

here is a code snippet:

SuperStrict
Import "minib3d.bmx"
Local width:Int = 800
Local height:Int = 600
Local move#
Local lateral#
Local thrust#=0.1
Local mxs#=-90
Local mys#=0

Graphics3D(width,height)
Local Fondo:TMesh = LoadMesh ("castle3/castle2b.b3d")
If  fondo = Null Then 
	Notify("Unable to load")
	End
EndIf
Local cam:TCamera = CreateCamera()
cam.CameraRange(0.001,10000)
EntityType(cam,1)
EntityRadius(cam,20)
EntityType(fondo,2)
Collisions(1,2,4,2)

While Not KeyHit(key_escape)
	UpdateWorld()
	RenderWorld()
	
	mxs#=mxs#+(MouseXSpeed()*.3)
	mys#=mys#+(MouseYSpeed()*.3)

	RotateEntity cam,mys#,-mxs#,0

	If KeyDown(KEY_SPACE)=False
		MoveMouse width/2,height/2
		MouseXSpeed() ' flush
		MouseYSpeed() ' flush
	EndIf

	
	If KeyDown(KEY_W) Or KeyDown(KEY_UP)=True Then move#:+thrust  ' move camera forward
	If KeyDown(KEY_S) Or KeyDown(KEY_DOWN)=True Then move#:-thrust' move camera back
	If KeyDown(KEY_A) Or KeyDown(KEY_LEFT)=True Then  lateral:-thrust' move camera left
	If KeyDown(KEY_D) Or KeyDown(KEY_RIGHT)=True Then lateral:+thrust'move camera Right
	
	move:*0.99
	lateral:*0.99
	MoveEntity cam,lateral#,0,move#
	
	Text 0,0,cam.EntityX() + ", " + cam.EntityY() + ", " + cam.EntityZ()
	If KeyDown(key_SPACE) Then
		cam.PointEntity(fondo)
	End If
	Flip()
Wend