Change square to circle in Three.js PointCloud?

I am loading a .ply file using PLYLoader and rendering it using PointCloud object in three.js file.

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);

      

Works fine, dots are displayed correctly. However, the points are displayed as a square. Can I change them to a circle? If so, how?

I found this old thread that shows an image of three.js sample. We can clearly see the circles. However, which in the same sample today shows the squares (after they changed the ParticleSystem to PointCloud).

thank

+3


source to share


1 answer


The solution is the associated environment images for each point cloud.

Could you take a look at this example:



http://threejs.org/examples/#webgl_particles_billboards

Perhaps you have a solution.

+1


source







All Articles