Thanks Oliver, I'll have a look.

K.

On 1 June 2012 08:19, Oliver Neumann <[email protected]> wrote:

> Hi Kim,
>
> I attached the two files to this posting. The usage is simple, just
> use osgDB::readImageFile("FILEPATH") to get the a mask image that will
> then be applied to modulate the heights in the computeSea function. The
> mask is white where no change is needed and black where the ocean should
> not be visible.
>
> Currently it has some drawbacks:
> -The average height and the height of the lesser LOD's treats the masking
> height (e.g. -100.0f) like the valid heights
> -It is not easy to produce a specific height distribution aside from a
> plain surface thats bounded by a definable shore. A river that flows down
> some rapids or multiple waterfalls are hard to get correctly. It would be
> better if the mask is supplied with specific (relative) ground heights so
> that e.g. 0 means no change and a mask value of e.g. 10 means the surface
> should on average be 10 units elevated
> -LOD 0 (1 Quad) currently cannot benefit from the masking, maybe by using
> a shader/texture that has alpha values set like the mask, this effect can
> still be conveyed at LOD0
>
> Cheers,
> Oliver
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=47991#47991
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/fftoceansurface_864.cpp
> http://forum.openscenegraph.org//files/1719_1338534512._126.
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
osgOcean - http://code.google.com/p/osgocean/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to