Hi Jefferson, On Fri, Dec 12, 2008 at 3:56 PM, Jefferson Pinheiro <[email protected]> wrote: > I'm working on a driving project on OSG, and now I am making it rain. I > added a precipitation effect for that. My scale is 1 unit = 1 cm. > > First question: > When my car runs just a bit (say, 5 km/h), the rain comes at my face as > though I was running at 200 km/h. And if I run faster than 20 km/h or so, > the rain bacomes glitchy (looks like it's snowing, too).
Shudder. Why or why would you have such a scale? Can't you just have a sensible scale like 1 unit = 1m? I you really must have such as scale then try putting a scale above the PrecipitationEffect. > How do I change the speed at which the rain comes? Have you looked at the API? > Second question > It also rains inside my car. I tried adding a node mask for that, but it > didn't seem to work. Is it possible not to make it rain inside the cars > (which are on a separete osg::Group)? PrecipitationEffect doesn't have an support itself for constraining the effect to appear inside/outside specified geometries. The best thing you could do would be to either try using the stencil buffer to prevent the fragments of the effect being rendered where you don't want them. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

