I can't understand why the 2 and 3 textures looks inside the mesh. Please explain me.
Code: Select all
CreateMesh(22, #PB_Mesh_TriangleList, #PB_Mesh_Dynamic)
MeshVertexPosition(0, 0, 0)
MeshVertexTextureCoordinate(0, 0)
MeshVertexPosition(1, 0, 0)
MeshVertexTextureCoordinate(0.1, 0)
MeshVertexPosition(0, 0, 20)
MeshVertexTextureCoordinate(0, 2)
MeshVertexPosition(1, 0, 20)
MeshVertexTextureCoordinate(0.1, 2)
MeshFace(0, 1, 3)
MeshFace(3, 2, 0)
MeshVertexPosition(0, 0, 0)
MeshVertexTextureCoordinate(0, 0)
MeshVertexPosition(0, 2, 0)
MeshVertexTextureCoordinate(0.2, 0)
MeshVertexPosition(0, 0, 20)
MeshVertexTextureCoordinate(0, 2)
MeshVertexPosition(0, 2, 20)
MeshVertexTextureCoordinate(0.2, 2)
MeshFace(4, 5, 7)
MeshFace(7, 6, 4)
MeshVertexPosition(0, 2, 0)
MeshVertexTextureCoordinate(0.2, 0)
MeshVertexPosition(1, 2, 0)
MeshVertexTextureCoordinate(0.3, 0)
MeshVertexPosition(0, 2, 20)
MeshVertexTextureCoordinate(0.2, 2)
MeshVertexPosition(1, 2, 20)
MeshVertexTextureCoordinate(0.3, 2)
MeshFace(11, 10, 8)
MeshFace(8, 9, 11)
MeshVertexPosition(1, 2, 0)
MeshVertexTextureCoordinate(0.4, 0)
MeshVertexPosition(1, 0, 0)
MeshVertexTextureCoordinate(0.6, 0)
MeshVertexPosition(1, 2, 20)
MeshVertexTextureCoordinate(0.4, 2)
MeshVertexPosition(1, 0, 20)
MeshVertexTextureCoordinate(0.6, 2)
MeshFace(15, 13, 12)
MeshFace(12, 14, 15)
FinishMesh(#True)
NormalizeMesh(22)
CreateEntity(22, MeshID(22), MaterialID(20), 5230, 50, 5169)



