EEVEE shadow rendering errors #60205

Closed
opened 2019-01-05 19:13:35 +01:00 by Lee A. Butler · 9 comments

System Information
Operating system: Windows 10
Graphics card: GTX 1080 & 1050Ti

Blender Version
Broken: blender-2.80.0-git.a7c5f4f20657-windows64

Shadow computation error when rendering with EEVEE. When two polygons touch there is light bleed-through in the shading computation which should not exist.

Open default scene.
Delete nearest vertical faces of default cube.
Render with EEVEE using F12
Upper edge of left rear face of cube receives illumination where it should be in shadow. Leaking illumination around right rear face of cube. Odd hard-shadow artifact on lower face on front edge.
eevee_lighting error.png
eevee_lighting error_annotated.png

I suspect this is due to edges being evaluated in different directions during the render, so there is an apparent gap where there isn't actually one in the topology of the object.

Renders correctly in Cycles or Blender 2.79 "Bender Render"

**System Information** Operating system: Windows 10 Graphics card: GTX 1080 & 1050Ti **Blender Version** Broken: blender-2.80.0-git.a7c5f4f20657-windows64 Shadow computation error when rendering with EEVEE. When two polygons touch there is light bleed-through in the shading computation which should not exist. Open default scene. Delete nearest vertical faces of default cube. Render with EEVEE using F12 Upper edge of left rear face of cube receives illumination where it should be in shadow. Leaking illumination around right rear face of cube. Odd hard-shadow artifact on lower face on front edge. ![eevee_lighting error.png](https://archive.blender.org/developer/F6188552/eevee_lighting_error.png) ![eevee_lighting error_annotated.png](https://archive.blender.org/developer/F6188615/eevee_lighting_error_annotated.png) I suspect this is due to edges being evaluated in different directions during the render, so there is an apparent gap where there isn't actually one in the topology of the object. Renders correctly in Cycles or Blender 2.79 "Bender Render"
Author

Added subscriber: @butler

Added subscriber: @butler

Added subscribers: @fclem, @ZedDB

Added subscribers: @fclem, @ZedDB
Clément Foucault was assigned by Sebastian Parborg 2019-01-25 13:23:05 +01:00

Is this something that can be fixed @fclem ?

Is this something that can be fixed @fclem ?

Added subscriber: @moisessalvador

Added subscriber: @moisessalvador

Not a bug. Those are the limitations of real time z depth shadows, since they are not raytraced. Very common in videogames.

You can get better results, but not out of the box until you tweak some values, turn things on or off, and make a trade between performance and precision. Here are the things you can do:
ezgif.com-video-to-gif (1).gif

  • Use geometry with thick walls instead of thin. Like if you make an interior, make sure to surround it with thick walls
  • Change ESM shadows for VSM shadows (located in the render settings)
  • Increase shadow resolution and use high bitdepth (render settings)
  • Decrease Softness on each lamp close to 0 and turn on Soft shadows in the render settings instead
  • Decrease Bias close to 0 (per lamp setting). If you're using VSM, increase Bleed bias too
  • Use contact shadows

I personally go for VSM, Shadow res = 2048 or higher, High bitdepth = on, Soft shadows = on, Softness = 0.3, Bias = 0, Bleed bias = 0.5, and Contact shadows = off, since they are screen space and weird with thin occluding objects

Not a bug. Those are the limitations of real time z depth shadows, since they are not raytraced. Very common in videogames. You can get better results, but not out of the box until you tweak some values, turn things on or off, and make a trade between performance and precision. Here are the things you can do: ![ezgif.com-video-to-gif (1).gif](https://archive.blender.org/developer/F6399764/ezgif.com-video-to-gif__1_.gif) - Use geometry with thick walls instead of thin. Like if you make an interior, make sure to surround it with thick walls - Change ESM shadows for VSM shadows (located in the render settings) - Increase shadow resolution and use high bitdepth (render settings) - Decrease Softness on each lamp close to 0 and turn on Soft shadows in the render settings instead - Decrease Bias close to 0 (per lamp setting). If you're using VSM, increase Bleed bias too - Use contact shadows I personally go for VSM, Shadow res = 2048 or higher, High bitdepth = on, Soft shadows = on, Softness = 0.3, Bias = 0, Bleed bias = 0.5, and Contact shadows = off, since they are screen space and weird with thin occluding objects

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

I'll close this then.

I'll close this then.

Added subscriber: @int-ua

Added subscriber: @int-ua

I see a signinficant gap between shadow and objects where there should be none, is it the same problem? new.blend
Screenshot_20200723_181727.png

Edit: here is a similar problem: https://blender.stackexchange.com/q/161979/1958

I see a signinficant gap between shadow and objects where there should be none, is it the same problem? [new.blend](https://archive.blender.org/developer/F8716390/new.blend) ![Screenshot_20200723_181727.png](https://archive.blender.org/developer/F8716381/Screenshot_20200723_181727.png) Edit: here is a similar problem: https://blender.stackexchange.com/q/161979/1958
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
4 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#60205
No description provided.