AimplainLeo / osgocean

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

Geometry independent reflection #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A suggestion:

The projected reflection is completely independent of the actual water
geometry (waves) - the effects are most noticable when looking in wind
direction (see screenshot - although lighting clearly suggests the wave is
there the reflection looks just like on a plane).

Personally I think...

-tempPos.xy = v.xy + disp * N.xy;
+tempPos.xy = v.xy + disp * - v.z * N.xy;

...in distortGen() looks a lot more realistic (it no longer looks like the
reflection is cutting through the wave-tops).

But as this is probably highly subjective I'll leave it up to the
maintainer. :-)

Original issue reported on code.google.com by felix.nawothnig on 12 May 2010 at 10:01

Attachments:

GoogleCodeExporter commented 9 years ago
Any chance of a side by side comparison screenshot?

Original comment by kcb...@googlemail.com on 13 May 2010 at 7:52

GoogleCodeExporter commented 9 years ago
-tempPos.xy = v.xy + disp * N.xy;
+tempPos.xy = v.xy + disp * - v.z * N.xy;

What do you mean of the above codes?

Original comment by tianxiao...@foxmail.com on 24 May 2010 at 7:12