Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#23696] Receive Transparent produces shadows in diffuse pass

Date:
2010-09-06 04:03
Priority:
3
State:
Closed
Submitted by:
john armonk (zapperjet)
Assigned to:
Janne Karhu (jhk)
Category:
Rendering
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Receive Transparent produces shadows in diffuse pass
Detailed description
I believe this bug is carried over from Blender 2.49b's render engine. The material option for "Receive Transparent" produces a shadow-like projection when a diffuse pass is done to output to the compositor.

To reproduce:

1) Add a plane and some shadow casting geometry
2) Add a ray-tracing lamp with shadows of any sample and softness
3) Add a material to the plane
4) Set material to "Receive Transparent"
5) Set the render layer to output a Diffuse pass
6) View the Diffuse pass in the compositor. The shadow effect should appear.

Tested on Blender 2.53.1 r'31635.
System: AMD64 X2 6000+ 3Ghz, BFG 8800 GTS 640mb OC, 2GB Corsair DDR2-800, ASUS M2N32-SLI DELUXE, Creative SB X-Fi, SeaGate SATA 400GB
OS: Windows XP SP3

Followup

Message
  • Date: 2010-09-09 05:31
  • Sender: Elia Sarti
  • I'm not sure I understand this.

    To my knowledge the "Receive Transparent" option for shadows makes so that the material will have shadow casted on from objects with (semi-)transparent materials (e.g. glass).

    I don't see any transparent objects in the test file, am I missing something?
  • Date: 2010-09-10 02:38
  • Sender: john armonk
  • That is part of the issue. There are no transparent objects in the test scene. Blender seems to automatically assume other objects are transparent when "Receive Transparent" is turned on, and applies a shadow based on its diffuse color to the diffuse pass, making it difficult to composite shadows over a diffuse pass which already contains them.
  • Date: 2010-09-26 03:04
  • Sender: john armonk
  • I've attached another example that clearly shows the problem as I was working on an object earlier. What is rendered by default is only the diffuse pass. Note the projection of the object's colors on the plane. There are NO transparent objects however. The render engine is considering every object to be semitransparent. I wanted to add soft shadows via a Bilateral Blur node, but I can't do that accurately because of these artifacts.
  • Date: 2010-09-26 03:07
  • Sender: john armonk
  • apologies, added the same file again. Check the one labeled "trashadow_error_2.blend"
  • Date: 2010-11-12 00:34
  • Sender: john armonk
  • Ok, I see that the shadow pass has been fixed. Still, there is a ghosted colored shadow in the diffuse pass! This fixes nothing. It is still impossible to composite shadows over a bare diffuse pass without the weird transp shadow in the way.

    Perhaps making the colors of the transparent shadow part of the shadow pass, rather than the diffuse, since the shadow pass can contain RGB too?
  • Date: 2010-11-15 21:48
  • Sender: john armonk
  • Ok, I see that the shadow pass has been fixed. Still, there is a ghosted colored shadow in the diffuse pass! This fixes nothing. It is still impossible to composite shadows over a bare diffuse pass without the weird transp shadow in the way.

    Perhaps making the colors of the transparent shadow part of the shadow pass, rather than the diffuse, since the shadow pass can contain RGB too?
  • Date: 2010-11-16 00:30
  • Sender: john armonk
  • Ok, I see that the shadow pass has been fixed. Still, there is a ghosted colored shadow in the diffuse pass! This fixes nothing. It is still impossible to composite shadows over a bare diffuse pass without the weird transp shadow in the way.

    Perhaps making the colors of the transparent shadow part of the shadow pass, rather than the diffuse, since the shadow pass can contain RGB too?
  • Date: 2010-11-16 21:35
  • Sender: john armonk
  • Ok, I see that the shadow pass has been fixed. Still, there is a ghosted colored shadow in the diffuse pass! This fixes nothing. It is still impossible to composite shadows over a bare diffuse pass without the weird transp shadow in the way.

    Perhaps making the colors of the transparent shadow part of the shadow pass, rather than the diffuse, since the shadow pass can contain RGB too?
  • Date: 2010-11-19 08:43
  • Sender: Janne Karhu
  • Assigned to self for investigation.
  • Date: 2010-11-19 16:18
  • Sender: Janne Karhu
  • The transparent shadows were indeed effecting the diffuse pass, but nobody really knew why :) Problem solved by removing the code (fix in r33182), so now the diffuse pass should be clean. Closing the report.
 

Attached Files:

Name Date Download
tra_shadow_error.blend 2010-09-06 04:03 Download
tra_shadow_error.blend 2010-09-26 03:04 Download
trashadow_error_2.blend 2010-09-26 03:08 Download

Changes:

Field Old Value Date By
ResolutionInvestigate2010-11-19 16:18jhk
close_date2010-11-19 16:182010-11-19 16:18jhk
status_idOpen2010-11-19 16:18jhk
ResolutionNone2010-11-19 08:43jhk
assigned_tonone2010-11-19 08:43jhk
File Added12867: trashadow_error_2.blend2010-09-26 03:08zapperjet
File Added12866: tra_shadow_error.blend2010-09-26 03:04zapperjet
File Added12495: tra_shadow_error.blend2010-09-06 04:03zapperjet