Hi Martin,
This problem arises with two particular effects, the glare and the
underwater dof which require special treatment of the alpha component in
the framebuffer.
You can disable those using:
enableUnderwaterDOF(false)
enableGlare(false)
Then you need to disable the default scene shader with this:
setUseDefaultSceneShader(false)
In the OceanScene class.
If you remove the default shader you'll also lose the underwater light
scattering and fogging calculations on models below the surface.
Trying to offer lots of out-of-the-box shader effects whilst also
accommodating the fixed pipeline is a tricky problem and this area needs
a little work, but that should work for you.
Regards,
Kim.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin
Scheffler
Sent: 16 June 2009 15:18
To: [email protected]
Subject: Re: [osg-users] osgOcean 1.0 (LGPL) Released
Hi,
I compiled osgOcean and everything works fine here. I ran into trouble
when integrating it with my existing application. When I used the last
version of osgOcean, I could just put the ocean somewhere in the scene
graph and it did not interact with my other stuff. Now osgOcean blocks
my view onto the other objects in the scene. When I add the objects as
children to the OceanScene, the objects are shown, but the ocean shaders
are applied to the objects. This add some sparkling effects to my
animations, which looks nice but is not really what I want.
So how can I add my objects to the scene without interference?
Thank you!
Cheers,
Martin
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=14038#14038
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
*****************************************************************************************
To view the terms under which this email is distributed, please go to
http://www.hull.ac.uk/legal/email_disclaimer.html
*****************************************************************************************
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org