Load/parse collada file without uv information; is it possible??

Software: Away3D 3.x

Avatar
Bas, Newbie
Posted: 11 August 2011 09:58 AM   Total Posts: 23

Hello everyone i

I run into a bit of a problem when i try to load some collada/dae files.
These files are generated by a server so i have no direct influence on the structure of the collada files.

The problem is that when i try to load/parse one of these files i get a range error.
As far as i can find out what’s wrong is that in the collada file the uv information is missing and thus the file “AbstractParser.as” generates an error on line 285.

Is there a way to get collada files without uv information working?


I hope someone can help me out….........

   

prankard, Newbie
Posted: 11 August 2011 02:21 PM   Total Posts: 3   [ # 1 ]

Hey, It is possible for you to go through the collada file as a .xml node.
So to load the model:

var xml:XML = new XML(new MyLoadedDAEFile());
/* Here is where you can remove the UV nodes before loading */
model collada.parseGeometry(xml) as ObjectContainer3D

However, you are best of fixing the range error. In my AbstractParser line 285 is different to yours. On my file it is:
if (centerMeshes) {

Which doesn’t do much. You’re looking for the line accessing an Array or Vector that is out of range. Add a line before it checking that the array.length is less than the index you’re about to access.

Either post the actual line that is causing problems, or better yet post the .dae file that is causing the issue.

   

Avatar
Bas, Newbie
Posted: 12 August 2011 07:54 AM   Total Posts: 23   [ # 2 ]

Hello James,

Thanks for your tip. I’ll give it a try later today.
The collada file i’m using can be found here:
http://www.zshare.net/download/935925188f6bd63c/

The nasty thing is i have no influence on the contents of the collada file because they are exported from a server. So i hope there’s a way with away3d.

Thanks in advance for any help.
Bas

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X