Hi Kevin,
Below is a piece of code that does exactly what you want in global WGS84
ellipsoid coord space. In your case just replace _xyz with the direction
vector you want the smoke to move.
osgParticle::FluidProgram* fp =
dynamic_castosgParticle::FluidProgram*
( _smokeTrailParticleEffect-getProgram() );
if( fp )
{
osg::Vec3 v = _xyz;
if( v.normalize() 0.0 )
fp-setAcceleration( v * 9.81 );
}
Cheers,
Wojtek Lewandowski
-Original Message-
From: Kevin Bentley
Sent: Thursday, October 21, 2010 10:35 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Upside down smoke trail
Hi,
I want to have a particle effect that looks like falling dust/dirt. I was
thinking of using something like a smoketrail effect (with a different
texture), but I can't figure out how to make the particles go down instead
of up.
Amy I on the wrong track here? Any ideas how to best accomplish a falling
dust/dirt effect?
Thanks,
Kevin
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32953#32953
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org