Hi Robert,

On Mon, Dec 15, 2008 at 7:55 AM, Robert Osfield <[email protected]>wrote:

> Hi Fred & Jefferson,
>
> On Sun, Dec 14, 2008 at 10:49 AM, Frederic Bouvier <[email protected]>
> wrote:
> > I have a patch to PrecipitationEffect that seems to work. I'll submit it
> > to osg-submissions
>
> I've just done a review of these changes and don't feel that there are
> mostr straightforward and effecient way to implement what is
> effectively near plan clipping.  The code will make the vertex program
> slower, and not cut down on rasteristation and fill load.
>
> I feel a better route would be to either:
>
> 1) use two Camera's to depth partition the scene as suggested earlier
> in this thread, as this would give you control over the worlds depth
> range where the precipitation exists


This one works!

>
>
> 2) Use an osg::ClipPlane to clip the precipitation effect.  Using a
> clip plan would also allow you to control angle of the clipping.


I don't know how to use that (I'm a beginner). Fred, I would be grateful if
you could share your code, if you do it.

>
>
> Neither the above routes require any changes to the core OSG, and both
> would not affect the vertex program load, and would clip out fragment
> so would cut down the fragment program load so would be more efficient
> than the submitted fix.
>
> Could you test out the above suggestions?
>
> Thanks,
> Robert.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Jefferson Pinheiro
(51) 9192 3535
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to