Wrong UV mapping

Hello all,

I created a box like shape in blender wich has different textures mapped to the top and sides. Real noob stuff :slight_smile:

Anyways when I export it to Collada I get this:

<triangles count=“10” material=“stone_texture_for_tut”>
<input offset=“0” semantic=“VERTEX” source="#Cube-Geometry-Vertex"/>
<input offset=“1” semantic=“NORMAL” source="#Cube-Geometry-Normals"/>
<input offset=“2” semantic=“TEXCOORD” source="#Cube-Geometry-UV"/>

</triangles>
<triangles count=“2” material=“NeHe_png”>
<input offset=“0” semantic=“VERTEX” source="#Cube-Geometry-Vertex"/>
<input offset=“1” semantic=“NORMAL” source="#Cube-Geometry-Normals"/>
<input offset=“2” semantic=“TEXCOORD” source="#Cube-Geometry-UV"/>

</triangles>
<triangles count=“28”>
<input offset=“0” semantic=“VERTEX” source="#Cube-Geometry-Vertex"/>
<input offset=“1” semantic=“NORMAL” source="#Cube-Geometry-Normals"/>
<input offset=“2” semantic=“TEXCOORD” source="#Cube-Geometry-UV"/>

</triangles>

The UV coordinates are all coming from #Cube-Geometry-UV. This doesn’t seem right to me as I only want the top(2triangles) and sides(10triangles) textured.

Instead it also exported UV coordinates for the entire thing(28 triangles). Huh?

I expect:

<triangles count=“10” material=“stone_texture_for_tut”>
<input offset=“0” semantic=“VERTEX” source="#Cube-Geometry-Vertex"/>
<input offset=“1” semantic=“NORMAL” source="#Cube-Geometry-Normals"/>
<input offset=“2” semantic=“TEXCOORD” source="#Cube-Geometry-UV"/>

<triangles count=“2” material=“NeHe_png”>
<input offset=“0” semantic=“VERTEX” source="#Cube-Geometry-Vertex"/>
<input offset=“1” semantic=“NORMAL” source="#Cube-Geometry-Normals"/>
<input offset=“2” semantic=“TEXCOORD” source="#Cube-Geometry-UV"/>

<triangles count=“16”>
<input offset=“0” semantic=“VERTEX” source="#Cube-Geometry-Vertex"/>
<input offset=“1” semantic=“NORMAL” source="#Cube-Geometry-Normals"/>

</triangles>

This is a bug in blender right?

That sounds reasonable to me too. I agree that it’s probably exporter bugs.