Eevee - Baking Indirect Lighting - partcle emitter + complex shader produce dark spots #62742

Closed
opened 2019-03-19 12:26:53 +01:00 by Marcin Twarowski · 12 comments

Windows-10-10.0.16299 64 Bits
GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.35

2.80 (sub 50), branch: master, commit date: 2019-03-18 21:39, hash: d47f827019

Open attached file: irradiance_volume_bug.blend
Switch to rendered mode (Eevee). Press 'Bake Indirect Lighting'. You should see dark splotches appear on the wall.

The scene is a room with a window:
irradiance_bug_01.PNG
There's HDRI map from hdrihaven.com (CC0, 1k). It is rotated so that sun falls inside the room.
There is particle emitter set to render hair as objects:
irradiance_bug_01.JPG
Walls of the room have a fairly complex material with mixed procedural textures:
irradiance_bug_03.PNG
When Indirect lighting is baked dark spots appear. They seem to be rather random, each time the pattern is different:
irradiance_bug_05.JPG
irradiance_bug_04.JPG
Desktop 2019.03.19 - 11.29.07.03.mkv
Problem is gone if you remove the emitter. It also helps if you lower number of particles significantly:
irradiance_bug_06.JPG
Problem is gone when material on the wall is replaced with a simple shader like diffuse or principled:
irradiance_bug_07.JPG

Windows-10-10.0.16299 64 Bits GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.35 2.80 (sub 50), branch: master, commit date: 2019-03-18 21:39, hash: `d47f827019` Open attached file: [irradiance_volume_bug.blend](https://archive.blender.org/developer/F6849106/irradiance_volume_bug.blend) Switch to rendered mode (Eevee). Press 'Bake Indirect Lighting'. You should see dark splotches appear on the wall. The scene is a room with a window: ![irradiance_bug_01.PNG](https://archive.blender.org/developer/F6849116/irradiance_bug_01.PNG) There's [HDRI map from hdrihaven.com ](https://hdrihaven.com/hdri/?c=urban&h=portland_landing_pad) (CC0, 1k). It is rotated so that sun falls inside the room. There is particle emitter set to render hair as objects: ![irradiance_bug_01.JPG](https://archive.blender.org/developer/F6849140/irradiance_bug_01.JPG) Walls of the room have a fairly complex material with mixed procedural textures: ![irradiance_bug_03.PNG](https://archive.blender.org/developer/F6849151/irradiance_bug_03.PNG) When Indirect lighting is baked dark spots appear. They seem to be rather random, each time the pattern is different: ![irradiance_bug_05.JPG](https://archive.blender.org/developer/F6849161/irradiance_bug_05.JPG) ![irradiance_bug_04.JPG](https://archive.blender.org/developer/F6849160/irradiance_bug_04.JPG) [Desktop 2019.03.19 - 11.29.07.03.mkv](https://archive.blender.org/developer/F6849182/Desktop_2019.03.19_-_11.29.07.03.mkv) Problem is gone if you remove the emitter. It also helps if you lower number of particles significantly: ![irradiance_bug_06.JPG](https://archive.blender.org/developer/F6849169/irradiance_bug_06.JPG) Problem is gone when material on the wall is replaced with a simple shader like diffuse or principled: ![irradiance_bug_07.JPG](https://archive.blender.org/developer/F6849177/irradiance_bug_07.JPG)

Added subscriber: @MarcinTwarowski

Added subscriber: @MarcinTwarowski

Added subscribers: @fclem, @ZedDB

Added subscribers: @fclem, @ZedDB

I can not reproduce this on my end (linux, amd 290x).

@fclem can you reproduce this on a nvidia card?

I can not reproduce this on my end (linux, amd 290x). @fclem can you reproduce this on a nvidia card?

I tested it also on:

Windows-10-10.0.17763 64 Bits
GeForce GTX 750 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.35

The results vary from zero to couple of spots. Here's a video (sped up couple of times):
Desktop 2019.03.19 - 22.37.18.01.avi

I tested it also on: > Windows-10-10.0.17763 64 Bits > GeForce GTX 750 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.35 The results vary from zero to couple of spots. Here's a video (sped up couple of times): [Desktop 2019.03.19 - 22.37.18.01.avi](https://archive.blender.org/developer/F6852030/Desktop_2019.03.19_-_22.37.18.01.avi)
Clément Foucault was assigned by Sebastian Parborg 2019-03-21 12:14:21 +01:00

Hopefully this is the same issue as #62997. @MarcinTwarowski please report if tomorrow's build still have the issue or if this was solved as well.

Hopefully this is the same issue as #62997. @MarcinTwarowski please report if tomorrow's build still have the issue or if this was solved as well.

It seems to mostly fixed the problem with dark spots, although I still get occasional dark spot in my test scene:
irradiance_bake_bug.JPG
Unfortunately #62997 is not fixed for me. That change also seem to introduced a new bug: #63041

It seems to mostly fixed the problem with dark spots, although I still get occasional dark spot in my test scene: ![irradiance_bake_bug.JPG](https://archive.blender.org/developer/F6894568/irradiance_bake_bug.JPG) Unfortunately #62997 is not fixed for me. That change also seem to introduced a new bug: #63041

So this is not fixed. You can display the content of the irradiance cache in the viewport and see if only one sample is bad. Also you can add a reflection cubemap so you maybe can see where does the black spot comes from.

So this is not fixed. You can display the content of the irradiance cache in the viewport and see if only one sample is bad. Also you can add a reflection cubemap so you maybe can see where does the black spot comes from.

It bakes clean when camera is far from the volume. But I think it gets bad if the viewport camera is inside the volume. Here you can see two bad probes:
bad_probes.JPG
Here's a video with probes visible. You can see how screen glitches when camera is inside the volume. After first bake there's a bad probe in the corner. After second bake you can see the same probe is now good.
Desktop 2019.03.28 - 14.22.32.08.avi
With a cube map:
irradiance_bug_probes.JPG

It bakes clean when camera is far from the volume. But I think it gets bad if the viewport camera is inside the volume. Here you can see two bad probes: ![bad_probes.JPG](https://archive.blender.org/developer/F6895071/bad_probes.JPG) Here's a video with probes visible. You can see how screen glitches when camera is inside the volume. After first bake there's a bad probe in the corner. After second bake you can see the same probe is now good. [Desktop 2019.03.28 - 14.22.32.08.avi](https://archive.blender.org/developer/F6895116/Desktop_2019.03.28_-_14.22.32.08.avi) With a cube map: ![irradiance_bug_probes.JPG](https://archive.blender.org/developer/F6895167/irradiance_bug_probes.JPG)
Clément Foucault was unassigned by Dalai Felinto 2019-12-23 16:34:50 +01:00

Is this still happening with latest master?

Is this still happening with latest master?

Similarly to #62997 it crashed in newest build when I tried to bake. I made a bug report: #73251

Similarly to #62997 it crashed in newest build when I tried to bake. I made a bug report: #73251

Crash was fixed. I tested again and I can't reproduce the bug in that scene anymore.

Crash was fixed. I tested again and I can't reproduce the bug in that scene anymore.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Clément Foucault self-assigned this 2020-01-21 13:46:14 +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#62742
No description provided.