No luck so I tried:
osgParticle::ModularEmitter* emitter =
dynamic_cast<osgParticle::ModularEmitter*>(
smoke->getEmitter() );
if ( emitter )
{
osgParticle::ConstantRateCounter* counter =
dynamic_cast<osgParticle::ConstantRateCounter*>( emitter->getCounter() );
if ( counter )
counter->setNumberOfParticlesPerSecondToCreate(
500 );
}
and still no luck.
-B
From: [email protected]
[mailto:[email protected]] On Behalf Of Jason Daly
Sent: Wednesday, August 31, 2011 11:23 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Density of the SmokeTrailEffect
On 08/31/2011 02:16 PM, Brad Colbert wrote:
Hi folks,
I have a simple rocket model with a SmokeTrailEffect added and the trail is
more like a train of "puffs". How do I control the "density" or closeness of
the puffs to make it look more like a trail?
The SmokeTrailEffect's ModularEmitter object has a parameter that you can tweak
to compensate emission rate for movement rate. I've not used it myself, so I
don't have any advice on how exactly to adjust it.
--"J"
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org