Eevee alpha texture shadow bug #61129

Closed
opened 4 years ago by tibor81 · 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)
Poster

Added subscriber: @tibor81

Added subscriber: @tibor81
Collaborator

#66387 was marked as duplicate of this issue

#66387 was marked as duplicate of this issue
Collaborator

#65041 was marked as duplicate of this issue

#65041 was marked as duplicate of this issue
Collaborator

#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?
Poster

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
ZedDB commented 4 years ago
Collaborator

Added subscriber: @ZedDB

Added subscriber: @ZedDB
fclem was assigned by ZedDB 4 years ago
ZedDB commented 4 years ago
Collaborator

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)
Poster

Here's the requested File:
output.text

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

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

Forgot to say. Yes I'm using the latest graphics driver!
ZedDB commented 4 years ago
Collaborator

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
Poster

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)
Poster

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...
Collaborator

This issue was referenced by f0a20ae1c9

This issue was referenced by f0a20ae1c9505342721f841bcf537d465b5a54eb
fclem commented 4 years ago
Collaborator

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
fclem closed this issue 4 years ago
shylon commented 4 years ago

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

still for me has problem https://developer.blender.org/T60309
ZedDB commented 4 years ago
Collaborator

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
ZedDB reopened this issue 4 years ago
ZedDB commented 4 years ago
Collaborator

@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?
shylon commented 4 years ago

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.
Poster

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.
Poster

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!
ZedDB commented 4 years ago
Collaborator

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
ZedDB commented 4 years ago
Collaborator

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

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

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
ZedDB commented 4 years ago
Collaborator

Added subscribers: @Maigurs, @lichtwerk

Added subscribers: @Maigurs, @lichtwerk
Collaborator

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)
shylon commented 4 years ago

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
ZedDB commented 4 years ago
Collaborator

@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?
Poster

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!
Collaborator

This issue was referenced by 0a16519f5d

This issue was referenced by 0a16519f5df0fa74623d48b7786f1db22651110a

Added subscriber: @ssendam

Added subscriber: @ssendam
fclem commented 4 years ago
Collaborator

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
fclem closed this issue 4 years ago

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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Datablocks and Libraries
Interest/Dependency Graph
Interest/Development Management
Interest/Eevee
Interest/Eevee & Viewport
Interest/Freestyle
Interest/Geometry Nodes
Interest/Grease Pencil
Interest/Images & Movies
Interest/Import/Export
Interest/Line Art
Interest/Masking
Interest/Modeling
Interest/Modifiers
Interest/Overrides
Interest/Performance
Interest/Pipeline, Assets & I/O
Interest/Translations
Interest/Undo
Interest/USD
Interest/Video Sequencer
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Motion Tracking
legacy project/Nodes
legacy project/Nodes & Physics
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Performance
legacy project/Physics
legacy project/Platforms, Builds, Tests & Devices
legacy project/Pose Library Basics
legacy project/Python API
legacy project/Render & Cycles
legacy project/Render Pipeline
legacy project/Retrospective
legacy project/Sculpt, Paint & Texture
legacy project/Text Editor
legacy project/Tracker Curfew
legacy project/Triaging
legacy project/User Interface
legacy project/UV Editing
legacy project/VFX & Video
legacy project/Virtual Reality
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#61129
Loading…
There is no content yet.