[osg-users] Vanishing Particles

b boltze con at bspot.de
Thu Sep 18 08:36:59 PDT 2008


Hi Charles,

thanks for your guess, but I found the problem already:

osgParticle::ParticleSystem is storing its particles in a 
std::vector<Particle>.

That means, of course, that pointers to particles may not remain valid all the 
time. Especially when the vector resizes itself, particles get copied, and 
hence pointers to them become invalid.

I'm not quite sure what to make out of this... essentially it means, that you 
can not track individual particles over their lifetime, which I definitely 
need to do for my application.

Now I'll go figure out something...

bastian



More information about the osg-users mailing list