Shadow Pass with .0001 intensity lights works better! #25566

Closed
opened 2011-01-09 22:49:59 +01:00 by ben u · 3 comments

Relates to: #25524

%%%When generating a shadow pass, if you add 6 spot lamps -- intensity 0.001, non-shadow-casting -- at orthographic points (top, bottom, left, right, front, back) the results of the shadow pass are drastically different (and, in my opinion, better) than it is without the 6 lamps. See attached image for an example of how the shadow pass changes (though the main image doesn't change at all, or not enough to be discernible).

IN THE ATTACHED BLEND* render the current scene, which will return the shadow pass to the render window. Notice how it only shows shadows that have been cast by other surfaces (including surfaces on the same mesh, as with suzanne's ears and nose). Then turn off the renderability of the "DummyLamps" group and rerender. This is how the shadow pass is typically returned. The shadow details, especially on suzanne's face, are lost due to the "self-casting" shadow (presumably caused by the normals facing away from the only active lamp in the scene, similar to how a diffuse shader behaves).

For compositing purposes, the shadow pass with the six-lamp hack is much more useful, especially when compositing with real-world objects.

Fellow blenderer Sebastian König seems to agree with me on this (though we rely on Ton to make the decision; this is our second attempt to sway him!), and has posted a 5-minute video demonstrating the issue when compositing over real footage: http://vimeo.com/18589305

This is a followup on a less specific bug post that has since been closed: http://projects.blender.org/tracker/index.php?func=detail&aid=25524&group_id=9&atid=498
Other conversations have been held recently at blenderartists: http:*blenderartists.org/forum/showthread.php?t=206440 and http:*blenderartists.org/forum/showthread.php?t=206226%%%

**Relates to**: #25524 %%%When generating a shadow pass, if you add 6 spot lamps -- intensity 0.001, non-shadow-casting -- at orthographic points (top, bottom, left, right, front, back) the results of the shadow pass are drastically different (and, in my opinion, *better*) than it is without the 6 lamps. See attached image for an example of how the shadow pass changes (though the main image doesn't change at all, or not enough to be discernible). **IN THE ATTACHED BLEND*** render the current scene, which will return the shadow pass to the render window. Notice how it only shows shadows that have been cast by other surfaces (including surfaces on the same mesh, as with suzanne's ears and nose). Then turn off the renderability of the "DummyLamps" group and rerender. This is how the shadow pass is typically returned. The shadow details, especially on suzanne's face, are lost due to the "self-casting" shadow (presumably caused by the normals facing away from the only active lamp in the scene, similar to how a diffuse shader behaves). For compositing purposes, the shadow pass with the six-lamp hack is much more useful, especially when compositing with real-world objects. Fellow blenderer Sebastian König seems to agree with me on this (though we rely on Ton to make the decision; this is our second attempt to sway him!), and has posted a 5-minute video demonstrating the issue when compositing over real footage: http://vimeo.com/18589305 This is a followup on a less specific bug post that has since been closed: http://projects.blender.org/tracker/index.php?func=detail&aid=25524&group_id=9&atid=498 Other conversations have been held recently at blenderartists: http:*blenderartists.org/forum/showthread.php?t=206440 and http:*blenderartists.org/forum/showthread.php?t=206226%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Member

%%%Look; I'm not ignoring that there are design issues in Blender, but I prefer to spend most of my time on crucial fixes first.
There is a lot of 2.5 stuff that doesn't work yet - and which was meant to be coded.

The bug tracker is also not for reporting issues with Blender that fail to satisfy expectations, there are plenty of other channels for this (like irc, mailing lists, and OK... twitter!).

The issue is simply this:

  • when a normal is pointing away from a lamp, it doesn't check for shadow (since it won't get light). That saves render time :) But it could do this, and then return a shadow.
  • the render system - with ray trace - is also too complicated to store reliable shadow information separately. Instead, the shadow factor is being retrieved by comparing the raw diffuse pass (without shadow) and the final diffuse part. The rule then applied is that shadow-pass x diffuse = final diffuse.

So... for regular 3d renders in environments that works fine. (assuming you use shadow pass to get finer control over shadow).
For sebastian's case it fails yes, he only wants casted shadows exclusively.

The problem then still is boundary cases on spheres or smooth surfaces... the terminator problem, where shadows are being found whilst diffuse says it's visible for light.

Anyway, in our developer maillist it was discussed too, Matt Ebb pointed at the limited use as well.
We might be able to solve it with a 'cast shadow' pass or so... but for this we have to dive in our shading pipeline, which I rather prevent to do now.

Lastly: Sebastian can always drop in #blendercoders irc for advice or reviews, or he can mail bf-committers too. Twitter and vimeo is fun, but not efficient really.%%%

%%%Look; I'm not ignoring that there are design issues in Blender, but I prefer to spend most of my time on crucial fixes first. There is a lot of 2.5 stuff that doesn't work yet - and which was meant to be coded. The bug tracker is also not for reporting issues with Blender that fail to satisfy expectations, there are plenty of other channels for this (like irc, mailing lists, and OK... twitter!). The issue is simply this: - when a normal is pointing away from a lamp, it doesn't check for shadow (since it won't get light). That saves render time :) But it could do this, and then return a shadow. - the render system - with ray trace - is also too complicated to store reliable shadow information separately. Instead, the shadow factor is being retrieved by comparing the raw diffuse pass (without shadow) and the final diffuse part. The rule then applied is that shadow-pass x diffuse = final diffuse. So... for regular 3d renders in environments that works fine. (assuming you use shadow pass to get finer control over shadow). For sebastian's case it fails yes, he only wants casted shadows exclusively. The problem then still is boundary cases on spheres or smooth surfaces... the terminator problem, where shadows are being found whilst diffuse says it's visible for light. Anyway, in our developer maillist it was discussed too, Matt Ebb pointed at the limited use as well. We might be able to solve it with a 'cast shadow' pass or so... but for this we have to dive in our shading pipeline, which I rather prevent to do now. Lastly: Sebastian can always drop in #blendercoders irc for advice or reviews, or he can mail bf-committers too. Twitter and vimeo is fun, but not efficient really.%%%
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
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
2 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#25566
No description provided.