|
Rajneesh, Jr. Member
Posted: 24 May 2012 02:00 PM Total Posts: 34
Hi,
I am trying to load awd2 model exported from 3dsMax12 with the plugin downloaded from u r site. While loading the file, it pop ups the following error,
Error: Error #2030: End of file was encountered.
at flash.utils::ByteArray/readBytes()
at away3d.loaders.parsers::AWD2Parser/parseTexture()
at away3d.loaders.parsers::AWD2Parser/parseNextBlock()
at away3d.loaders.parsers::AWD2Parser/proceedParsing()
at away3d.loaders.parsers::ParserBase/onInterval()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
The plane geometry in the example loads but the awd2 fails to load. What should i do? Thanks in advance.
|
Fabrice Closier, Administrator
Posted: 24 May 2012 02:27 PM Total Posts: 1265
[ # 1 ]
Make sure you have updated to the latest Away3D and that your exporter is the latest too. If not you might try to load an awd 2.0 with the awdparser alpha.
|
ken1171, Newbie
Posted: 01 June 2012 06:35 PM Total Posts: 13
[ # 2 ]
I have just installed the latest version of Away3D and the 3DSMAX plugin for AWD2, and I am having the exact same issue when loading awd files exported from Max2012. I tried a simple cube with and without materials, and I always get Error #2030: End of file was encountered.
Funny thing is that the cube shows alright in the preview after the export, but will not load in my own program. I would assume this must be an error in my program, but the same happened when I tried the example code to load the AWD vase downloaded from here. It works with the vase, but raises an exception with my own AWD2 files exported from MAX.
Again, my models look fine in the preview after the export, so I don’t know what’s wrong. I can load my own OBJ and 3DS files, but just not any files exported with the AWD2 exporter for MAX 2012.
Just to make sure, the plugin I have is “maxawd_2012_64_v1.0.1.zip”, and my Away3D version is the latest 4 beta downloaded from here.
Any help would be appreciated.
|
Fabrice Closier, Administrator
Posted: 01 June 2012 09:35 PM Total Posts: 1265
[ # 3 ]
I’ll pass on to Richard as he is the one who wrote the max exporter
|
Richard Olsson, Administrator
Posted: 01 June 2012 09:53 PM Total Posts: 1192
[ # 4 ]
If the vase works fine then you don’t have the latest version of the Away3D codebase (from GitHub), because that wouldn’t be able to load the vase model from the Adobe devnet article.
Make sure you have the latest version of Away3D from GitHub.
|
ken1171, Newbie
Posted: 04 June 2012 11:37 AM Total Posts: 13
[ # 5 ]
Thanks for the heads up, Richard! I’ve assumed the main link at the front page would always point to the latest version, but instead, we have to get it from the repository. So that was it! ^___^
|
Richard Olsson, Administrator
Posted: 04 June 2012 11:39 AM Total Posts: 1192
[ # 6 ]
The main link on the front page refers to the latest _release_, which at this time is a beta release. It will (extremely) rarely be as up to date as the repository where we do our day-to-day work, and which may or may not be stable at any point in time.
I’m glad this solved the issue you were experiencing.
|
ken1171, Newbie
Posted: 04 June 2012 04:20 PM Total Posts: 13
[ # 7 ]
Oh I see, thanks for clarifying that for me. Makes sense. I would still like to ask if the AWD2 plugin for MAX 2012 includes specular map in the exports? In my attempts, it did not include the specular map that was in the material.
I also noticed that if I don’t include skinning/animation data in the options, the exported AWD file will not show up in the preview or my programs. Don’t know if it makes any difference, but I am now leaving all options on, even the ones my models don’t use.
There was also something going in with the awd exports that would only work the first time, and then raise “byte array” exceptions in subsequent exports - even if it was just a simple cube. I suspect there are some geometry requirements I am not aware of. Could be that my UVs have multiple parts, and the AWD2 only supports a single one? I noticed it only supports models with a single material, so maybe UVs have also to be in one piece?
|
Richard Olsson, Administrator
Posted: 04 June 2012 04:24 PM Total Posts: 1192
[ # 8 ]
Specular maps are not supported at this point.
If you can’t get an AWD file to parse correctly when you exclude skinning/animation that sounds like a bug. Any chance you can upload the max file and create an issue report at http://awd.googlecode.com?
Similarly, if you are getting runtime exceptions while parsing files that sounds like a bug with how the file is being generated. Please file a bug report at http://awd.googlecode.com and include the AWD and MAX files if you can.
|