SI_MeshTextureCoords

Specifies texture coordinates for polygon vertices.

This template allows you to define texture coordinate discontinuities at the vertex level, without the need to duplicate the vertices.

Softimage Versions

v1.3/v2.0/v3.0. Made obsolet in v3.5, this template is replaced by SI_Shape, which is nested in the SI_Mesh template.

Members

Member name

Type

Array size

Description

nTextureCoords

int

 

Number of texture coordinates defined.

textureCoords

array Coords2d

nTextureCoords

Texture coordinates array.

nFaceTextureCoords

int

 

Number of polygon vertex texture coordinate indices.

faceTextureCoords

array SI_MeshFace

nFaceTextureCoords

Polygon vertex texture coordinate indices (specifies index of texture coordinates for each vertex of each textured polygon in a mesh).

Example

Here is an example of a simple cube.

Mesh cube1 {
   8;     // 8 vertices 
   -0.500000;-0.500000;-0.500000;, // vert[0] 
   -0.500000;-0.500000;0.500000;,  // vert[1] 
   -0.500000;0.500000;-0.500000;,  // vert[2] 
   -0.500000;0.500000;0.500000;,   // vert[3] 
   0.500000;-0.500000;-0.500000;,  // vert[4] 
   0.500000;-0.500000;0.500000;,   // vert[5] 
   0.500000;0.500000;-0.500000;,   // vert[6] 
   0.500000;0.500000;0.500000;;    // vert[7] 

   6;     // 6 polygons 
   4;0,1,3,2;, // poly[0]; vert[0], vert[1], vert[3], vert[2]
   4;1,5,7,3;, // poly[1]; vert[1], vert[5], vert[7], vert[3]
   4;5,4,6,7;, // poly[2]; vert[5], vert[4], vert[6], vert[7]
   4;4,0,2,6;, // poly[3]; vert[4], vert[0], vert[2], vert[6]
   4;4,5,1,0;, // poly[4]; vert[4], vert[5], vert[1], vert[0]
   4;2,3,7,6;; // poly[5]; vert[2], vert[3], vert[7], vert[6]

   MeshMaterialList {
       ...
       SI_Material {
          ...
          SI_Texture2D {
          ...
          }
       }
   }

   SI_MeshNormals {
   ..
   }

   SI_MeshTextureCoords { 
       24; // 24 UV coordinates (6 polys * 4 verts/poly) 
       0.000000;0.000000;,  // UV[0] 
       0.000000;0.000000;,  // UV[1] 
       0.000000;1.000000;,  // UV[2] 
       0.000000;1.000000;,  // UV[3] 
       0.000000;0.000000;,  // UV[4] 
       1.000000;0.000000;,  // UV[5] 
       1.000000;1.000000;,  // UV[6] 
       0.000000;1.000000;,  // UV[7] 
       1.000000;0.000000;,  // UV[8] 
       1.000000;0.000000;,  // UV[9] 
       1.000000;1.000000;,  // UV[10] 
       1.000000;1.000000;,  // UV[11] 
       1.000000;0.000000;,  // UV[12] 
       0.000000;0.000000;,  // UV[13] 
       0.000000;1.000000;,  // UV[14] 
       1.000000;1.000000;,  // UV[15] 
       1.000000;0.000000;,  // UV[16] 
       1.000000;0.000000;,  // UV[17] 
       0.000000;0.000000;,  // UV[18] 
       0.000000;0.000000;,  // UV[19] 
       0.000000;1.000000;,  // UV[20] 
       0.000000;1.000000;,  // UV[21] 
       1.000000;1.000000;,  // UV[22] 
       1.000000;1.000000;;  // UV[23] 

       6; // 6 polygons 
       0;4;0,1,2,3;, // poly[0]; 4 verts; UV[0], UV[1], UV[2], UV[3] 
       1;4;4,5,6,7;, // poly[1]; 4 verts; UV[4], UV[5], UV[6], UV[7] 
       2;4;8,9,10,11;, // poly[2]; 4 verts; UV[8], UV[9], UV[10], UV[11] 
       3;4;12,13,14,15;, // poly[3]; 4 verts; UV[12], UV[13], UV[14], UV[15] 
       4;4;16,17,18,19;, // poly[4]; 4 verts; UV[16], UV[17], UV[18], UV[19] 
       5;4;20,21,22,23;; // poly[5]; 4 verts; UV[20], UV[21], UV[22], UV[23] 
   }
}


Autodesk Crosswalk v5.0