AimplainLeo / osgocean

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

Reflection is not attached to the object on water surface #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The reflected image of the boat doesn't seem to stay "attached" to the boat 
that's being 
reflected.  When a wave raises the boat up, the reflection seems to move lower.

osgOcean r182

reflections: true
refractions: true

None of the other osgOcean settings appear to have any affect (aside from 
making the 
waves smaller).

Note the attached image.  The water line on the boat is visible, but the 
reflection is 
well below it.  Same affect is found in the osgOcean osgExample with 
--testCollision.

WindowsXP
VS2008
FFTSS
GeForce GTX 280

Hope this helps,
Erik

Original issue reported on code.google.com by R.Erik.J...@gmail.com on 23 Nov 2009 at 7:36

Attachments:

GoogleCodeExporter commented 9 years ago
This isn't really a bug, but a side effect of using a static reflection plane 
and 
small models that sit very close to the water surface. The clip plane is set to 
the 
average height of the waves which due to the oscillation is usually around the 
zero 
mark. If the model is perched on top of a large wave it's possible that the 
whole 
model can be raised above the reflection plane you'll see the underside it(as 
in your 
picture). 

One way to improve this is to scale the model up so that it doesn't sit 
completely on 
top of a wave. There might be some trick to improve this issue but I haven't 
managed 
to find one yet.

Original comment by kcb...@googlemail.com on 23 Nov 2009 at 8:34

GoogleCodeExporter commented 9 years ago
I see, thanks for the explanation.  I guess the only solution is to not use a 
static 
reflection plane, but some other trick which would allow for objects at 
different 
heights.

For now, I'm happy enough to have any kind of reflections.  Nice work!
-Erik

Original comment by R.Erik.J...@gmail.com on 23 Nov 2009 at 9:31

GoogleCodeExporter commented 9 years ago

Original comment by jean.sebastien.guay13@gmail.com on 12 Oct 2010 at 2:47