Spotlight very close to tiny cube shines through the cube #63768

Closed
opened 2019-04-21 05:09:30 +02:00 by frew frew · 5 comments

{F6963029}System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GT 730/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67

Blender Version
Broken: version: 2.80 (sub 57), branch: blender2.7, commit date: 2019-04-17 19:26, hash: b46245470f
Worked: (optional)

Short description of error
Why is spotlight shining through cube? (Blender 2.80 EEVEE render view)
Thanks for any ideas. Maybe that's not what I'm seeing?

Exact steps for others to reproduce the error
add a cube, scale it down to dimensions x, y, z all 0.05, add spotlight and bring spotlight very close to cube,
bring spotlight radius down to around 1, power for this test 55W, notice how it shines right through the cube, not sure why, I think it has something to do with the tiny cube size so close to the spotlight, also setting spotlight custom distance to something like 0.20m works to stop the shining through the cube, also here spotlight shadow enabled/disabled makes no difference, thanks for any ideas

{[F6963029](https://archive.blender.org/developer/F6963029/Blender_2.8_beta_4-17-19_1_2_why_is_the_spotlight_shining_through_the_cube_Blender_2_80_EEVEE_rendered_view.blend)}**System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: GeForce GT 730/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67 **Blender Version** Broken: version: 2.80 (sub 57), branch: blender2.7, commit date: 2019-04-17 19:26, hash: `b46245470f` Worked: (optional) **Short description of error** Why is spotlight shining through cube? (Blender 2.80 EEVEE render view) Thanks for any ideas. Maybe that's not what I'm seeing? **Exact steps for others to reproduce the error** add a cube, scale it down to dimensions x, y, z all 0.05, add spotlight and bring spotlight very close to cube, bring spotlight radius down to around 1, power for this test 55W, notice how it shines right through the cube, not sure why, I think it has something to do with the tiny cube size so close to the spotlight, also setting spotlight custom distance to something like 0.20m works to stop the shining through the cube, also here spotlight shadow enabled/disabled makes no difference, thanks for any ideas
Author

Added subscriber: @frew

Added subscriber: @frew
Contributor

Added subscriber: @TomoakiKawada

Added subscriber: @TomoakiKawada
Contributor

There are two issues here:

  1. The "Clip Start" value of the spotlight is too large. It should be below the distance to the shadow casters or they won't cast a shadow. However, because of how shadow mapping works, it mustn't be zero. Try 0.01m.
  2. The "Exponent" value should be increased to, like 500 in this case. This is an inherent restriction of ESM, and is actually described on the manual:

ESM
They are fast to filter but light leaking may occur near a occluder. This can be minimized by increasing the Exponent parameter.

There are two issues here: 1. The "Clip Start" value of the spotlight is too large. It should be below the distance to the shadow casters or they won't cast a shadow. However, because of how shadow mapping works, it mustn't be zero. Try `0.01m`. 2. The "Exponent" value should be increased to, like `500` in this case. This is an inherent restriction of ESM, and is actually described on [the manual](https://docs.blender.org/manual/en/dev/render/eevee/shadows.html?highlight=esm): > **ESM** > They are fast to filter but light leaking may occur near a occluder. This can be minimized by increasing the Exponent parameter.
Author

Okay, nice, thanks so much for looking into this. Yes, now it works to not shine through the cube when I set:

Spotlight selected> Properties panel> Object Data> Shadow> Clip start> 0.02m

Spotlight selected> Properties panel> Object Data> Shadow> 200.0

Good to know, thanks again!

Okay, nice, thanks so much for looking into this. Yes, now it works to not shine through the cube when I set: Spotlight selected> Properties panel> Object Data> Shadow> Clip start> 0.02m Spotlight selected> Properties panel> Object Data> Shadow> 200.0 Good to know, thanks again!

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2019-04-23 10:22:46 +02: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#63768
No description provided.