Sign in to follow this  
Dad72

Multi-camera and WaterMaterial

Recommended Posts

I doubted me that the problem was not that the multi-camera, as trying to change the cameras only, the problem was the same.

I hope you find a solution.

Share this post


Link to post
Share on other sites

Yes it works.:)

For cons, I noticed a problem where water does not reflect the correct cloud sky as seen on the pictures below

PG here:

http://www.babylonjs-playground.com/#1SLLOJ#295

Results on the image that comes playground : (Left is error, right is the result normally)

593e4552e8f36_2017-06-1209_37_26-Babylon.jsPlayground.jpg.7e0877a5e8971ba0a996468bcb172d42.jpg  593e462020447_2017-06-1209_41_33-Babylon.jsPlayground.jpg.85ca69ba574813bdabc1fc3ef98a0ca4.jpg

One can also see the results on the image that comes to my current project

593e4522504c0_2017-06-1209_29_20-Perfectsociety.jpg.c57371a52c6b87e0bb9c5344675ac881.jpg

 

Thank you DK

Share this post


Link to post
Share on other sites

scene.activeCamera.layerMask is always "2". And in the demo, the water is in layerMask "1". Need to find why (@Deltakosh help granted xD)

Edit: in scene.ts, when rendering the custom render targets, there is this line: "this.activeCamera = renderTarget.activeCamera || this.activeCamera;". Why scene.activeCamera is not the one with layerMask = 1

Share this post


Link to post
Share on other sites

I do not know if this is normal, but maybe yes. When you have a large extended water with large terrain. refraction is considerably lower FPS of 80%.

Is this normal?

Share this post


Link to post
Share on other sites

The problem with water is that we must render reflection and refraction. Then, in a simple scene you terrain is rendered 3 times for:

- refraction

- reflection

- the normal render

more the terrain is high quality more you need a GTX1080 ^^

Share this post


Link to post
Share on other sites

I have a GTX 960 4GB (1080 is coming soon). it's a good graphics card the 960. 

Yet refraction underwater (with heightmap) gives me 5 to 12 FPS. I find it strange because I think my graphics card allows me to use very greedy games. and there just water, is very greedy in Babylon

Is an optimization problem for water ? I think even a GTX 1080 would not be sufficient. This is not normal already with a GTX 960 that allows me to play to HD games with refraction, reflection and other ...

593f9eba408a9_2017-06-1310_12_40-.thumb.jpg.e7c17f508f214307fd7eb277ce2c2987.jpg

Share this post


Link to post
Share on other sites

can you try:

- just create ground and don't create water marerial

- create ground and water material but don't assign water material to ground (just to know if internet rtt are the problem)

Then give me the FPS you have for both case ? Thanks ! It'll allow me to isolate the problem because I cannot reproduce here

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.