weimingtom / away3d

Automatically exported from code.google.com/p/away3d
0 stars 1 forks source link

[Broomstick] Max3DS and Collada Parsers unusable #158

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Compile the Loader3DSTest.as file from the 'away3d-examples-broomstick' package 
and run the swf.

The following error is thrown at runtime:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at away3d.loading.parsers::Max3DSParser/buildMeshGeometry()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\Max3DSParser.as:676]
    at away3d.loading.parsers::Max3DSParser/proceedParsing()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\Max3DSParser.as:190]
    at away3d.loading.parsers::ParserBase/onInterval()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\ParserBase.as:283]
    at away3d.loading.parsers::ParserBase/startParsing()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\ParserBase.as:298]
    at away3d.loading.parsers::ParserBase/parseBytesAsync()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\ParserBase.as:169]
    at away3d.loading::AssetLoader/parse()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\AssetLoader.as:273]
    at away3d.loading::AssetLoader/handleUrlLoaderError()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\AssetLoader.as:244]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

Also, try replacing the asset to load with a DAE file. This throws the 
following error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at away3d.loading.parsers::ColladaParser/parseGeometries()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\ColladaParser.as:153]
    at away3d.loading.parsers::ColladaParser/proceedParsing()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\ColladaParser.as:116]
    at away3d.loading.parsers::ParserBase/onInterval()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\ParserBase.as:283]
    at away3d.loading.parsers::ParserBase/startParsing()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\ParserBase.as:298]
    at away3d.loading.parsers::ParserBase/parseTextAsync()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\parsers\ParserBase.as:192]
    at away3d.loading::AssetLoader/parse()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\AssetLoader.as:276]
    at away3d.loading::AssetLoader/handleUrlLoaderError()[C:\AS3_LIBS\actionscript\Third_Party\away3d_4_0_0_molehill\src\away3d\loading\AssetLoader.as:244]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

The same errors are thrown for both parsers when creating a test 'from scratch' 
which attempts to load either a 3DS or a DAE file.

Original issue reported on code.google.com by duncan.r.hall@gmail.com on 22 Mar 2011 at 1:04

GoogleCodeExporter commented 9 years ago
Apologies, after reading through this thread: 
http://www.mail-archive.com/away3d-dev@googlegroups.com/msg18917.html I've 
realised this is a paths issue. I'm a fool.

Agree with the comment in that thread though that it would be nice to have an 
I/O error fired as it would make debugging a lot easier.

Original comment by duncan.r.hall@gmail.com on 25 Mar 2011 at 5:35