[fixed]Sketchup exported COLLADA files

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
ErUs
Posts: 165
Joined: Thu Oct 07, 2004 6:13 pm

[fixed]Sketchup exported COLLADA files

Post by ErUs »

There not loading the textures that google sketchup exports.
Any ideas?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Those from Google's 3d warehouse worked the last time I tried. Check the console output and make sure you have proper texture coords exported. Can you upload the whole package (file and textures)?
ErUs
Posts: 165
Joined: Thu Oct 07, 2004 6:13 pm

Post by ErUs »

Tried to make a test case and i cant even see the level now. Log says its loading 2 meshes aswel which is weird.

TEST CASE http://irrlichtirc.g0dsoft.com/erus%60/testcase.zip

opens back up fine in sketchup :(
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I'm not absolutely sure, but it looks like we don't support multi-element vertex elements so far. What this means: Collada uses a <vertex> elements and many <triangle> elements. Most tools only support the vertex position array in <vertex>, but Sketchup also exports normals. This means that we have to change our semantics interpretation. Will take some time, because the Collada loader is not too simple.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Ok, was indeed not so bad. But it wasn't the actual problem, only a minor thing. The major problem was the order of the elements. We did instantiate the geometry right in the moment the name in encountered. This worked so far, because none of the collada files used forward references. Now that this has changed I had to fix this. Level loads now, code is in SVN/trunk.
Edit: Texture loading won't be fixed. This is against the Collada specs! The order is clearly fixed, and the file you provided is wrong according to this spec. If the main elements are in the correct order, everything will work as expected.
ErUs
Posts: 165
Joined: Thu Oct 07, 2004 6:13 pm

Post by ErUs »

Awesome, thanks hybrid. I'll check out and give it a spin.
Post Reply