Search Issue Tracker
Duplicate
Votes
44
Found in
5.3.0b4
Issue ID
740602
Regression
No
[Assert] Screen position out of view frustum error printed non stop (Camera::ScreenPointToRay or Camera::ScreenToWorldPoint)
Open Scenes\level1.unity in the attached project and press Play. Notice how the Console gets spammed with "Screen position out of view frustum" errors:
Screen position out of view frustum (screen pos 0.000000, 0.000000, 1555688.750000) (Camera rect 0 0 256 256)
UnityEngine.Camera:Render()
UnityStandardAssets.Water.Water:OnWillRenderObject() (at Assets/MiniGolf/Standard Assets/Environment/Water/Water/Scripts/Water.cs:108)
UnityEditor.DockArea:OnGUI()
Recommendation:
If there are resources for it, add support for double precision to the relevant methods. Otherwise, clamp the far clip plane to never be larger than 1000000 (same max value it had before).
Comments (57)
-
boltposts
Oct 02, 2021 18:09
I'm glad to see the great detail here!.
-
Meceka
Nov 11, 2019 17:39
I have written how we fixed this issue in this forum post.
https://forum.unity.com/threads/solved-screen-position-out-of-view-frustum.60851/page-2#post-5163704 -
thefallengamesstudio
May 17, 2018 21:06
For anyone that may have a similar error message as we had: https://forum.unity.com/threads/solved-screen-position-out-of-view-frustum.60851/#post-3500789
-
nikix22
Mar 15, 2018 12:46
Try with this fix! :)
In Water.cs you have 2 places with this calls (in function OnWillRenderObject() ) :
...
reflectionCamera.Render();
...
refractionCamera.Render();
...Just add condition before render like this:
....
if (!reflectionCamera.orthographic)
refractionCamera.Render();
...
if (!refractionCamera.orthographic)
refractionCamera.Render();
....this worked for me, and rendering still works even in Editor window, all without errors.
Cheers! -
Nazowa
Nov 25, 2017 12:58
Assertion failed: Screen position out of view frustum (screen pos 0.000000, 0.000000, 1000.000000) (Camera rect 0 0 795 415)
UnityEngine.Camera:Render()
Assertion failed: Screen position out of view frustum (screen pos 0.000000, 415.000000, 1000.000000) (Camera rect 0 0 795 415)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)Take your pick. This has reincarnations in various flavors.
-
lexipwodahS
Nov 09, 2017 01:42
i have 5.5.0 and i get this error when i follow the survival shooter tutorial made by unity. It happened when i switched the camera to orthographic mode.
-
Brozef
Oct 27, 2016 18:24
For me this was only showing up in the Console when my Editor camera was in 2D mode. So if you are playing the game in the editor and your editor camera is in 2D mode just switch it back to 3D and the error goes away.
-
DeadShawn
Feb 28, 2016 02:08
Just upgraded to 5.3.3f1, still having the issue
-
DeadShawn
Feb 28, 2016 01:15
Having this issue in 5.3.2f1. Even removing default from the reflection mask doesn't help. Only if I deactivate the PlanarReflection script does it go away.
-
Lionious
Feb 11, 2016 10:00
there also problem with Reflec now , that i can't select any game objects on my scene if my water script is on for Reflec that really need srs fix .
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Render Graph Execution errors when using GPU occlusion culling with 'Opaque Objects' frame setting disabled on a Camera
- Animator window: “Delete” menu item not greyed out for Base Layer context menu
- Resetting “PC_RP Asset (Universal Render Pipeline Asset)” causes Game view to become black and throws Renderer and NullReference errors in the Console window
- [Mobile] Player Crash on scripting_invoke_profiler_begin when the built Player Scene has an empty UIDocument and is built on IL2CPP
- Unnecessary Warnings are logged when running Player with -batchmode -nographics
This is a duplicate of issue #801555