How to use the ParticleSystem function from three

Find comprehensive JavaScript three.ParticleSystem code examples handpicked from public code repositorys.

1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
	}

	this.in_n = (this.in_n === null)? in_n : Math.min(in_n, this.in_y);
	this.in_x = (this.in_x === null)? in_x : Math.max(in_x, this.in_x);

	var ps = new THREE.ParticleSystem(geometry, this.material);
	this.pss.push(ps);

	this.pointsSoFar += count;
};
fork icon13
star icon110
watch icon0

188
189
190
191
192
193
194
195
196
197
});
for (var j = 0; j < countsplit; j++) {
  for (var k = 0; k < countsplit; k++) {
    for (var i = 0; i < countsplit; i++) {
      for (var l = 0; l < countsplit; l++) {
        tempsphere = makeSphere(); // new THREE.ParticleSystem(new THREE.OctahedronBufferGeometry(1,5),new THREE.MeshPhongMaterial({transparent: true, alphaTest: 0.5,}))
        // tempsphere.position.set(0, 50, 0);
        // tempsphere.dynamic = true;
        const tempcount = (countsplit - 1) / 2;
        const ii = i - tempcount;
fork icon0
star icon0
watch icon0

151
152
153
154
155
156
157
158
159
  depthTest: false,
  transparent: true

} );

mesh = new THREE.ParticleSystem( geometry, material );
scene.add( mesh );

//mouse = new THREE.Vector3( 0, 0, 1 );
fork icon0
star icon0
watch icon2

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)