AimplainLeo / osgocean

Automatically exported from code.google.com/p/osgocean
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Add example that does not use full-screen effects #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As noted in Issue 2, osgOcean will most probably be incompatible with other
multi-pass effects, including osgShadow, especially because of the
full-screen effects. If an API could be provided to turn these off, then a
basic ocean surface would probably be possible that would be compatible
with other effects. (not sure but probably)

This should be explored and an example should be added to demonstrate this.
The current oceanExample would become the "everything and the kitchen sink"
example, and the new example would be the basic "bare-bones" example.

This is pretty high on my priority list since my current project at work
would require this (as a start).

Original issue reported on code.google.com by jean.sebastien.guay13@gmail.com on 12 Jun 2009 at 1:52

GoogleCodeExporter commented 9 years ago
As we discussed there are two ways of doing this (with the current 
implementation):

OceanScene can be setup with everything disabled, in that case it 'should' just 
act
as a group node with a vanilla cull traversal and an ocean surface attached.

The other option is to use the FFTOceanSurface on it's own as a geode node. This
would require you to manually set all the state uniforms that it inherits from
OceanScene. To tidy that up a bit it you could to add mutators to 
FFTOceanSurface
that set these uniforms locally, but that solution still seems a little 'hacky' 
to me.

Original comment by kcb...@googlemail.com on 12 Jun 2009 at 2:29

GoogleCodeExporter commented 9 years ago
Agreed, I think the best course is using OceanScene as it is intended to be 
used, but
just add flags to it to enable/disable different things. That keeps the nodekit
coherent while being more flexible for different usage scenarios. For example, 
I'm
pretty sure the ocean surface + reflection and refraction passes could work, 
it's the
full-screen effects I think that are most problematic.

I'll investigate this today.

Original comment by jean.sebastien.guay13@gmail.com on 12 Jun 2009 at 2:36

GoogleCodeExporter commented 9 years ago
This issue could have been closed a while ago, all effects now have flags to 
enable/disable them. Shame on me for keeping this open for so long. :-)

Original comment by jean.sebastien.guay13@gmail.com on 14 Apr 2011 at 1:21