I want to render some point cloud objects, the raw files have ply format
I used draco to compress the raw file into drc files
the code bellow loads both compressed and raw data
the problem is that the loaded drc file have lighter and strange colors as shown in the image
var dotMaterial = new THREE.PointsMaterial({
size: 0.06,
vertexColors: true,
sizeAttenuation: false,
});
dracoLoader.loadAsync("models/ply/drc/lootout.drc")
.then((geometry) => {
geometry.scale(0.0006, 0.0006, 0.0006);
var pointCloud = new THREE.Points(geometry, dotMaterial);
scene.add( pointCloud );
});
plyloader.loadAsync("models/ply/drc/lootout.ply")
.then((geometry) => {
geometry.scale(0.0006, 0.0006, 0.0006);
var pointCloud = new THREE.Points(geometry, dotMaterial);
scene.add( pointCloud );
});