mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-12-22 01:26:17 +01:00
Update obj tool
This commit is contained in:
parent
5677939c68
commit
d17c534194
7 changed files with 15 additions and 8 deletions
|
@ -399,7 +399,8 @@ S3L_Model3D cat1Model =
|
|||
.vertices = cat1Vertices,
|
||||
.vertexCount = CAT1_VERTEX_COUNT,
|
||||
.triangles = cat1TriangleIndices,
|
||||
.triangleCount = CAT1_TRIANGLE_COUNT
|
||||
.triangleCount = CAT1_TRIANGLE_COUNT,
|
||||
.customTransformMatrix = 0
|
||||
};
|
||||
|
||||
#endif // guard
|
||||
|
|
|
@ -399,7 +399,8 @@ S3L_Model3D cat2Model =
|
|||
.vertices = cat2Vertices,
|
||||
.vertexCount = CAT2_VERTEX_COUNT,
|
||||
.triangles = cat2TriangleIndices,
|
||||
.triangleCount = CAT2_TRIANGLE_COUNT
|
||||
.triangleCount = CAT2_TRIANGLE_COUNT,
|
||||
.customTransformMatrix = 0
|
||||
};
|
||||
|
||||
#endif // guard
|
||||
|
|
|
@ -758,7 +758,8 @@ S3L_Model3D chestModel =
|
|||
.vertices = chestVertices,
|
||||
.vertexCount = CHEST_VERTEX_COUNT,
|
||||
.triangles = chestTriangleIndices,
|
||||
.triangleCount = CHEST_TRIANGLE_COUNT
|
||||
.triangleCount = CHEST_TRIANGLE_COUNT,
|
||||
.customTransformMatrix = 0
|
||||
};
|
||||
|
||||
#endif // guard
|
||||
|
|
|
@ -950,7 +950,8 @@ S3L_Model3D cityModel =
|
|||
.vertices = cityVertices,
|
||||
.vertexCount = CITY_VERTEX_COUNT,
|
||||
.triangles = cityTriangleIndices,
|
||||
.triangleCount = CITY_TRIANGLE_COUNT
|
||||
.triangleCount = CITY_TRIANGLE_COUNT,
|
||||
.customTransformMatrix = 0
|
||||
};
|
||||
|
||||
#endif // guard
|
||||
|
|
|
@ -722,7 +722,8 @@ S3L_Model3D houseModel =
|
|||
.vertices = houseVertices,
|
||||
.vertexCount = HOUSE_VERTEX_COUNT,
|
||||
.triangles = houseTriangleIndices,
|
||||
.triangleCount = HOUSE_TRIANGLE_COUNT
|
||||
.triangleCount = HOUSE_TRIANGLE_COUNT,
|
||||
.customTransformMatrix = 0
|
||||
};
|
||||
|
||||
#endif // guard
|
||||
|
|
|
@ -46,7 +46,8 @@ S3L_Model3D plantModel =
|
|||
.vertices = plantVertices,
|
||||
.vertexCount = PLANT_VERTEX_COUNT,
|
||||
.triangles = plantTriangleIndices,
|
||||
.triangleCount = PLANT_TRIANGLE_COUNT
|
||||
.triangleCount = PLANT_TRIANGLE_COUNT,
|
||||
.customTransformMatrix = 0
|
||||
};
|
||||
|
||||
#endif // guard
|
||||
|
|
|
@ -185,13 +185,14 @@ if COMPACT:
|
|||
print("{.vertices=" +
|
||||
NAME + "Vertices,.vertexCount=" + str(len(vertices)) +
|
||||
",.triangles=" + NAME.upper() + "TriangleIndices,\n.triangleCount=" +
|
||||
str(len(triangles)) + "};");
|
||||
str(len(triangles)) + ",.customTransformMatrix=0};");
|
||||
else:
|
||||
print("{")
|
||||
print(" .vertices = " + NAME + "Vertices,")
|
||||
print(" .vertexCount = " + NAME.upper() + "_VERTEX_COUNT,")
|
||||
print(" .triangles = " + NAME + "TriangleIndices,")
|
||||
print(" .triangleCount = " + NAME.upper() + "_TRIANGLE_COUNT")
|
||||
print(" .triangleCount = " + NAME.upper() + "_TRIANGLE_COUNT,")
|
||||
print(" .customTransformMatrix = 0")
|
||||
print("};")
|
||||
|
||||
if GUARDS:
|
||||
|
|
Loading…
Reference in a new issue