diff --git a/examples/osgspheresegment/osgspheresegment.cpp b/examples/osgspheresegment/osgspheresegment.cpp index 96ae6a286..fc5f4b7d8 100644 --- a/examples/osgspheresegment/osgspheresegment.cpp +++ b/examples/osgspheresegment/osgspheresegment.cpp @@ -220,9 +220,9 @@ void build_world(osg::Group *root) osgParticle::SmokeEffect* smoke = new osgParticle::SmokeEffect; osgParticle::FireEffect* fire = new osgParticle::FireEffect; - osg::Geode* geode = new osg::Geode; - geode->addDrawable(new osg::ShapeDrawable(new osg::Sphere(osg::Vec3(0.0f,0.0f,0.0f),10.0f))); - positionEffects->addChild(geode); + //osg::Geode* geode = new osg::Geode; + //geode->addDrawable(new osg::ShapeDrawable(new osg::Sphere(osg::Vec3(0.0f,0.0f,0.0f),10.0f))); + //positionEffects->addChild(geode); positionEffects->addChild(explosion); positionEffects->addChild(smoke); diff --git a/src/osgParticle/ExplosionEffect.cpp b/src/osgParticle/ExplosionEffect.cpp index a1c69a441..9ddad3b93 100644 --- a/src/osgParticle/ExplosionEffect.cpp +++ b/src/osgParticle/ExplosionEffect.cpp @@ -42,11 +42,13 @@ void ExplosionEffect::setDefaults() ps->setDefaultAttributes("Images/particle.rgb", false, false); _particleSystem = ps; + //_particleSystem->setUseIntialViewMatrix(true); // set up the emitter { osgParticle::ModularEmitter *emitter = new osgParticle::ModularEmitter; emitter->setParticleSystem(ps); + emitter->setReferenceFrame(osgParticle::ParticleProcessor::ABSOLUTE_RF); osgParticle::Particle ptemplate; @@ -128,6 +130,7 @@ void ExplosionEffect::buildEffect() osg::Geode *geode = new osg::Geode; geode->addDrawable(_particleSystem.get()); + //geode->setCullingActive(false); // add the geode to the scene graph addChild(geode); diff --git a/src/osgParticle/FireEffect.cpp b/src/osgParticle/FireEffect.cpp index c99cf3994..442f08075 100644 --- a/src/osgParticle/FireEffect.cpp +++ b/src/osgParticle/FireEffect.cpp @@ -41,11 +41,13 @@ void FireEffect::setDefaults() ps->setDefaultAttributes("Images/smoke.rgb", true, false); _particleSystem = ps; +// _particleSystem->setUseIntialViewMatrix(true); // set up the emitter { osgParticle::ModularEmitter *emitter = new osgParticle::ModularEmitter; emitter->setParticleSystem(ps); + emitter->setReferenceFrame(osgParticle::ParticleProcessor::ABSOLUTE_RF); osgParticle::Particle ptemplate; @@ -125,6 +127,7 @@ void FireEffect::buildEffect() osg::Geode *geode = new osg::Geode; geode->addDrawable(_particleSystem.get()); + //geode->setCullingActive(false); // add the geode to the scene graph addChild(geode); diff --git a/src/osgParticle/SmokeEffect.cpp b/src/osgParticle/SmokeEffect.cpp index d0d60976a..65553c8eb 100644 --- a/src/osgParticle/SmokeEffect.cpp +++ b/src/osgParticle/SmokeEffect.cpp @@ -42,11 +42,13 @@ void SmokeEffect::setDefaults() ps->setDefaultAttributes("Images/smoke.rgb", false, false); _particleSystem = ps; +// _particleSystem->setUseIntialViewMatrix(true); // set up the emitter { osgParticle::ModularEmitter *emitter = new osgParticle::ModularEmitter; emitter->setParticleSystem(ps); + emitter->setReferenceFrame(osgParticle::ParticleProcessor::ABSOLUTE_RF); osgParticle::Particle ptemplate; @@ -124,6 +126,7 @@ void SmokeEffect::buildEffect() osg::Geode *geode = new osg::Geode; geode->addDrawable(_particleSystem.get()); +// geode->setCullingActive(false); // add the geode to the scene graph addChild(geode);