[osg-users] cessnafire.osg...

Jean-Sébastien Guay jean-sebastien.guay at cm-labs.com
Mon Jul 7 11:52:57 PDT 2008

Hi Shayne,

> If it is possible to isolate the particle system out of the cessnafire.osg
> file, I would like to see a code snippet that does this...

Anytime you want to find a node in the scene graph, you probably need to 
should make a node visitor. Looks like ParticleEffect is a subclass of 
osg::Group, so you'll have to override the accept(osg::Group& group) 
method and try to dynamic_cast<osgParticle::ParticleEffect*>(&group) and 
then do what you want with it.

Hope this helps,

Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com

More information about the osg-users mailing list