Eevee: Soft shadows causing flickering in animation and temporal AA in scenes #68594

Open
opened 4 years ago by eklein · 17 comments
eklein commented 4 years ago

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.80

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449
Worked: (optional)

Short description of error
Eevee soft shadows in objects with thin reflections causes flickering in animation and temporal AA in still images. This type reflections common in interior Arch Viz.

Exact steps for others to reproduce the error
Scene 1 example of flickering of soft shadows in animation. I have remove all light probes and effects to focus only light and shadows. Open attach file "Scene1_AA_eevee.blend".
Render the animation with Soft Shadows ON. Then Render animation with Soft Shadows OFF.
Scene1_AA_eevee.blend

Animation with Soft Shadows ON. Make sure to play video at full size. If not video will be alias by the video player.
Scene1_AA_eevee.mp4

Animation with Soft Shadows OFF. Make sure to play video at full size. If not video will be alias by the video player.
Scene1_AA_No_SShadow_eevee.mp4

Animation in Cycles for comparison. Make sure to play video at full size. If not video will be alias by the video player.
Scene1_AA_cycles.mp4


Scene 2 example of temporal anti-aliasing cause by soft shadows. I have simplify the scene 2 to focus only light and shadows. Open attach file "Scene2_AA_eevee.blend".
Render Image with Soft Shadows ON. Then Render Image with Soft Shadows OFF.
Scene2_AA_eevee.blend

Render image with Soft Shadows ON. Make sure to view at full size. Notice the temporal AA on the edges on horizontal counter, vertical counter, oven handle and oven racks.
Scene2_AA_eevee.jpg

Render image with Soft Shadows OFF. Make sure to view at full size. Notice the temporal AA is gone.
Scene2_AA_No_SShadows_eevee.jpg

Render image with Cycles for comparison. Make sure to view at full size.
Scene2_AA_cycles.jpg

