Cascaded shadows produced with EEVEE with orthographic camera loose resolution. #82797

Open
opened 2020-11-17 19:53:21 +01:00 by Luciano Muñoz Sessarego · 12 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2070 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-16 21:19, hash: 09045ff64d
Worked: no idea?

Short description of error
As you can see in the image below, to the left side we have an orthographic camera, to the right we have a normal perspective view and the shadows are broken through the orthographic one,
2020-11-17 18_50_12-Settings.png

Exact steps for others to reproduce the error
Create a new scene
Put a plane to cast shadows from the light source
select the camera and switch it to orthographic.
turn the light to sun light
tada!

It doesn't seem to happen with the lights in either point, spot or area.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2070 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30 **Blender Version** Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-16 21:19, hash: `09045ff64d` Worked: no idea? **Short description of error** As you can see in the image below, to the left side we have an orthographic camera, to the right we have a normal perspective view and the shadows are broken through the orthographic one, ![2020-11-17 18_50_12-Settings.png](https://archive.blender.org/developer/F9313128/2020-11-17_18_50_12-Settings.png) **Exact steps for others to reproduce the error** Create a new scene Put a plane to cast shadows from the light source select the camera and switch it to orthographic. turn the light to sun light tada! It doesn't seem to happen with the lights in either point, spot or area.
Author
Member

Added subscriber: @LucianoMunoz

Added subscriber: @LucianoMunoz
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Cannot reproduce here:

image.png

#82797.blend

  • Does above file work for you?
  • Please share your own minimal example file
Cannot reproduce here: ![image.png](https://archive.blender.org/developer/F9316149/image.png) [#82797.blend](https://archive.blender.org/developer/F9316156/T82797.blend) - Does above file work for you? - Please share your own minimal example file
Author
Member

That one does work, but even with the same setting everything in default doesn't work for me.
Here is a minimal example file:
T82797_looch.blend

That one does work, but even with the same setting everything in default doesn't work for me. Here is a minimal example file: [T82797_looch.blend](https://archive.blender.org/developer/F9316527/T82797_looch.blend)
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Sorry this slipped through, will inspect again

Sorry this slipped through, will inspect again
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @fclem

Added subscriber: @fclem
Member

Not entirely sure why this is, will confirm for now.

You can get a bit better by using the highest cascade resolution:
T82797_looch_highest_cascade_res.blend

But there seems to be a considerable quality loss in orthographic
The comment in the doces regarding orthographic does not really help me understand this phenomenom either:
https://docs.blender.org/manual/en/dev/render/eevee/lighting.html#cascaded-shadow-map

In orthographic view the cascades cover the whole depth range of the camera with an evenly distributed shadow precision.

@fclem: is this expected behavior?

Not entirely sure why this is, will confirm for now. You can get a bit better by using the highest cascade resolution: [T82797_looch_highest_cascade_res.blend](https://archive.blender.org/developer/F9525260/T82797_looch_highest_cascade_res.blend) But there seems to be a considerable quality loss in orthographic The comment in the doces regarding orthographic does not really help me understand this phenomenom either: https://docs.blender.org/manual/en/dev/render/eevee/lighting.html#cascaded-shadow-map > In orthographic view the cascades cover the whole depth range of the camera with an evenly distributed shadow precision. @fclem: is this expected behavior?
Philipp Oeser changed title from Wrong shadows in produced with EEVEE with orthographic camera. to Cascaded shadows produced with EEVEE with orthographic camera loose resolution. 2020-12-22 13:53:51 +01:00

is this expected behavior?

Unfortunately yes. Your scene is about 10m from you camera. Your camera has about 1000m of depth to cover. Your scene will only cover 1% of the shadow map.

That said I don't remember the reasoning behind this. I guess this is to avoid loosing the shadows when toggling orthographic view. In viewport orthographic mode the depth range is "doubled" and starts way behind the point of interest. So if we were to reduce the covered depth range, none of the object shadowed in perspective view would keep their shadows.

I could make an exception for Camera Ortho view since the depth range should match the one of the Camera Persp view.

> is this expected behavior? Unfortunately yes. Your scene is about 10m from you camera. Your camera has about 1000m of depth to cover. Your scene will only cover 1% of the shadow map. That said I don't remember the reasoning behind this. I guess this is to avoid loosing the shadows when toggling orthographic view. In viewport orthographic mode the depth range is "doubled" and starts way behind the point of interest. So if we were to reduce the covered depth range, none of the object shadowed in perspective view would keep their shadows. I could make an exception for Camera Ortho view since the depth range should match the one of the Camera Persp view.
Author
Member

That'd be cool

That'd be cool
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:14:22 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#82797
No description provided.