Re: [osg-users] PrecipitationEffect how to catch and modify particles

2008-10-06 Thread Robert Osfield
Hi Matthieu, Switching the effect off under terrain is not straight forward as the effect is achieved by creating a repeating regular grid of bricks of particles. Each brick is actually just a single geometry that the shader uses coord data to position in its final place. This technique provides

[osg-users] PrecipitationEffect how to catch and modify particles

2008-10-06 Thread Matthieu DIRRENBERGER
Hello, I am using osgParticle::PrecipitationEffect to add snow or rain on my scene. I am looking at a way to determine for each particle, if z position is under the terrain or not. The objective is, when a particle is under an object or in a tunnel it should not be visible... In a firs