Hi John,

I think this issue is not a bug but one of lack of user control on
whether you want to scale your particles by the local reference or in
world coordinates.  osgParticle principally works in world
coordinates, and when you are emitting particles you are emitting in
the world coordinate frame, it's does this as it's approximating to
real world effects.   What it sound likes you are after is that you
want the effect to be computed in local coordinates, and it won't be
just the emitter than you are likely to be wanting to scale, but
everything about the particle system.

Robert.

On Wed, Jun 10, 2009 at 4:57 PM, John Vidar
Larring<[email protected]> wrote:
> Hi Robert,
>
> I've just started experimenting with the osgParticle nodekit and I think I
> have found an issue: The ModularEmitter creates particles in a constant
> size/scale without considering the accumulated scale of its parent object.
>
> A simple example to illustrate the issue: If I want to illustrate an
> airplane with engine trouble over Orlando on a world map, I need to
> exaggerate the size of the airplane model (cessnafire.osg) by placing it
> under an appropriate transform. However, since the Particle system places
> the particles above the transform, they seemingly disappear.
>
> The modification in ModularEmitter::emit() is to find the accumulated scale
> that needs to be applied to the particles, and apply that scale to the
> particles size range as particles are created.
>
> Please run the attached test program (with or without a terrain as an
> argument). Before the patch is applied, you will only see the cessna. After
> the patch is applied, an engine fire will appear.
>
> Modifications have been made to svn trunk version: 10319
>
> Since this submission avoids API changes, I hope that it can make it to osg
> 2.8.2 as well.
>
> Please feel free to change the implementation since this is basically a hack
> to get things working for my own needs;) Thanks in advance.
>
> Best regards,
> John
>
> This email was Anti Virus checked by Astaro Security Gateway.
> http://www.astaro.com
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to