**System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.80 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` Worked: (optional) **Short description of error** Eevee soft shadows in objects with thin reflections causes flickering in animation and temporal AA in still images. This type reflections common in interior Arch Viz. **Exact steps for others to reproduce the error** Scene 1 example of flickering of soft shadows in animation. I have remove all light probes and effects to focus only light and shadows. Open attach file "Scene1_AA_eevee.blend". Render the animation with Soft Shadows ON. Then Render animation with Soft Shadows OFF. [Scene1_AA_eevee.blend](https://archive.blender.org/developer/F7661168/Scene1_AA_eevee.blend) Animation with Soft Shadows ON. Make sure to play video at full size. If not video will be alias by the video player. [Scene1_AA_eevee.mp4](https://archive.blender.org/developer/F7661169/Scene1_AA_eevee.mp4) Animation with Soft Shadows OFF. Make sure to play video at full size. If not video will be alias by the video player. [Scene1_AA_No_SShadow_eevee.mp4](https://archive.blender.org/developer/F7661170/Scene1_AA_No_SShadow_eevee.mp4) Animation in Cycles for comparison. Make sure to play video at full size. If not video will be alias by the video player. [Scene1_AA_cycles.mp4](https://archive.blender.org/developer/F7661177/Scene1_AA_cycles.mp4) ****************************************************************************************************** Scene 2 example of temporal anti-aliasing cause by soft shadows. I have simplify the scene 2 to focus only light and shadows. Open attach file "Scene2_AA_eevee.blend". Render Image with Soft Shadows ON. Then Render Image with Soft Shadows OFF. [Scene2_AA_eevee.blend](https://archive.blender.org/developer/F7661185/Scene2_AA_eevee.blend) Render image with Soft Shadows ON. Make sure to view at full size. Notice the temporal AA on the edges on horizontal counter, vertical counter, oven handle and oven racks. ![Scene2_AA_eevee.jpg](https://archive.blender.org/developer/F7661188/Scene2_AA_eevee.jpg) Render image with Soft Shadows OFF. Make sure to view at full size. Notice the temporal AA is gone. ![Scene2_AA_No_SShadows_eevee.jpg](https://archive.blender.org/developer/F7661192/Scene2_AA_No_SShadows_eevee.jpg) Render image with Cycles for comparison. Make sure to view at full size. ![Scene2_AA_cycles.jpg](https://archive.blender.org/developer/F7661194/Scene2_AA_cycles.jpg)
eklein commented 4 years ago
Poster

Added subscriber: @eklein

Added subscriber: @eklein
Collaborator

#79310 was marked as duplicate of this issue

#79310 was marked as duplicate of this issue
eklein commented 4 years ago
Poster

Another test for "Scene1_AA_eevee". Render image frame 2 and frame 3 in different slots. Compare these two frames and notice how the highlight switches between edges. These is causing the flickering in animation. Render the image frames again with Soft Shadows OFF. Notice their is no highlight switches between edges.

Another test for "Scene1_AA_eevee". Render image frame 2 and frame 3 in different slots. Compare these two frames and notice how the highlight switches between edges. These is causing the flickering in animation. Render the image frames again with Soft Shadows OFF. Notice their is no highlight switches between edges.
fclem commented 3 years ago
Collaborator

Added subscriber: @fclem

Added subscriber: @fclem
fclem self-assigned this 3 years ago
fclem commented 3 years ago
Collaborator

Thanks for raising awareness. After investigating, it seems to be a correlation artifacts. The same random numbers are used for AA and soft shadows jitter.

Using sobol should fix this issue, but sufficient amount of samples would be required.

Thanks for raising awareness. After investigating, it seems to be a correlation artifacts. The same random numbers are used for AA and soft shadows jitter. Using sobol should fix this issue, but sufficient amount of samples would be required.
Collaborator

This issue was referenced by ed779333bb

This issue was referenced by ed779333bb82a483c3f7833b959610c08f0bacb7
fclem commented 3 years ago
Collaborator

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
fclem closed this issue 3 years ago
fclem commented 3 years ago
Collaborator

After trying Sobol, I settled on using a multiplicator to halton as the points are better distributed than Sobol (in my opinion).

@eklein feel free to reopen if it does not feels fixed to you.

After trying Sobol, I settled on using a multiplicator to halton as the points are better distributed than Sobol (in my opinion). @eklein feel free to reopen if it does not feels fixed to you.
eklein commented 3 years ago
Poster

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
eklein reopened this issue 3 years ago
eklein commented 3 years ago
Poster

Clement great improvement in the temporal AA with soft shadows. In Scene2_AA the temporal AA is complete fix along as their is enough samples.

In Scene1 the flickering has being noticeably reduce, but their is still some flickering left. In "Scene1_AA_eevee" Render Animation to 100 frames and play the image sequence in the blender video editor make sure the fractional zoom is set to 1:1. Notice some flickering of the highlights.

Clement great improvement in the temporal AA with soft shadows. In Scene2_AA the temporal AA is complete fix along as their is enough samples. In Scene1 the flickering has being noticeably reduce, but their is still some flickering left. In "Scene1_AA_eevee" Render Animation to 100 frames and play the image sequence in the blender video editor make sure the fractional zoom is set to 1:1. Notice some flickering of the highlights.
eklein commented 3 years ago
Poster

I did more testing on Scene1_AA flickering. To solve most flickering left I had to increase samples 1024 and the film increase "Filter Size" to 2.0 to soften the thin highlights.

It does look at this time the PCF shadows requires a lot of samples to solve the AA/flickering with thin highlights with some help by increasing the "Filter Size". This also increase rendering time considerably for animation.

I did more testing on Scene1_AA flickering. To solve most flickering left I had to increase samples 1024 and the film increase "Filter Size" to 2.0 to soften the thin highlights. It does look at this time the PCF shadows requires a lot of samples to solve the AA/flickering with thin highlights with some help by increasing the "Filter Size". This also increase rendering time considerably for animation.
fclem commented 3 years ago
Collaborator

I think it's more related to the de-correlation factor I applied on soft shadows sampling. The factor is ~1000 so maybe changing this factor may reduce convergence time. But it's a bit black magic at this point, it can work in some case and fail in others.

The difference with cycles is that cycles does the randomization per pixel so the perceived flickering is less intense. But EEVEE can't do that and you are left with bumping the sample count.

I think it's more related to the de-correlation factor I applied on soft shadows sampling. The factor is ~1000 so maybe changing this factor may reduce convergence time. But it's a bit black magic at this point, it can work in some case and fail in others. The difference with cycles is that cycles does the randomization per pixel so the perceived flickering is less intense. But EEVEE can't do that and you are left with bumping the sample count.
fclem was unassigned by dfelinto 3 years ago
fclem commented 3 years ago
Collaborator

Unfortunately I don't have much of a solution here. So I'll left this open as known limitation.

Unfortunately I don't have much of a solution here. So I'll left this open as known limitation.
Collaborator

Added subscribers: @istoltoto, @mano-wii

Added subscribers: @istoltoto, @mano-wii

In #68594#859951, @fclem wrote:
Unfortunately I don't have much of a solution here. So I'll left this open as known limitation.

Hey Clément,
Here is a solution I found for this flickering using another softwere,
Maybe you get an idea from this addon on how to solve this in future. At least in rendering as an option to denoise.

Here is a video test I made with a grass rendered in Eevee, with before and after apply this plugin.
https://www.youtube.com/watch?v=5utbCECHewA&feature=youtu.be

DE:Noise for Premiere
https://revisionfx.com/products/denoise/

https://player.vimeo.com/video/116886900?portrait=0

Grass (1).blend

> In #68594#859951, @fclem wrote: > Unfortunately I don't have much of a solution here. So I'll left this open as known limitation. Hey Clément, Here is a solution I found for this flickering using another softwere, Maybe you get an idea from this addon on how to solve this in future. At least in rendering as an option to denoise. Here is a video test I made with a grass rendered in Eevee, with before and after apply this plugin. https://www.youtube.com/watch?v=5utbCECHewA&feature=youtu.be DE:Noise for Premiere https://revisionfx.com/products/denoise/ https://player.vimeo.com/video/116886900?portrait=0 [Grass (1).blend](https://archive.blender.org/developer/F8729024/Grass__1_.blend)

Added subscriber: @JacobMerrill-1

Added subscriber: @JacobMerrill-1

is there a way to not use soft shadows, and apply a 2d filter to the shadow buffer?
like depth aware blur or something?

is there a way to not use soft shadows, and apply a 2d filter to the shadow buffer? like depth aware blur or something?
lichtwerk removed the
legacy module/Eevee & Viewport
label 19 hours ago
lichtwerk removed the
Interest/Eevee & Viewport
label 19 hours ago
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
Interest/Eevee & Viewport
Interest/Freestyle
Interest/Geometry Nodes
Interest/Grease Pencil
Interest/Images & Movies
Interest/Import/Export
Interest/Line Art
Interest/Masking
Interest/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Overrides
Interest/Performance
Interest/Pipeline, Assets & I/O
Interest/Translations
Interest/Undo
Interest/USD
Interest/Video Sequencer
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/Nodes & Physics
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Performance
legacy project/Physics
legacy project/Platforms, Builds, Tests & Devices
legacy project/Pose Library Basics
legacy project/Python API
legacy project/Render & Cycles
legacy project/Render Pipeline
legacy project/Retrospective
legacy project/Sculpt, Paint & Texture
legacy project/Text Editor
legacy project/Tracker Curfew
legacy project/Triaging
legacy project/User Interface
legacy project/UV Editing
legacy project/VFX & Video
legacy project/Virtual Reality
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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
6 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#68594
Loading…
There is no content yet.