3ds files with groups

Software: Away3D 4.x

michel, Newbie
Posted: 13 October 2011 12:20 PM   Total Posts: 10

Hello,

When i load in a 3ds model with the latest source of away3d that contains groups i get this error:

[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.

And it points to:
if (obj.type == AssetType.MESH) {
In the file:
Max3DSParser.as

Full error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at away3d.loaders.parsers::Max3DSParser/constructObject()[C:UsersMichelDesktopaway3dsrcaway3dloadersparsersMax3DSParser.as:448]
at away3d.loaders.parsers::Max3DSParser/parseObjectAnimation()[C:UsersMichelDesktopaway3dsrcaway3dloadersparsersMax3DSParser.as:438]
at away3d.loaders.parsers::Max3DSParser/proceedParsing()[C:UsersMichelDesktopaway3dsrcaway3dloadersparsersMax3DSParser.as:184]
at away3d.loaders.parsers::ParserBase/onInterval()[C:UsersMichelDesktopaway3dsrcaway3dloadersparsersParserBase.as:305]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

   

Richard Olsson, Administrator
Posted: 13 October 2011 03:10 PM   Total Posts: 1192   [ # 1 ]

Can you please e-mail me the fileĀ and I can debug it? You’ll find my e-mail at http://www.richardolsson.se

   

michel, Newbie
Posted: 14 October 2011 07:14 AM   Total Posts: 10   [ # 2 ]

Email send smile

   

Richard Olsson, Administrator
Posted: 14 October 2011 09:14 AM   Total Posts: 1192   [ # 3 ]

I’ve fixed this and the update is in the git repository now. The parser does not support groups/parenting, but it should not crash, so with this fix it will ignore groups but still load the meshes properly.

   

michel, Newbie
Posted: 14 October 2011 09:26 AM   Total Posts: 10   [ # 4 ]

Ok thanks!
Will group support be added in the future?

   

Richard Olsson, Administrator
Posted: 14 October 2011 09:31 AM   Total Posts: 1192   [ # 5 ]

Yes. Scene graph hierarchies in 3DS will be supported at some point. Maybe even before 4.0 if I find the time amongst all other changes that need to be made.

   

evalerdgffds, Newbie
Posted: 21 October 2011 01:27 AM   Total Posts: 1   [ # 6 ]

  According to the information of the building Lord, I really felt very useful. At the same time reading everyone heated discussion I also see the hope. Really think you gave me a lot of help. thank you!

————————————————————
ugg boots sale womens snow boots ugg classic 5825

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X