I'm attempting to have some smoke track an airplane model as it moves. The problem is that the smoke is not rendered as the plane moves along. Below is the code snippet I'm using to set things up.
. osgParticle::ParticleEffect* smoke = 0; smoke = new osgParticle::SmokeTrailEffect(mm_position, scale, intensity); smoke->setWind(wind); osg::Group * effectsGroup = new osg::Group; effectsGroup->addChild(smoke); smoke->setUseLocalParticleSystem(false); osg::MatrixTransform *mt = new osg::MatrixTransform(); mt->addChild(cessnaNode); osg::NodeCallback * nc = new ModelPosOrientCallback(x,y,z,0,0,0); mt->setUpdateCallback(nc); mt->addChild(effectsGroup); root->addChild(mt); osg::Geode * geode = new osg::Geode; geode->addDrawable(smoke->getParticleSystem()); root->addChild(geode); viewer->setSceneData(root); . Can anyone tell me what I'm doing wrong and what I need to do to get things working correctly? If I comment out the call "smoke->setUseLocalParticleSystem(false)" code, the smoke appears but does not track with the airplane model as it moves. Thanks, -Shayne
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

