I need some help making a sphere out of random particles in three.js.
I know how to make different shapes out of particles, but not how to make them randomly.
This is what I currently have,
// point cloud geometry
var geometry = new THREE.SphereGeometry(100, 100, 100);
material = new THREE.PointCloudMaterial({
size: 1,
transparent: true,
opacity: 0.5,
color: 0xffffff
});
// point cloud
var pointCloud = new THREE.PointCloud(geometry, material);
//add to scene
scene.add( pointCloud );
thanks