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 first time I saw ParticleSystemUpdater
<http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs
/a01564.html>  but I don't know if it can work with
PrecipitationEffect...

I thought about a shader to do that, but I think I can do that simply
with the accept/traverse methods. 

I suppose I must implement a callback method, called by the visitor, but
I don't understand how to implement that visitor with
PrecipitationEffect.

 

Can you give me some help?

 

Thanks a lot.

 

Regards,

Matthieu.

 

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to