noob problem loadMesh

BlitzMax Modules Forums/MiniB3D/noob problem loadMesh

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.

why is this program not equal to the miniB3d version?

Graphics3D 800, 600

a = LoadMesh("media/albero.b3d")
camera = CreateCamera()
PositionEntity camera, 0, 10, -20


While Not KeyDown(1)

RenderWorld
Flip
Wend

End


BlitzMax version

import  sidesign.minib3d

graphics3d 800, 600

camera= createCamera()
positionentity camera, 0, 10, -20

a=LoadMesh( "media/albero.b3d" )


while not keyhit(key_esc)

renderworld
flip

wend

end


the second program (minib3d) when executed give "Unhandled Exception:Attemp to access field or method of Null object"

did i mistake something?