What is OpenCTM?
OpenCTM and Meshlab
Texture to Vertex Color
2.Make sure the Source Mesh and Target Mesh are the same. Then press Apply.
3.Toggle the textures off to check if the conversion was successful. Render > Render Mode > Texture. You can also find the icon in the main toolbar.
4.If the texture still appears to be shown on the model after toggling the textures off, you know that the Texture to Vertex color was successful.
Cleaning the Mesh
1. Filters > Cleaning and Repairing > Close Merged Vertices
2. Filters > Cleaning and Repairing > Remove Duplicated Face
3. Filters > Cleaning and Repairing > Remove Duplicated Vertices
4. Remove Face from Non Manif Edges
These steps are the preliminary cleaning methods before export. After you complete these steps, export the mesh and try to load it in the browser. If the model loads, all is well. If the browser hangs up or crashes, we’ll have to perform additional cleaning steps
Manual Cleaning 2
Manual Cleaning 3
1. Go to File > Export Mesh as
2. In the Files of type below, select “OpenCTM compressed file (*.ctm)” from the dropdown men
If OpenCTM is not an available option for export, you may need a more recent version of Meshlab
3. Save as…
View Your Results
1. Open the demo.html file in your favorite editor.
2. On line 72, you will find in quotes the string “changeME.ctm”
3. Change this to the name of the model. If you named the model “myCoolModel.ctm”, you want to add “myCoolModel.ctm” with quotes. If you placed the model in a folder, be sure to add the directory as well, like this “/myModels/myCoolModel.ctm.”
4. Open the website. If you placed it on a local webserver, the address will be something like “http://localhost/demo.html.” if you placed the web scripts and model on a different server, use the name of the server.
NB: Once you have exported as OpenCTM, you can also export out as OBJ for a Unity model as well.
You are reading the series: 3D Data on the Web
- Converting a 3D Model to OpenCTM In Meshlab for WebGL