Search Issue Tracker

Won't Fix

Votes

9

Found in

2022.2.0b3

Issue ID

UUM-2718

Regression

No

"Screen position out of view frustum" error is throw when moving the mouse over the Game view with water in the Scene

--

-

How to reproduce:
1. Open user's attached "WaterBug" project
2. Open the "UI Menu" Scene
3. Move your mouse over the Game view

Expected results: No errors are thrown
Actual results: The "Screen position out of view frustum" error is spammed in the Console

Reproducible with: 2018.4.26f1, 2019.4.8f1, 2020.1.3f1, 2020.2.0a21

Notes:
- The error might not appear sometimes but changing the Editor window size will make the error start appearing
- The issue reproduces on Editor and Windows Standalone Build
- The issue does not reproduce on WebGL Build
- Opening the Build in the windowed mode can sometimes make the error stop from appearing and it will not be appearing even when launching it in non-windowed mode later
- In the Editor closing and re-opening the Game view will make the error stop appearing
- In the Water.cs script changing the line 224 (reflectionCamera.Render()) to:
if (reflectionCamera.rect.x \!= 0 && reflectionCamera.rect.y \!= 0)
\{
reflectionCamera.Render();
}
will fix the issue in both the Editor and the Build

  1. Resolution Note:

    No reproducible issue found on the engine side. The issue lies in the water implementation.

Comments (2)

  1. Kamyker

    Sep 06, 2020 12:43

    "reflectionCamera.rect.x != 0 && reflectionCamera.rect.y != 0" is always false

  2. Kamyker

    Sep 06, 2020 12:43

    if (reflectionCamera.rect.x != 0 && reflectionCamera.rect.y != 0)
    {
    reflectionCamera.Render();
    }

    This doesn't fix the issue but disables water completely as rect.x and rect.y is always 0

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.