Three.js - Ply Files - Why Colorless?
I am using Three.js's example in the directory: three.js/examples/webgl_loader_ply.html And I just swapped their .ply file with mine (made with Blender). In Blender, I went Vertex
Solution 1:
i was missing this property vertexColors: THREE.VertexColors
.
All was fine with Blender and the code apart from the property. It works as expected now.
Here is how the line of code should look like:
varmaterial=newTHREE.MeshPhongMaterial( { color:0xffffff, specular:0x111111, shininess:200, vertexColors:THREE.VertexColors} );
Post a Comment for "Three.js - Ply Files - Why Colorless?"