Hi,
I've tried searching but have been unable to locate any helpful threads.
I'm wondering if it's possible to clone a particle system that has been created and designed in IrrEdit. I could easily code up my own particle systems and trivially make more of them on a whim, but the ability to visually design your particle system and tweak parameters in real time is great. Therefore, I'm wondering if there's some sort of clone method that will duplicate ParticleSystemSceneNodes.
Any help is appreciated. Thanks!
Cloning Particle Systems
The infrastructure is there, but nobody has implemented it for particle systems. The ISceneNode interface provides a clone() method that is to be overridden by all derived classes. It just isn't overridden for CParticleSystemSceneNode.
Once the clone() method was overloaded you'd just write
To do it right, you would probably want to add a clone() to both IParticleEmitter and IParticleAffector so that you could create copies of the emitter and affectors for the particle systems, so that they could be edited independently for
Unfortunately, somebody decided that clone() should clone a node and it's children instead of just cloning the node itself. That and the cloneMembers() method should have been made virtual...
Travis
Once the clone() method was overloaded you'd just write
Code: Select all
scene:ISceneNode* newParticleSystem = particleSystem->clone();
Unfortunately, somebody decided that clone() should clone a node and it's children instead of just cloning the node itself. That and the cloneMembers() method should have been made virtual...
Travis