How to make a cmod mesh from virtually any 3D model
Posted: 08.01.2021, 15:27
Steps:
1.) find the object's model and download it (if it's legally possible). It can be virtually any type of 3d mesh
2.) if Blender can import it, then import it into Blender
3.) use MeshLab to open the 3D mesh if Blender can't import it and save it as an .obj mesh
4.) import it into Blender and use the "decimate" effect, if it has more than 64k vertices (.3ds meshes cannot deal with too many vertices). Save the decimated mesh as an .obj mesh
5.) use MeshLab to convert the .obj format into .3ds format
6.) use the 3ds to cmod convert and fix utility with the "Output as Ascii" option to create the cmod file
7.) open the Ascii cmod file in Notepad++ and edit it like this:
material
diffuse 0.878431 0.878431 0.878431
specular 1 1 1
specpower 128
texture0 "****name of the texture****.dds"
end_material
8.) make a dds texture with Gimp (max 8192x8192 pixels)
9.) put the cmod file in the models folder, the dds file in the textures/medres folder.
I hope I didn't left out anything...
1.) find the object's model and download it (if it's legally possible). It can be virtually any type of 3d mesh
2.) if Blender can import it, then import it into Blender
3.) use MeshLab to open the 3D mesh if Blender can't import it and save it as an .obj mesh
4.) import it into Blender and use the "decimate" effect, if it has more than 64k vertices (.3ds meshes cannot deal with too many vertices). Save the decimated mesh as an .obj mesh
5.) use MeshLab to convert the .obj format into .3ds format
6.) use the 3ds to cmod convert and fix utility with the "Output as Ascii" option to create the cmod file
7.) open the Ascii cmod file in Notepad++ and edit it like this:
material
diffuse 0.878431 0.878431 0.878431
specular 1 1 1
specpower 128
texture0 "****name of the texture****.dds"
end_material
8.) make a dds texture with Gimp (max 8192x8192 pixels)
9.) put the cmod file in the models folder, the dds file in the textures/medres folder.
I hope I didn't left out anything...