Away Builder problem

Software: Other

Boyan, Newbie
Posted: 30 May 2013 12:21 PM   Total Posts: 18

Hello to all.

Being new to away3d it seems that i stumbled over the most basic operation - importing awd’s which were exported from Away Builder. Every awd which I export from Away Builder(downloaded very recently from this site), no matter how simple it is, causes the following error:

Error: Error #2030: End of file was encountered.
at flash.utils::ByteArray/readUTFBytes()
at away3d.loaders.parsers::AWD2Parser/parseVarStr()....

But this happens only with awd’s exported from Away Builder. When they are exported from 3ds max 2012 plugin, they work fine…

I would appreciate any advice.

Boyan

   

Avatar
Fabrice Closier, Administrator
Posted: 30 May 2013 12:31 PM   Total Posts: 1265   [ # 1 ]

and you are using away3d 4.1? or are you using away4.0?

   

Boyan, Newbie
Posted: 30 May 2013 12:56 PM   Total Posts: 18   [ # 2 ]
Fabrice Closier - 30 May 2013 12:31 PM

and you are using away3d 4.1? or are you using away4.0?

I am using away3d 4.1

   

Avatar
Fabrice Closier, Administrator
Posted: 30 May 2013 02:30 PM   Total Posts: 1265   [ # 3 ]

ok. for test purpose, if you load the awd in Prefab3D, does the loading ends, do you get errors(in process log) is the model displayed?
Prefab doesn’t support awd 2.1 features yet, but diffusemaps en geometry should be builded correctly.
Can you please test?

   

Boyan, Newbie
Posted: 30 May 2013 04:13 PM   Total Posts: 18   [ # 4 ]
Fabrice Closier - 30 May 2013 02:30 PM

ok. for test purpose, if you load the awd in Prefab3D, does the loading ends, do you get errors(in process log) is the model displayed?
Prefab doesn’t support awd 2.1 features yet, but diffusemaps en geometry should be builded correctly.
Can you please test?


So, to be sure I repeated the whole process - choosed an arbitrary 3DS file, imported it into Away Builder, then exported it in AWD format and tried to import it in flash environment and Flash Builder gave the parse error. Then I tried to import the same AWD file in Prefab, and a message apeared that it was loaded successfully, but there was no mesh at all. In tab “meshes” is said “No meshes in the scene”.

   

Avatar
Fabrice Closier, Administrator
Posted: 30 May 2013 04:32 PM   Total Posts: 1265   [ # 5 ]

ok, and you probably see just an empty container in hierarchy panel…
Could you send me the awd offline to fabrice3d at gmail dot com
so we could test? Thx by advance.

   

Boyan, Newbie
Posted: 30 May 2013 05:36 PM   Total Posts: 18   [ # 6 ]

Empty container, right.
I sent you a sample awd file.

   

Avatar
80prozent, Sr. Member
Posted: 30 May 2013 06:20 PM   Total Posts: 430   [ # 7 ]

Hi Boyan

I just tested your file (Fab sended it to me) with the latest AWD2parser from the DEV branch (Git).
It loads ok.

There is no point in testing this with a other Parser than the Dev-Branch, because the Simple-Cube you are exporting is a primitve-Object (Cube) that is not supported by AWD2Parser in any other Version.

If you are planning to use AWD in a older Version than the Dev-branch, you cannot use any of the Primitves or the Material-Effect Methods.

Hope that helps

 Signature 

sorry…i hope my actionscript is better than my english…

   

Avatar
80prozent, Sr. Member
Posted: 30 May 2013 07:36 PM   Total Posts: 430   [ # 8 ]

ARgh

sorry i was wrong

this is not a primitve-cube….

atm i do not know what is going wrong there, but i am trying to find out smile

 Signature 

sorry…i hope my actionscript is better than my english…

   

Avatar
80prozent, Sr. Member
Posted: 30 May 2013 08:04 PM   Total Posts: 430   [ # 9 ]

OK i got it.

This time i am shure smile

When exporting from AwayBuilder, please uncheck the streaming-option, or set the compression option to UNCOMPRESSED.

When compression is enabled and streaming is enabled too, the encoder will use the compression per block, and not on the whole file. This is new for awd2.1 and the old parser cannot handle compression per Block and crashed.

So the fix for now: Disable the Streaming-option.
Its not really used by the parsing-system atm anyway
(so it would proberly be the best if we would have this option disabled/removed in the Gui atm)

Thanks for reporting this.

Cheers

Robin

 Signature 

sorry…i hope my actionscript is better than my english…

   

maricate, Jr. Member
Posted: 30 May 2013 09:29 PM   Total Posts: 36   [ # 10 ]

Here AWD2parser dont work (at last exporting through Prefab3D 2.143)
Im using awd1.

   

Avatar
80prozent, Sr. Member
Posted: 30 May 2013 10:15 PM   Total Posts: 430   [ # 11 ]

Hi maricate

Are you explicit telling you loader to parser your AWD1-file with the AWD2parser ?

A AWD1 file should be parsed with the AWD1parser, not the AWD2parser.

If you not tell your loader, which parser to use, it should automaticly parse the AWD1 file with the AWD1parser.

 Signature 

sorry…i hope my actionscript is better than my english…

   

maricate, Jr. Member
Posted: 30 May 2013 11:32 PM   Total Posts: 36   [ # 12 ]

Hi 80prozent… What I meant is that awd1 file works with awd1 parser.
Awd2 file dont work with any parser. Not even with awd2 parser.

   

Boyan, Newbie
Posted: 31 May 2013 09:38 AM   Total Posts: 18   [ # 13 ]
80prozent - 30 May 2013 08:04 PM

OK i got it.

This time i am shure smile

When exporting from AwayBuilder, please uncheck the streaming-option, or set the compression option to UNCOMPRESSED.

When compression is enabled and streaming is enabled too, the encoder will use the compression per block, and not on the whole file. This is new for awd2.1 and the old parser cannot handle compression per Block and crashed.

So the fix for now: Disable the Streaming-option.
Its not really used by the parsing-system atm anyway
(so it would proberly be the best if we would have this option disabled/removed in the Gui atm)

Thanks for reporting this.

Cheers

Robin


Thank you. I can’t test it right now, but tonight I’ll try this and say what happened.

   

Avatar
80prozent, Sr. Member
Posted: 31 May 2013 04:06 PM   Total Posts: 430   [ # 14 ]
maricate - 30 May 2013 11:32 PM

Hi 80prozent… What I meant is that awd1 file works with awd1 parser.
Awd2 file dont work with any parser. Not even with awd2 parser.

Hi maricate

what away3d version are you using ?
Files from Prefab should load into bothcurrent versions of away3d (master-branch and dev-branch).

The AWD2Parser of the dev-branch has recently been updated to support AWD2.1.
So if your file loads with the master-branch, but not with the dev-branch, its a bug in the refactored AWD2parser. If it doesnt load in the AWD2parser of the master-branch, this bug has nothing to do with the implementation of AWD2.1.

In any case, if you could provide any of those not working files, i might be of more help.

 

 Signature 

sorry…i hope my actionscript is better than my english…

   

Boyan, Newbie
Posted: 31 May 2013 06:14 PM   Total Posts: 18   [ # 15 ]
80prozent - 30 May 2013 08:04 PM

OK i got it.

This time i am shure smile

When exporting from AwayBuilder, please uncheck the streaming-option, or set the compression option to UNCOMPRESSED.

When compression is enabled and streaming is enabled too, the encoder will use the compression per block, and not on the whole file. This is new for awd2.1 and the old parser cannot handle compression per Block and crashed.

So the fix for now: Disable the Streaming-option.
Its not really used by the parsing-system atm anyway
(so it would proberly be the best if we would have this option disabled/removed in the Gui atm)

Thanks for reporting this.

Cheers

Robin


Hello again,

I just exported the model in the way you wrote, but got the same error again…
Unchecked the streaming option, but that didn’t have an effect. Then I set the compression to Uncompressed but still got the same error. After that, to be completely sure that I’ve tried everything you wrote, checked streaming again, but left compression to uncompressed. Again, no change for good.

Here is the error message:

Error: Error #2030: End of file was encountered.
at flash.utils::ByteArray/readUTFBytes()
at away3d.loaders.parsers::AWD2Parser/parseVarStr()[***********\away3d\loaders\parsers\AWD2Parser.as:828]

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X