[SOLVED]Rebel mesh

I’m trying to export a blender file into egg format, but one of the meshes doesn’t want to show in pview the texture I gave it in blender. I’m doing it the same way to assign the texture for all meshes, so it’s a pretty strange thing.

I trimmed the mesh to a minimum not working example, it’s so little I think i can put it here.

With these two files, please I need for the sake of my sanity that somebody tells me what’s wrong in the egg and if possible, how could I fix it in a more complex mesh.

Example not working (a textured cube):

<CoordinateSystem> { Z-up }

<Comment> { "Egg laid by Chicken for Blender v1.0c" }

<Material> MiMAt2 {
  <Scalar> diffr {0.800000011921}
  <Scalar> diffg {0.800000011921}
  <Scalar> diffb {0.800000011921}
  <Scalar> specr {0.25}
  <Scalar> specg {0.25}
  <Scalar> specb {0.25}
  <Scalar> shininess {12.5}
}
<Texture> MiMAt2 {
  "/c/Proy_FC/Escudo3.png"
}
<Group> Paredes {
  <Transform> {
    <Matrix4> {
      1.000000 0.000000 0.000000 0.000000
      0.000000 1.000000 0.000000 0.000000
      0.000000 0.000000 1.000000 0.000000
      2.000000 -1.000000 1.000000 1.000000
    }
  }
  <VertexPool> Paredes {
    <Vertex> 0 {
      3.000000 -0.000001 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 1 {
      1.000000 -0.000001 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 2 {
      1.000000 -2.000005 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 3 {
      3.000000 -2.000005 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 4 {
      3.000000 -2.000005 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 5 {
      1.000000 -2.000005 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 6 {
      1.000000 -0.000001 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 7 {
      3.000000 -0.000001 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 8 {
      1.000000 -2.000005 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 9 {
      1.000000 -2.000005 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 10 {
      3.000000 -2.000005 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 11 {
      3.000000 -2.000005 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 12 {
      1.000000 -0.000001 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 13 {
      1.000000 -0.000001 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 14 {
      1.000000 -2.000005 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 15 {
      1.000000 -2.000005 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 16 {
      1.000000 -0.000001 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 17 {
      1.000000 -0.000001 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 18 {
      3.000000 -0.000001 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 19 {
      3.000000 -0.000001 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 20 {
      3.000000 -2.000005 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 21 {
      3.000000 -2.000005 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 22 {
      3.000000 -0.000001 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 23 {
      3.000000 -0.000001 2.000000
      <UV> { 0.000000 0.000000 }
    }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 0.000000 0.000000 1.000000 }
    <VertexRef> { 0 1 2 3 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 0.000000 0.000000 -1.000000 }
    <VertexRef> { 4 5 6 7 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 0.000000 -1.000000 0.000000 }
    <VertexRef> { 8 9 10 11 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { -1.000000 0.000000 0.000000 }
    <VertexRef> { 12 13 14 15 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 0.000000 1.000000 0.000000 }
    <VertexRef> { 16 17 18 19 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 1.000000 0.000000 0.000000 }
    <VertexRef> { 20 21 22 23 <Ref> { Paredes } }
  }
}

On the other hand, I make a cube from scratch and texture it and it works fine:

<CoordinateSystem> { Z-up }

<Comment> { "Egg laid by Chicken for Blender v1.0c" }

<Material> MiMAt2 {
  <Scalar> diffr {0.800000011921}
  <Scalar> diffg {0.800000011921}
  <Scalar> diffb {0.800000011921}
  <Scalar> specr {0.25}
  <Scalar> specg {0.25}
  <Scalar> specb {0.25}
  <Scalar> shininess {12.5}
}
<Texture> MiMAt2 {
  "/c/Proy_FC/Escudo3.png"
}
<Group> Paredes {
  <Transform> {
    <Matrix4> {
      1.000000 0.000000 0.000000 0.000000
      0.000000 1.000000 0.000000 0.000000
      0.000000 0.000000 1.000000 0.000000
      2.000000 -1.000000 1.000000 1.000000
    }
  }
  <VertexPool> Paredes {
     <Vertex> 0 {
      3.000000 0.000000 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 1 {
      1.000000 0.000000 0.000000
      <UV> { 1.000000 0.000000 }
    }
    <Vertex> 2 {
      1.000000 0.000000 2.000000
      <UV> { 1.000000 1.000000 }
    }
    <Vertex> 3 {
      3.000000 0.000000 2.000000
      <UV> { 0.000000 1.000000 }
    }
    <Vertex> 4 {
      1.000000 -2.000000 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 5 {
      1.000000 0.000000 2.000000
      <UV> { 1.000000 0.000000 }
    }
    <Vertex> 6 {
      1.000000 0.000000 0.000000
      <UV> { 1.000000 1.000000 }
    }
    <Vertex> 7 {
      1.000000 -2.000000 0.000000
      <UV> { 0.000000 1.000000 }
    }
    <Vertex> 8 {
      3.000000 -2.000000 0.000000
      <UV> { 0.000000 1.000000 }
    }
    <Vertex> 9 {
      3.000000 -2.000000 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 10 {
      1.000000 -2.000000 2.000000
      <UV> { 1.000000 0.000000 }
    }
    <Vertex> 11 {
      1.000000 -2.000000 0.000000
      <UV> { 1.000000 1.000000 }
    }
    <Vertex> 12 {
      3.000000 0.000000 0.000000
      <UV> { 0.000000 1.000000 }
    }
    <Vertex> 13 {
      3.000000 0.000000 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 14 {
      3.000000 -2.000000 2.000000
      <UV> { 1.000000 0.000000 }
    }
    <Vertex> 15 {
      3.000000 -2.000000 0.000000
      <UV> { 1.000000 1.000000 }
    }
    <Vertex> 16 {
      3.000000 0.000000 2.000000
      <UV> { 0.000000 1.000000 }
    }
    <Vertex> 17 {
      1.000000 0.000000 2.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 18 {
      1.000000 -2.000000 2.000000
      <UV> { 1.000000 0.000000 }
    }
    <Vertex> 19 {
      3.000000 -2.000000 2.000000
      <UV> { 1.000000 1.000000 }
    }
    <Vertex> 20 {
      1.000000 0.000000 0.000000
      <UV> { 1.000000 1.000000 }
    }
    <Vertex> 21 {
      3.000000 0.000000 0.000000
      <UV> { 0.000000 1.000000 }
    }
    <Vertex> 22 {
      3.000000 -2.000000 0.000000
      <UV> { 0.000000 0.000000 }
    }
    <Vertex> 23 {
      1.000000 -2.000000 0.000000
      <UV> { 1.000000 0.000000 }
    }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 0.000000 0.000000 1.000000 }
    <VertexRef> { 0 1 2 3 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 0.000000 0.000000 -1.000000 }
    <VertexRef> { 4 5 6 7 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 0.000000 -1.000000 0.000000 }
    <VertexRef> { 8 9 10 11 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { -1.000000 0.000000 0.000000 }
    <VertexRef> { 12 13 14 15 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 0.000000 1.000000 0.000000 }
    <VertexRef> { 16 17 18 19 <Ref> { Paredes } }
  }
  <Polygon> {
    <TRef> { MiMAt2 }
    <MRef> { MiMAt2 }
    <Normal> { 1.000000 0.000000 0.000000 }
    <VertexRef> { 20 21 22 23 <Ref> { Paredes } }
  }
}

the upper one is missing UV-Texture coordinates (not missing but all are 0)

Did you specify UV-mapping to the cube? I think thats the only way chicken supports. (thats just my guess, I could be wrong.)

A big thanks for you both! :laughing: I haven’t noticed the uv info was all 0.
I’ve tried ‘refreshing’ the uv texture layer in blender (removing the old and making a new one) and my export test works now, so I will fix the original the same way. Edit: (It works too, thanks again)