Images as planes missing Eevee alpha channel support #67239

Closed
opened 2019-07-19 16:31:49 +02:00 by Ruslan · 12 comments

System Information
Operating system: Windows 10
Graphics card: GTX970m

Blender Version
Broken: 2.80rc2

Short description of error
When using "import Image as Plane" in EEVEE, alpha channel is black, not transparent.

Exact steps for others to reproduce the error
Switch to EEVEE, use function "import Image as Plane", choose any PNG file

**System Information** Operating system: Windows 10 Graphics card: GTX970m **Blender Version** Broken: 2.80rc2 **Short description of error** When using "import Image as Plane" in EEVEE, alpha channel is black, not transparent. **Exact steps for others to reproduce the error** Switch to EEVEE, use function "import Image as Plane", choose any PNG file
Author

Added subscriber: @Ruslan-Zhukovskyi

Added subscriber: @Ruslan-Zhukovskyi

Added subscriber: @sigma.17-1

Added subscriber: @sigma.17-1
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Brendon Murphy self-assigned this 2019-07-22 16:17:10 +02:00
Member

hi, to enable transparency in eevee engine you need to go to Properties > Materials > Settings > and change the blend mode to Alpha Blend. This works with a valid Alpha .png

hi, to enable transparency in eevee engine you need to go to Properties > Materials > Settings > and change the blend mode to Alpha Blend. This works with a valid Alpha .png
Member

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
Brendon Murphy removed their assignment 2019-07-22 16:29:28 +02:00
Florian Meyer was assigned by Brendon Murphy 2019-07-22 16:29:28 +02:00
Member

Re-opening, whilst not technically a bug, the addon should have checks for eevee/cycles and activate the alpha blend mode if eevee is the render engine. As it does not work as expected atm, this could be considered a bug.

Re-opening, whilst not technically a bug, the addon should have checks for eevee/cycles and activate the alpha blend mode if eevee is the render engine. As it does not work as expected atm, this could be considered a bug.
Brendon Murphy changed title from EEVEE - alpha channel support to Images as planes missing Eevee alpha channel support 2019-07-22 16:36:13 +02:00
Member

Added subscriber: @pioverfour

Added subscriber: @pioverfour
Member

I don’t think the add-on should check for the render engine. If the user imports an image while the current render engine is Cycles, and then switch to Eevee, they’d expect the image to behave the same. Besides, the material setting is ignored by other render engines, so it should be okay to set it anyway.

diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index ca55ef70..17a2eb79 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -1004,6 +1004,8 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
             material = bpy.data.materials.new(name=name_compat)
 
         material.use_nodes = True
+        if self.use_transparency:
+            material.blend_method = 'BLEND'
         node_tree = material.node_tree
         out_node = clean_node_tree(node_tree)
I don’t think the add-on should check for the render engine. If the user imports an image while the current render engine is Cycles, and then switch to Eevee, they’d expect the image to behave the same. Besides, the material setting is ignored by other render engines, so it should be okay to set it anyway. ``` diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py index ca55ef70..17a2eb79 100644 --- a/io_import_images_as_planes.py +++ b/io_import_images_as_planes.py @@ -1004,6 +1004,8 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper): material = bpy.data.materials.new(name=name_compat) material.use_nodes = True + if self.use_transparency: + material.blend_method = 'BLEND' node_tree = material.node_tree out_node = clean_node_tree(node_tree) ```

This issue was referenced by 0f5738d902

This issue was referenced by 0f5738d9022c61b9df061849839cbfe2616438b4
Member

Changed status from 'Open' to: 'Resolved'

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

Committed in 0f5738d902.

Committed in 0f5738d902.
Sign in to join this conversation.
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-addons#67239
No description provided.