Game Development Community

Bug: Collada Texture Swapping

by Matt Jolly · in Torque 3D Professional · 05/31/2009 (9:01 pm) · 2 replies

I recently imported a bunch of Collada models into T3D so I could build a city level, and I began noticing an odd texture swapping bug. The bug seemed to get worse with the more buildings I added. I tried to give all the materials/textures unique filenames, but that didn't help (and in some cases seemed to make it worse).

Exhibit A:
img190.imageshack.us/img190/6040/textureswapbug.jpg
Note the front of the bank building is using the roof texture of another.

#1
06/01/2009 (12:30 am)
Hi Mike,

You may want to review my collada import findings here.

I think editing the .dae file and then manually editing the materials for each of your models is what you want to do.

Cheers,

Andy
#2
06/01/2009 (12:59 am)
Ah, I didn't think to modify the mapTo field in the .dae file itself! I didn't even realize Collada data was stored in ASCII, in fact. I had already done everything else you suggested though. Good find :)