Tuesday 6 July 2010

OBJ model fails to load in Away3D

Error contains:
Error #1009: Cannot access a property or method of a null object reference
away3d.loaders::Obj/parseMtl()...


Seems to affect OBJ files that contain mtl file references that have been created on a Linux PC.

Solution is to open the obj file in wordpad in Windows and just resave it.
I suspect that this changes the line endings to Windows native format.