Re: [osg-users] Density of the SmokeTrailEffect

2011-08-31 Thread Brad Colbert
No luck so I tried:

osgParticle::ModularEmitter* emitter =
dynamic_cast( 
smoke->getEmitter() );

if ( emitter )
{
osgParticle::ConstantRateCounter* counter =

dynamic_cast( emitter->getCounter() );

if ( counter )
counter->setNumberOfParticlesPerSecondToCreate( 
500 );
}

and still no luck.

-B

From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] 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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Density of the SmokeTrailEffect

2011-08-31 Thread Jason Daly

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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org