google-code-export / papervision3d

Automatically exported from code.google.com/p/papervision3d
1 stars 1 forks source link

BitmapParticleMaterial and MovieParticleMaterial displays only once #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to create a new BitmapParticleMaterial or MovieParticleMaterial 
2. Then try to create a few or many particles with same material
3. Only last one shows rest do not get displayed

What is the expected output? What do you see instead?
There should be many particles with same bitmap data but only last one is 
shown.

What version of the product are you using? On what operating system?
REvision 715, Vista.

Please provide any additional information below.
But if you create same number of BitmapParticleMaterial as particles but 
use same BitmapData it is solved. I was using these classes and they were 
working fine.

Code not working;

var i:Number = 10;
var bmpd:BitmapData = new tree(0,0);
var treeMaterial1:BitmapParticleMaterial = new 
BitmapParticleMaterial(bmpd);
while(i<10){
 var particle:Particle = new Particle(treeMaterial1, 1, i*100, height, 
i*100);
 particleField.addParticle(particle);
 i++;
}

Working code;

var i:Number = 10;
var bmpd:BitmapData = new tree(0,0);
while(i<10){
 var particle:Particle = new Particle(new BitmapParticleMaterial(bmpd);, 1, 
i*100, height, i*100);
 particleField.addParticle(particle);
 i++;
}

Original issue reported on code.google.com by bul...@gmail.com on 8 Sep 2008 at 12:20

GoogleCodeExporter commented 9 years ago
Assigned to seb.

Original comment by r.hauw...@gmail.com on 26 Sep 2008 at 12:05

GoogleCodeExporter commented 9 years ago

Original comment by sebsta...@gmail.com on 27 Sep 2008 at 12:47