three.js - Confusion about ParticleSystem and Particle -


i'm beginner in threejs. read examples particle system in web , , observe particlesystem , webglrenderer or particle , canvasrenderer used together.so want know whether particle can used in webglrenderer . wish control every particle's movement in system webglrenderer .how can it?

when create particle system can pass in geometry. this:

        var geom = new three.geometry();         var material = new three.particlebasicmaterial({size:4, vertexcolors: true, color:0xffffff});          (var x = -5 ; x < 5 ; x++) {             (var y = -5 ; y < 5 ; y++) {                     var particle = new three.vector3(x*10,y*10,0);                     geom.vertices.push(particle);                     geom.colors.push(new three.color(math.random()*0x00ffff));             }         }          var system = new three.particlesystem(geom,material);         scene.add(system); 

by changing position of each individual vertices can move them around.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -