Texture with alpha renders differently in Eevee and Cycles #76712

Closed
opened 2020-05-13 09:34:41 +02:00 by Zsolt Stefan · 16 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19

Blender Version
Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-05-01 21:55, hash: 83304e4c22
Worked: (newest version of Blender that worked as expected)

Short description of error
I have a PNG texture with an alpha channel, plugged into the FAC input of a mix node. To switch between two shaders and show a pattern on the object surface.
In Eevee, the alpha map is used, and the texture appears on the surface. The cycles rendering is different, the pattern is not shown.
I don't know which one is the intended behaviour, but in any case eevee and cycles shouldn't render differently.

Related bug: there is a node attached to the alpha output of the texture, it is however not used for anything right now. If I however delete it, unconnect and reconnect the nodes, then eevee also stops using the alpha channel.
An unused node should have no effect on the output.

Exact steps for others to reproduce the error

  • Open the attached BLEND.

  • Switch to Material Preview. The surface has a pattern on it.

  • Switch to Cycles. The surface has no pattern.

  • Switch back to Material Preview. Delete or unconnect the unused "Invert" node in the Shader Editor.

  • Nothing happens.

  • Unconnect the Texture Colour Output connection to the Fac Input of the Mix Shader node.

  • Reconnect the same connection.

  • Now the pattern has disappeared.

Texture_with_alpha_renders_differently_bug.blend

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19 **Blender Version** Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-05-01 21:55, hash: `83304e4c22` Worked: (newest version of Blender that worked as expected) **Short description of error** I have a PNG texture with an alpha channel, plugged into the FAC input of a mix node. To switch between two shaders and show a pattern on the object surface. In Eevee, the alpha map is used, and the texture appears on the surface. The cycles rendering is different, the pattern is not shown. I don't know which one is the intended behaviour, but in any case eevee and cycles shouldn't render differently. Related bug: there is a node attached to the alpha output of the texture, it is however not used for anything right now. If I however delete it, unconnect and reconnect the nodes, then eevee also stops using the alpha channel. An unused node should have no effect on the output. **Exact steps for others to reproduce the error** - Open the attached BLEND. - Switch to Material Preview. The surface has a pattern on it. - Switch to Cycles. The surface has no pattern. - Switch back to Material Preview. Delete or unconnect the unused "Invert" node in the Shader Editor. - Nothing happens. - Unconnect the Texture Colour Output connection to the Fac Input of the Mix Shader node. - Reconnect the same connection. - Now the pattern has disappeared. [Texture_with_alpha_renders_differently_bug.blend](https://archive.blender.org/developer/F8532574/Texture_with_alpha_renders_differently_bug.blend)
Author

Added subscriber: @ZsoltStefan

Added subscriber: @ZsoltStefan
Member

Added subscriber: @Alaska

Added subscriber: @Alaska
Member

@ZsoltStefan To reproduce the bug with your .blend you need to pack all the textures into the .blend file. To do this, select from the top of Blender "File>External Data>Pack all into .blend" then save the file and re-share it.

@ZsoltStefan To reproduce the bug with your .blend you need to pack all the textures into the .blend file. To do this, select from the top of Blender "File>External Data>Pack all into .blend" then save the file and re-share it.
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Author

Oh, right, reuploaded.

Oh, right, reuploaded.
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

@ZsoltStefan Thank you. As for your report about the bug, I can confirm this happens. Tested with Blender 2.82a and 2.90 f9d0f59bed (2020-05-12 22:14) with a GTX 1050ti driver version 440.82 on Linux.

@ZsoltStefan Thank you. As for your report about the bug, I can confirm this happens. Tested with Blender 2.82a and 2.90 f9d0f59bed (2020-05-12 22:14) with a GTX 1050ti driver version 440.82 on Linux.
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @ankitm

Added subscriber: @ankitm

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brecht Van Lommel self-assigned this 2020-05-13 15:20:44 +02:00

There is an intentional difference between Cycles and Eevee here, for reasons of performance and compatibility with game engines vs. offline renderers.

Some background on this is in #64625.

There is an intentional difference between Cycles and Eevee here, for reasons of performance and compatibility with game engines vs. offline renderers. Some background on this is in #64625.

Changed status from 'Resolved' to: 'Archived'

Changed status from 'Resolved' to: 'Archived'
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

Cycles.jpg
Cycles

EEVEE.jpg
EEVEE

If you want to use the Alpha channel as a pattern, you should connect the alpha channel to the factor, not the color.

Texture_with_alpha_renders_differently_FIXED.blend

![Cycles.jpg](https://archive.blender.org/developer/F8536210/Cycles.jpg) Cycles ![EEVEE.jpg](https://archive.blender.org/developer/F8536212/EEVEE.jpg) EEVEE If you want to use the Alpha channel as a pattern, you should connect the alpha channel to the factor, not the color. [Texture_with_alpha_renders_differently_FIXED.blend](https://archive.blender.org/developer/F8536230/Texture_with_alpha_renders_differently_FIXED.blend)
Author

@EAW thanks for the reply. I am aware how to solve the problem, I was trying to address these two bugs:

  1. Eevee ("Material Preview") doesn't always "preview" a material in cycles. As Brecht says, in this case this seems to be intentional.
  2. An unused node has an effect on the output. Don't see why this would be intentional.
@EAW thanks for the reply. I am aware how to solve the problem, I was trying to address these two bugs: 1. Eevee ("Material Preview") doesn't always "preview" a material in cycles. As Brecht says, in this case this seems to be intentional. 2. An unused node has an effect on the output. Don't see why this would be intentional.
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
5 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#76712
No description provided.