Currently, I am loading a .ply file using PLYLoader in three.js and displaying it as a PointCloud. Here is the code snippet:
var loader = new THREE.PLYLoader();
loader.addEventListener('load', function (event) {
var geometry = event.content;
var material = new THREE.PointCloudMaterial({ vertexColors: true, size: 0.01 });
var mesh = new THREE.PointCloud(geometry, material);
scene.add(mesh);
});
loader.load(file_url);
The rendering works fine, but the points are appearing as squares instead of circles. Is there a way to change their shape to circles? If yes, how can this be achieved?
In my search for a solution, I came across an old thread showcasing a three.js example with circular points which I found interesting. However, when I visited the same sample today, the points were rendered as squares after they switched from ParticleSystem to PointCloud.
Your insights on how to render points as circles would be greatly appreciated. Thank you!