[SOLVED -answer inside]Problem when loading a awd model with aw2 parser

Software: Away3D 4.x

ysirjean, Newbie
Posted: 07 August 2013 10:25 AM   Total Posts: 8

Hi,
I have a problem with a model which is good in awaybuilder but whick does an exception in the parseLight function in my appli.

TypeError: Error #1009: Il est impossible d’accéder à la propriété ou à la méthode d’une référence d’objet nul.
at away3d.loaders.parsers::AWD2Parser/parseLight()[C:\Data\ComposantsPerso\2013\AdobeFlashBuilder4.7\WebglueViewer\src\away3d\loaders\parsers\AWD2Parser.as:1082]
at away3d.loaders.parsers::AWD2Parser/parseNextBlock()[C:\Data\ComposantsPerso\2013\AdobeFlashBuilder4.7\WebglueViewer\src\away3d\loaders\parsers\AWD2Parser.as:386]
at away3d.loaders.parsers::AWD2Parser/proceedParsing()[C:\Data\ComposantsPerso\2013\AdobeFlashBuilder4.7\WebglueViewer\src\away3d\loaders\parsers\AWD2Parser.as:317]
at away3d.loaders.parsers::ParserBase/onInterval()[C:\Data\ComposantsPerso\2013\AdobeFlashBuilder4.7\WebglueViewer\src\away3d\loaders\parsers\ParserBase.as:447]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

The reason is that the “lightType=_body.readUnsignedByte();” is 0 and in this case the light object remains null (they’re is no if in this case).
So when the debugger try to access this null object i have an exception.

Solution :
The problem was that matrix storage settings which were changed to precision (not size by default). This settings seems not to be understood by the awd2 parser when loading a simple awd file (see attachment)

 

File Attachments
fenetreC_WOOD_error.awd  (File Size: 79KB - Downloads: 90)
   

ysirjean, Newbie
Posted: 07 August 2013 11:16 PM   Total Posts: 8   [ # 1 ]

the pb is solved !! See above

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X