ply file format is as follows
It is based on the webgl_loader_ply and I want to render the color information of the ply file.
The color is not applied and it comes out like the picture below.
const loader = new PLYLoader();
loader.load( './models/ply/test/basketball_player_vox11_00000001.ply', function ( geometry ) {
geometry.computeVertexNormals();
var material = new THREE.MeshPhongMaterial( { color: 0xffffff, specular: 0x111111, shininess: 200, vertexColors: THREE.VertexColors} );
const mesh = new THREE.Mesh( geometry, material );
mesh.position.x = - 0.2;
mesh.position.y = - 0.52;
mesh.position.z = - 0.0;
mesh.scale.multiplyScalar( 0.0006 );
mesh.castShadow = true;
mesh.receiveShadow = true;
scene.add( mesh );
objects.push(mesh);
} );
help me…