WaterRenderPass - transparent coastline

On a sidenote: This effect can be noticed in the TestQuadWater Test, too. I've attached an image showing what happens when the water height is only slightly higher than the large monkey-textured box in the test.



~ Frase



(At least I guess that it is the very same effect  :D)

Hi,



found a possibly similar thread recommending tweaking / removing the depth texture to increase transparency. I’ll have a look at it :slight_smile:



~ Frase

Check the water plane height and water height.

pitchonel said:

Check the water plane height and water height.

What exactly should I check there?

~ Frase
Frase said:

pitchonel said:

Check the water plane height and water height.

What exactly should I check there?

~ Frase

If they are the same.

They are the same (both are 0).



Changing the water quad’s height to be a little lower (e.g. -1) sort of helps to reduce the “oil” or “mercury” look, but then of course other effects are starting to appear.



Eventually having a look at the sourcecode might help. I’m doing nothing fancy there. The interesting parts are imho the code where the water is set up and where the water quad gets updated each frame: simpleUpdate() (and setVertexCoords(…) which is called from there). The water stuff is written like the TestQuadWater jmetest so I hope it’s easy to read :slight_smile:



Thanks so far

~ Frase

I've updated today to the head version jME (trunk of course) as my working copy was somewhat old. I hoped the issue would go away, but instead it got worse. I've attached a screenshot of the TestQuadWater demo which also shows this bug. Is there any chance that this bug and the "effect" I'm still experiencing relate to each other?


Hi all,



the image posted by me in my last reply does not seem to have anything to do with the effect I was investigating.



After talking with damadmax about this issue, he gave me the hint to set waterEffect.setWaterMaxAmplitude(0.0f). This makes the effect go away (almost) completely :slight_smile:



I’ve attached an image showing the result.



Thanks for all the hints nonetheless :slight_smile: