PiRSquared17 / awd

Automatically exported from code.google.com/p/awd
Apache License 2.0
0 stars 0 forks source link

Couldn't load AWD exported mode from Max in my Flash App, but it works in the viewer. #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In 3DMax 2012 import house.obj
2. Export as AWD using the AWD exporter 1.0.2
3. The viewer is opened and everything is OK :-)
4. Import in an AS3 project:
....
[Embed(source="../embeds/house.awd", mimeType="application/octet-stream")]
private var Model:Class;
....
Parsers.enableAllBundled();
AssetLibrary.addEventListener(AssetEvent.ASSET_COMPLETE, onAssetComplete);
AssetLibrary.loadData(new Model());
....
5. Run the application
6. The application crashes with the following error:
Error: Error #2030: End of file was encountered.
    at flash.utils::ByteArray/readUnsignedByte()
    at away3d.loaders.parsers::AWD2Parser/parseUserAttributes()[C:\Users\jorge.miranda\Desktop\away3d-away3d-core-fp11-v4.0.0-beta-90-g0a0b3ee\away3d-away3d-core-fp11-0a0b3ee\src\away3d\loaders\parsers\AWD2Parser.as:1053]
    at away3d.loaders.parsers::AWD2Parser/parseMaterial()[C:\Users\jorge.miranda\Desktop\away3d-away3d-core-fp11-v4.0.0-beta-90-g0a0b3ee\away3d-away3d-core-fp11-0a0b3ee\src\away3d\loaders\parsers\AWD2Parser.as:376]
    at away3d.loaders.parsers::AWD2Parser/parseNextBlock()[C:\Users\jorge.miranda\Desktop\away3d-away3d-core-fp11-v4.0.0-beta-90-g0a0b3ee\away3d-away3d-core-fp11-0a0b3ee\src\away3d\loaders\parsers\AWD2Parser.as:267]
    at away3d.loaders.parsers::AWD2Parser/proceedParsing()[C:\Users\jorge.miranda\Desktop\away3d-away3d-core-fp11-v4.0.0-beta-90-g0a0b3ee\away3d-away3d-core-fp11-0a0b3ee\src\away3d\loaders\parsers\AWD2Parser.as:206]
    at away3d.loaders.parsers::ParserBase/onInterval()[C:\Users\jorge.miranda\Desktop\away3d-away3d-core-fp11-v4.0.0-beta-90-g0a0b3ee\away3d-away3d-core-fp11-0a0b3ee\src\away3d\loaders\parsers\ParserBase.as:309]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

What is the expected output?
The model must be shown as in the viewer, since I using the latest version of 
both Max AWD Exporter and Away3D sources.

What do you see instead?
The model could not be loaded in an AS3 project.

What version of the product are you using? On what operating system?
Exporter: V1.0.2 & V1.0.1
Away3D: v4.0.0-beta-68 & v4.0.0-beta-90 (latest Dev & latest Main)

Please provide any additional information below.

Original issue reported on code.google.com by jorgermi...@gmail.com on 12 Jun 2012 at 8:24

Attachments:

GoogleCodeExporter commented 9 years ago
Make sure you're using the "release" branch of Away3D (the branch that will 
soon become Away3D 4.0 stable.) Dev, master or any of the other branches won't 
work. 

Original comment by bengtric...@gmail.com on 13 Jun 2012 at 7:22

GoogleCodeExporter commented 9 years ago
Not a bug. Loads fine in latest Away3D (release branch.)

Original comment by bengtric...@gmail.com on 14 Jun 2012 at 4:23