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

Underwater rendering delayed with whirlpools #1152

Open
2 tasks done
Revmatek opened this issue May 29, 2024 · 1 comment
Open
2 tasks done

Underwater rendering delayed with whirlpools #1152

Revmatek opened this issue May 29, 2024 · 1 comment
Labels

Comments

@Revmatek
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Have you checked the documentation to resolve your problem?

  • I have read the linked documentation and could not resolve my issue.

Current Behavior

If a camera enters the water through the side of a whirlpool, the underwater rendering will not be visible momentarily.

Expected Behavior

The transitions to underwater rendering should be similar to entering the water normally.

Steps To Reproduce

  1. Open the whirlpool scene
  2. Enable underwater rendering on the camera
  3. Move the camera back and forth in the water in the whirlpool underwater.
Underwater.Whirlpool.mp4

Unity Version

2021.3.26f

Crest Version

4.19

Render Pipeline

Built-In

Editor or Standalone

Editor (Edit Mode), Editor (Play Mode), Standalone

Environment

No response

Anything else?

No response

@daleeidd
Copy link
Collaborator

daleeidd commented Jun 29, 2024

Thanks. This is because the effect is enabled/disabled based on height, and there is not enough time for the effect to trigger before crossing the threshold (queries have a delay of a few frames).

A workaround is to enable Underwater Renderer > Debug > Disable Height Above Water Optimization. It will always have the underwater effecting running.

For these cases we will have to somehow improve this check.

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

No branches or pull requests

2 participants