Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dynamic object light leaking in LightmapGI when Interior is enabled #103023

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Feb 19, 2025

When Interior is enabled, black out probes located near the LightmapGI's bounds so that dynamic objects don't receive lighting from them.

Note that #83420 does not supersede this PR, as it never excludes the 8 probes located at the AABB's vertices which are required for probe interpolation to work. These probes cannot be removed, so instead, they need to be made black in interior scenes to avoid light leaks.

Testing project: lightmap-colors-3.zip

Preview

With no additional lightmap probes

Interior OFF Interior ON
Image Image

With emissive object and LightmapProbe nearby

Interior OFF Interior ON
Image Image

With emissive object, LightmapProbe nearby and sun

Interior OFF Interior ON
Image Image

Display of the probes in the editor

Interior OFF Interior ON
Image Image

With Generate Probes Subdiv = 4

Interior OFF Interior ON
Image Image

@Calinou Calinou added bug topic:rendering topic:3d cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release labels Feb 19, 2025
@Calinou Calinou added this to the 4.5 milestone Feb 19, 2025
@Calinou Calinou requested review from a team as code owners February 19, 2025 01:50
@Calinou Calinou force-pushed the lightmapgi-interior-fix-dynamic-object-light-leaking branch from 9a60eda to 0f4a36a Compare February 19, 2025 01:52
When Interior is enabled, black out probes located near the LightmapGI's
bounds so that dynamic objects don't receive lighting from them.
@Calinou Calinou force-pushed the lightmapgi-interior-fix-dynamic-object-light-leaking branch from 0f4a36a to 85d6fe5 Compare February 19, 2025 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release topic:rendering topic:3d
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LightmapGI makes dynamic objects too bright in indoor scenes, even when Interior is enabled
1 participant