Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flickering Water Using 2 Cameras #10

Open
RendCycle opened this issue Sep 17, 2018 · 4 comments
Open

Flickering Water Using 2 Cameras #10

RendCycle opened this issue Sep 17, 2018 · 4 comments

Comments

@RendCycle
Copy link

RendCycle commented Sep 17, 2018

Hi! I'm using Unity 2018.1.6 and working with two Cameras in one Scene. I noticed the Ocean's mesh kept flashing/flickering on the Camera with a lower Depth value (ex: -10) when compared to the other Camera on top which has a higher Depth value (ex: 10) that looks normal. Both Cameras uses Unity's Post Processing Stack v1 and removing them doesn't make a difference. I've also tried changing the GameObject I specified in the "Follow" field and even removed it but the problem persists. Has Ocean been tested using 2 Cameras at least and would you have any solution to this issue?

@RendCycle
Copy link
Author

RendCycle commented Sep 17, 2018

Was able to find a fix by either turning off Reflection (and/or Refraction) or reducing the value of Every X Frames down to 1 in consequence of having lower FPS.
unity2018_community-ocean_flickering-solution2

But lowering the Texture Size XY to 256 x 128 seem to have increased the FPS a little.

Also discovered increasing the value of the Reflection Clip Plane Offset from 1 or 1.2 seem to have lessened any artifacts that pops up from time to time.

Still, I wish there was a way to specify more than one GameObject in the Follow field. This is so the seamlines or rather ocean tile separation is not that noticeable in the other Cameras as well and the mists will still be visible in them.

@eliasts
Copy link
Owner

eliasts commented Sep 18, 2018

Hi.

Yes I was about to tell you that the flickering comes from the reflection/refraction cameras.
You should try render after or before them.

The reflection issues should go away when the projected grid solution comes.

@RendCycle
Copy link
Author

RendCycle commented Sep 18, 2018

Hi.

Yes I was about to tell you that the flickering comes from the reflection/refraction cameras.
You should try render after or before them.

The reflection issues should go away when the projected grid solution comes.

Thanks for the reply! May I ask if you already have an estimated time of release on the Projected Grid or maybe an update?

I was also hoping there is a basic solution for having Underwater Effects even in the current version... Anyhow, I found a free solution (public domain) for nice caustics here if you still haven't found these and is interested but it will require modification to work in Unity 2018+ (download link at the bottom of page). https://www.dualheights.se/caustics/caustics-water-texturing-using-unity3d.shtml

@eliasts
Copy link
Owner

eliasts commented Sep 21, 2018

Projected grid should come before the end of 2018.

Thx for the hints on the underwater effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants