b3d not loading

BlitzMax Modules Forums/MiniB3D/b3d not loading

Just to let you know, brad the developer of Unwrap3D has a new b3d export plugin on his way. I tested it with some different multi hierarchy models with complex joints and they all work great now.

But to your problem, it works perfectly for me, I changed some lines and did a simple import/export in Unwrap3D. I did a weld model and that changed the number of 6014 to 2040!
I didn't change anything when exporting (textures and so on, all default)

Here is the code:

ps: i have all data in one directory for testing, the filename changed.
I added an octree line for the collisions
I changed the camera range, so that I am able to see the stuff inside the room. (You have a BIG room ;) )

castle2a.b3d

SuperStrict
Import "../../MiniB3D.bmx"
Graphics3D(800,600)
Local Fondo:TMesh = LoadMesh ("castle2a.b3d")
If  fondo = Null Then 
	Notify("Unable to load")
	End
EndIf
' create mesh octree - makes collision detection faster (MiniB3D only)
CreateOctree(fondo,512,0)
Local cam:TCamera = CreateCamera()
cam.CameraRange(1,100000)
EntityType(cam,1)
EntityRadius(cam,1)
EntityType(fondo,2)
Collisions(1,2,4,2)

While Not KeyHit(key_escape)
	UpdateWorld()
	RenderWorld()
	If KeyDown(key_up) Then cam.TurnEntity(2,0,0)
	If KeyDown(key_down) Then cam.TurnEntity(-2,0,0)
	If KeyDown(key_left) Then cam.TurnEntity(0,2,0)
	If KeyDown(key_right) Then cam.TurnEntity(0,-2,0)
	If KeyDown(key_w) Then cam.MoveEntity(0,0,1)
	If KeyDown(key_s) Then cam.MoveEntity(0,0,-1)
	Text 0,0,cam.EntityX() + ", " + cam.EntityY() + ", " + cam.EntityZ()
	If KeyDown(key_SPACE) Then
		cam.PointEntity(fondo)
	End If
	Flip()
Wend


Edit: Thanks Mik