Results 1 to 2 of 2

Thread: Wrong UV mapping

  1. #1
    nielzzz
    Guest

    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

    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?

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Wrong UV mapping

    Quote Originally Posted by nielzzz
    Code :
    <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>
    This set of triangles doesn't have a material attribute so it's visual state is application defined. It probably should have an appropriate material. The fact that it has texcoords when you didn't texture it is probably an exporter bug as well.
    Quote Originally Posted by nielzzz
    I expect:
    Code :
    <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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •