MCprep icon indicating copy to clipboard operation
MCprep copied to clipboard

Can't see cloud and its shadows when it's behind a transparent object

Open HeyItsAnjello opened this issue 1 year ago • 1 comments

Did the issue happen after restarting Blender?

  • [X] Yes, the issue indeed continued after restarting Blender

Check known issues

  • [X] I have checked known issues, and my problem is different

What happened?

I was wondering why my scene's objects appear brighter when it's behind a texture with alpha transparency. Turns out it's because of the cloud affecting my lighting.

I discovered that it was because of the cloud's material, that it's using Light Path node's "Transparent Depth" to hide the part that's being obscured. Using "Transparent Depth" also makes it so that you can't see the clouds (or its shadows) when you're seeing it through a glass block with transparency.

Using Light Path's Transparent Depth: image

I've tried using backfacing instead and it seemed to fix seeing the clouds through a glass block. However, a different problem occurred that you can now see the clouds behind itself when you're not supposed to.

Using Geometry's Backfacing: image

What steps are needed to produce the bug?

Click "Create MC Sky" from McPrep and include clouds Create a glass block with alpha connected to alpha (so it's transparent) Put the glass block in front of the camera and look at the clouds and its casted shadows

What version of MCprep are you using?

3.5.3

What version of Blender are you using?

3.6.8

HeyItsAnjello avatar Apr 23 '24 18:04 HeyItsAnjello

Seems like an issue caused by #463. Tagging @TheDuckCow

StandingPadAnimations avatar Apr 23 '24 18:04 StandingPadAnimations

@TheDuckCow I think we should revert the change brought by #463, since it does seem to cause some weird problems in certain cases and view angles.

StandingPadAnimations avatar Jun 17 '25 08:06 StandingPadAnimations