Sign in to follow this  

waterMaterial problem

Recommended Posts

Hello everyone,

I have a strange problem with waterMaterial in my scene, its hard to reproduce it in a playground so here are images :


The problem is that the reflection  part of the water becomes suddenly opaque. The ground becomes no more visible at some frontier (along x axis on this image).
I made a video to make it more clear, focus on the transparency of the water :


I don't know how to fix this 😕 Any idea ?

Share this post

Link to post
Share on other sites

@Deltakosh Thx for looking at it

I've tried to set waterMaterial.fresnelSeparate to false but I can't notice a difference 😕

I could notice that the more the camera is high, the more the "limit" seems to move away... Somehow I need the camera to stay at low altitude in my scene 😕
It's hard to describe so I set up a page to display wheat I mean :
If you just move back and forth, you'll notice it

Is there a way to fix this ?
Or what's the right way to handle water ?

Any advice is welcome ^=^

Share this post

Link to post
Share on other sites

Hello again @Deltakosh ^_^

If I may insist one last time, I finally came across the "problem".

In the official demo from the water doc, the water mesh is created with BABYLON.Mesh.CreateGround() ans is perfectly correct :

But if the water mesh is created with BABYLON.Mesh.CreatePlane() it's different :

I accidentally noticed that, thus my problem is solved ! But I still wonder why the result is not the same ?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.