The B3D loader example.

BlitzMax Forums/BlitzMax Programming/The B3D loader example.

This is the error i get:

Unhandled exception: Ateemp to access a field of method of a null object

Console:
Compiling:glhead.bmx
Linking:glhead.debug
ld: warning dynamic shared library: /System/Library/Frameworks/IOKit.framework/IOKit not made a weak library in output with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
Executing:glhead.debug
Unhandled Exception: Attempt to access field or method of Null object
ReadByte [$BMXPATH/mod/brl.mod/stream.mod/stream.bmx;506;2]
ReadChunk [$BMXPATH/samples/TeraBit/GLhead/b3dloader.bmx;130;1]
ReadB3D [$BMXPATH/samples/TeraBit/GLhead/b3dloader.bmx;11;1]
glhead [$BMXPATH/samples/TeraBit/GLhead/glhead.bmx;42;1]

This is on my iBook (G3 500Mhz, 10.2 and the December 2002 Dev Kit)


<EDIT>Found the problem, unix is case sensitive for filennames. The sample tries to load "head.b3d" while the file is named "Head.B3D".</EDIT>