Eevee alpha texture shadow bug #61129

Closed
opened 2019-02-02 11:05:29 +01:00 by Tibor Horvath · 48 comments

System Information
Operating system: Windows 10 pro
Graphics card: AMD Radeon Vega 64 Sapphire nitro+

Blender Version
Broken: 2.80, 552b2287db, blender2.8, 2019-02-01
Worked: (optional)
alpha-shadow-bug.blend

Short description of error Eevee related! There are no shadows from image texture maps with alpha channel, if the blend mode is set to alpha clip and transparent shadow set to clip! As long as there is no image texture node linked to the shader it works (for example with checker tex.) but as soon as I put an image map into any slot, the shadows disappear!

Exact steps for others to reproduce the error

  • open the atached blend file
  • go in eevee viewport, shadow from cylinder and the alpha/checker map is there
  • open shader/node editor
  • put the image tex. node in one color slot from the checker or any other slot. Shadow will disappear! (at least with my PC - Setup)
**System Information** Operating system: Windows 10 pro Graphics card: AMD Radeon Vega 64 Sapphire nitro+ **Blender Version** Broken: 2.80, 552b2287db86, blender2.8, 2019-02-01 Worked: (optional) [alpha-shadow-bug.blend](https://archive.blender.org/developer/F6484023/alpha-shadow-bug.blend) **Short description of error** Eevee related! There are no shadows from image texture maps with alpha channel, if the blend mode is set to alpha clip and transparent shadow set to clip! As long as there is no image texture node linked to the shader it works (for example with checker tex.) but as soon as I put an image map into any slot, the shadows disappear! **Exact steps for others to reproduce the error** - open the atached blend file - go in eevee viewport, shadow from cylinder and the alpha/checker map is there - open shader/node editor - put the image tex. node in one color slot from the checker or any other slot. Shadow will disappear! (at least with my PC - Setup)
Author

Added subscriber: @tibor81

Added subscriber: @tibor81

#66387 was marked as duplicate of this issue

#66387 was marked as duplicate of this issue

#65041 was marked as duplicate of this issue

#65041 was marked as duplicate of this issue

#60309 was marked as duplicate of this issue

#60309 was marked as duplicate of this issue

Added subscriber: @moisessalvador

Added subscriber: @moisessalvador

I can't replicate it. Transparent clip shadows work fine for me, although at first it appeared mostly opaque because the texture is too bright above the clip threshold. By dissapear you mean the shadow becomes fully opaque or fully transparent?

I can't replicate it. Transparent clip shadows work fine for me, although at first it appeared mostly opaque because the texture is too bright above the clip threshold. By dissapear you mean the shadow becomes fully opaque or fully transparent?
Author

Ok, I've made some pics to show the issue.
shadow.jpg
In the Image above you see the behavior as expected. The cylinder and the transparent BSDF shader cast shadow on the cube behind them but...

no-shadow.jpg
As soon as I put the image texture node in the checker node or in any other slot, the shadows are completly gone. so I'm currently unable to create trees or hair with alpa textures and proper shadow casting in Eevee!

Ok, I've made some pics to show the issue. ![shadow.jpg](https://archive.blender.org/developer/F6485737/shadow.jpg) In the Image above you see the behavior as expected. The cylinder and the transparent BSDF shader cast shadow on the cube behind them but... ![no-shadow.jpg](https://archive.blender.org/developer/F6485773/no-shadow.jpg) As soon as I put the image texture node in the checker node or in any other slot, the shadows are completly gone. so I'm currently unable to create trees or hair with alpa textures and proper shadow casting in Eevee!

Yeah, this seems like a bug, although specific to your graphics. Let's hope Clement sees this

Yeah, this seems like a bug, although specific to your graphics. Let's hope Clement sees this

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Clément Foucault was assigned by Sebastian Parborg 2019-02-04 12:03:50 +01:00

On my end I do not get any shadows at all unless I set the transparent shadow to opaque. I'm on linux using a AMD 290x. So even on the default cube, the shadows vanish for me if the alpha mode shadows are not set to opaque.

@tibor81 I'm guessing you are using the latest drivers from AMD?
Can you attach the output of --debug-gpu?
https://docs.blender.org/manual/en/latest/render/workflows/command_line.html
blender.exe --debug-gpu > output.txt and load the scene and go into rendered mode. The output should be saved to output.txt, attach that file here.

I'm marking this as normal because I can't confirm the exact issue but there seems to be something going on here as I have issues on my end too.
output.txt

On my end I do not get any shadows at all unless I set the transparent shadow to opaque. I'm on linux using a AMD 290x. So even on the default cube, the shadows vanish for me if the alpha mode shadows are not set to opaque. @tibor81 I'm guessing you are using the latest drivers from AMD? Can you attach the output of `--debug-gpu`? https://docs.blender.org/manual/en/latest/render/workflows/command_line.html `blender.exe --debug-gpu > output.txt` and load the scene and go into rendered mode. The output should be saved to `output.txt`, attach that file here. I'm marking this as `normal` because I can't confirm the exact issue but there seems to be something going on here as I have issues on my end too. [output.txt](https://archive.blender.org/developer/F6506031/output.txt)
Author

Here's the requested File:
output.text

Here's the requested File: [output.text](https://archive.blender.org/developer/F6505513/output.text)
Author

Forgot to say. Yes I'm using the latest graphics driver!

Forgot to say. Yes I'm using the latest graphics driver!

Added subscribers: @shylon, @WilliamReynish

Added subscribers: @shylon, @WilliamReynish

Added subscriber: @muxalko

Added subscriber: @muxalko

Hello !
The same issue is on my iMac:
image.png

Cant do any debugs though :(
OpenGL debug callback is not available on Apple.

Mac (27-inch, Mid 2010)
2.8 GHz Intel Core i5
ATI Radeon HD 5750 1024 MB

Hello ! The same issue is on my iMac: ![image.png](https://archive.blender.org/developer/F6752818/image.png) Cant do any debugs though :( *OpenGL debug callback is not available on Apple.* Mac (27-inch, Mid 2010) 2.8 GHz Intel Core i5 ATI Radeon HD 5750 1024 MB
Author

Ok, it seems like, this Bug is only related to AMD graphics cards or there Drivers!
It would be interesting to know, if the behavior is the same with Nvidia cards. If its not and it works for example with a gtx 1080 (ti), than it should be easier to isolate the error!

Ok, it seems like, this Bug is only related to AMD graphics cards or there Drivers! It would be interesting to know, if the behavior is the same with Nvidia cards. If its not and it works for example with a gtx 1080 (ti), than it should be easier to isolate the error!

Added subscriber: @nokipaike

Added subscriber: @nokipaike

windows 10 here.
on my old Radeon HD 7600 it works well.
From Adaptive to Alpablend in clip mode and also in hashted mode

(my drivers are the obsolete one from 2016) legacy

nice to see... also the soft shadow.. works well

Screenshot (62).jpg

windows 10 here. on my old Radeon HD 7600 it works well. From Adaptive to Alpablend in clip mode and also in hashted mode (my drivers are the obsolete one from 2016) legacy nice to see... also the soft shadow.. works well ![Screenshot (62).jpg](https://archive.blender.org/developer/F6754185/Screenshot__62_.jpg)
Author

That is nice to see! have you also linked the image texture node in the black color slot of the checker node?! Without a linked img node my alpha clip shadow works also! The bug just appears with the alpha channel of the image texture node (at least by me)! With prodecural nodes it works...

That is nice to see! have you also linked the image texture node in the black color slot of the checker node?! Without a linked img node my alpha clip shadow works also! The bug just appears with the alpha channel of the image texture node (at least by me)! With prodecural nodes it works...

This issue was referenced by f0a20ae1c9

This issue was referenced by f0a20ae1c9505342721f841bcf537d465b5a54eb

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

still for me has problem
https://developer.blender.org/T60309

still for me has problem https://developer.blender.org/T60309

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

@shylon I guess that the same issue happens as before? IE, it works on linux but with the latest windows drivers it is still not working?

@shylon I guess that the same issue happens as before? IE, it works on linux but with the latest windows drivers it is still not working?

well yesterday on windows build crashed when on hit viewport's render and today worked but same problem, on linux Manjaro with latest update, the blender's today build it crashed when i hit viewport's render.

well yesterday on windows build crashed when on hit viewport's render and today worked but same problem, on linux Manjaro with latest update, the blender's today build it crashed when i hit viewport's render.
Author

I don't know, if the bugfix is already in the latest build from today. If yes then the bug is unfortunately still there (atleast by me). And it doesn't matter, if the latest driver or not! I've tried many of them due to instability of my system (graphic card). But it seems it is only windows 10 and AMD GPU related issue...

I don't know, if the bugfix is already in the latest build from today. If yes then the bug is unfortunately still there (atleast by me). And it doesn't matter, if the latest driver or not! I've tried many of them due to instability of my system (graphic card). But it seems it is only windows 10 and AMD GPU related issue...

Removed subscriber: @moisessalvador

Removed subscriber: @moisessalvador

Added subscriber: @Nominous

Added subscriber: @Nominous

Added subscriber: @Firepal

Added subscriber: @Firepal

Alpha maps in general stopped casting shadows for me in the recent 427c75e4c2 build although it did work in previous versions

Edit: I downloaded the latest 2.8 build and it got fixed.
Please dismiss my comment.

Alpha maps in general stopped casting shadows for me in the recent 427c75e4c20b build although it did work in previous versions Edit: I downloaded the latest 2.8 build and it got fixed. Please dismiss my comment.
Author

Any news, when this bug will be fixed?? I'm still unable to create trees or hair with alpa textures and proper shadow casting in Eevee!
And BTW I have now a AMD Radeon 7 and it is still the same issue!

Any news, when this bug will be fixed?? I'm still unable to create trees or hair with alpa textures and proper shadow casting in Eevee! And BTW I have now a AMD Radeon 7 and it is still the same issue!

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker

@Jeroen-Bakker can you reproduce this with the closed AMD drivers?

@Jeroen-Bakker can you reproduce this with the closed AMD drivers?
Member

Before
image.png

After
image.png

Seems like I am able to reproduce the issue. On Linux AMD Pro

Before ![image.png](https://archive.blender.org/developer/F7125863/image.png) After ![image.png](https://archive.blender.org/developer/F7126338/image.png) Seems like I am able to reproduce the issue. On Linux AMD Pro

Added subscribers: @Maigurs, @lichtwerk

Added subscribers: @Maigurs, @lichtwerk
Member

Added subscribers: @xataari, @MarcinTwarowski

Added subscribers: @xataari, @MarcinTwarowski

This is happening to AMD GPUs only and mostly with RX series. Seems like this bug has not fixed for a long time. Any information about fixing it?

This is happening to AMD GPUs only and mostly with RX series. Seems like this bug has not fixed for a long time. Any information about fixing it?

Here is the blend file.
Transparency in EEVEE.blend
Bug.jpg

Here is the blend file. [Transparency in EEVEE.blend](https://archive.blender.org/developer/F7566276/Transparency_in_EEVEE.blend) ![Bug.jpg](https://archive.blender.org/developer/F7566274/Bug.jpg)

Interesting is that, this bug is not on Linux on AMD GPUs

Interesting is that, this bug is not on Linux on AMD GPUs

Removed subscriber: @MarcinTwarowski

Removed subscriber: @MarcinTwarowski

@shylon it happen on linux too with the closed source AMD driver (not the open source driver).

@shylon it happen on linux too with the closed source AMD driver (not the open source driver).

Shouldn't the priority of this task be raised from Medium to High?

Shouldn't the priority of this task be raised from Medium to High?
Author

In #61129#713516, @xataari wrote:
Shouldn't the priority of this task be raised from Medium to High?

It should at least be fixed till the release of 2.8!

> In #61129#713516, @xataari wrote: > Shouldn't the priority of this task be raised from Medium to High? It should at least be fixed till the release of 2.8!

This issue was referenced by 0a16519f5d

This issue was referenced by 0a16519f5df0fa74623d48b7786f1db22651110a

Added subscriber: @ssendam

Added subscriber: @ssendam

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @Samsara_71

Added subscriber: @Samsara_71

Hi All, I think my project may be getting stung by this bug, so hoping someone far more technically minded could chime in.

I'm in the middle of making a 3.5 Min Music video with Blender using the Eevee Engine. (System is MacPro 5,1 - OSX 10.14.5, Blender 2.8, RX580 8gb Graphics, 48GB Ram, 1TB SSD)

Its a massive project with a large amount of Alpha-Channel/Transparent .PNGs mixed with 4k Prores4444 footage, all imported using 'Images as planes' & then animated.

I'm super happy with the look & Blender workflow, but I've been dealing with mystery issue, that I think i've at least found the root cause of.

During some sections the rendering appears to go at only 10% of the regular speed, if that.

It seems that on a few of the images , myself &/or the animator have switched on 'Alpha-Clip' as the blend mode, rather than the usual 'Alpha-Blend' , and this has caused the whole system to virtually grind to a halt.

In fact, with any layers using 'Alpha-Clip', the RX580 graphics card pretty much just stops working . Swap the setting back to 'Alpha-blend' & without even doing anything else, you can hear the RX580 spring back into life (& see it on Activity-monitor-GPU-History), & the system responsiveness returns.

I've got three weeks to go until my project deadline.

Does anyone know if this is a bug that is actively being fixed?

Does the Newer build of 2.81 Beta address it in any way?

.. or should I buy a similarly specified 8GB Nvidia graphics card & swap out the RX580 if I must use alpha clip? I went with the RX580 as the drivers are 'native' to OSX as its the model used in some iMacs/iMac Pros

Obviously id rather just leaves things as they are if possible.

Cheers !

Hi All, I think my project may be getting stung by this bug, so hoping someone far more technically minded could chime in. I'm in the middle of making a 3.5 Min Music video with Blender using the Eevee Engine. (System is MacPro 5,1 - OSX 10.14.5, Blender 2.8, RX580 8gb Graphics, 48GB Ram, 1TB SSD) Its a massive project with a large amount of Alpha-Channel/Transparent .PNGs mixed with 4k Prores4444 footage, all imported using 'Images as planes' & then animated. I'm super happy with the look & Blender workflow, but I've been dealing with mystery issue, that I think i've at least found the root cause of. During some sections the rendering appears to go at only 10% of the regular speed, if that. It seems that on a few of the images , myself &/or the animator have switched on 'Alpha-Clip' as the blend mode, rather than the usual 'Alpha-Blend' , and this has caused the whole system to virtually grind to a halt. In fact, with any layers using 'Alpha-Clip', the RX580 graphics card pretty much just stops working . Swap the setting back to 'Alpha-blend' & without even doing anything else, you can hear the RX580 spring back into life (& see it on Activity-monitor-GPU-History), & the system responsiveness returns. I've got three weeks to go until my project deadline. Does anyone know if this is a bug that is actively being fixed? Does the Newer build of 2.81 Beta address it in any way? .. or should I buy a similarly specified 8GB Nvidia graphics card & swap out the RX580 if I *must* use alpha clip? I went with the RX580 as the drivers are 'native' to OSX as its the model used in some iMacs/iMac Pros Obviously id rather just leaves things as they are if possible. Cheers !
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
16 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#61129
No description provided.