3DSParser error with null reference/object. Works with ObjParser

Software: Away3D 4.x

empend, Member
Posted: 17 January 2012 04:19 AM   Total Posts: 77

When I try loading my model as a .3ds I get this error:

TypeErrorError #1009: Cannot access a property or method of a null object reference.
 
at away3d.loaders.parsers::Max3DSParser/proceedParsing()
 
at away3d.loaders.parsers::ParserBase/onInterval()
 
at flash.utils::Timer/_timerDispatch()
 
at flash.utils::Timer/tick() 

When I load the same model exported as a .obj, it works.

I’m assuming this is just a bug.
Does anyone have a fix for this?

   

Avatar
theMightyAtom, Sr. Member
Posted: 17 January 2012 10:05 AM   Total Posts: 669   [ # 1 ]

Could be a material the Max parser doesn’t understand.
Most 3DS models exported from MAX work well.
paths to material assets are sometimes shortened by the exporter, but that would give you a different error.

   

empend, Member
Posted: 17 January 2012 09:51 PM   Total Posts: 77   [ # 2 ]

There is no material data being exported, it’s just geometry.
I also changed the context for the loader3D, so it doesn’t load other files.

I think I’ll use an OBJ parser I made, it works 100%, but only with certain settings.
It was made in a day, so I wasn’t going to work too hard on it.

Away3D’s ObjParser only works when I turn off “objects as OBJ objects”, and when I turn it off the meshes are combined.
At least if I used my own I would be able to have each mesh…

If someone still has a fix, I would rather use the Away3D parsers!

   

Avatar
theMightyAtom, Sr. Member
Posted: 18 January 2012 08:26 AM   Total Posts: 669   [ # 3 ]

If you could share your .3ds file I can try loading it.
Is your file coming from 3D Studio MAX?

   

empend, Member
Posted: 18 January 2012 09:45 AM   Total Posts: 77   [ # 4 ]

Do you have an email, or something I can send it to privately?
I don’t exactly want to hand out my art asset.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X