Maniphest T67239

Images as planes missing Eevee alpha channel support
Closed, Resolved

Assigned To
Florian Meyer (testscreenings)
Authored By
Ruslan (RuslanZh)
Jul 19 2019, 4:31 PM
Tags
  • Add-ons (Community)
Subscribers
Brendon Murphy (meta-androcto)
Damien Picard (pioverfour)
Diogo Carvalho (sigma.17)
Ruslan (RuslanZh)

Description

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

Revisions and Commits

rBA Blender Add-ons

Related Objects

Mentioned In
T76709: Blender Eevee reflection missing with default Image as Plane import settings
Mentioned Here
rBA0f5738d9022c: Fix T67239: Import images as planes: Eevee alpha support

Event Timeline

Ruslan (RuslanZh) created this task.Jul 19 2019, 4:31 PM
Diogo Carvalho (sigma.17) added a subscriber: Diogo Carvalho (sigma.17).Jul 19 2019, 8:47 PM
Brendon Murphy (meta-androcto) changed the task status from Unknown Status to Resolved.Jul 22 2019, 4:17 PM
Brendon Murphy (meta-androcto) claimed this task.
Brendon Murphy (meta-androcto) added a subscriber: Brendon Murphy (meta-androcto).

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

Brendon Murphy (meta-androcto) changed the task status from Resolved to Unknown Status.Jul 22 2019, 4:29 PM
Brendon Murphy (meta-androcto) reassigned this task from Brendon Murphy (meta-androcto) to Florian Meyer (testscreenings).
Brendon Murphy (meta-androcto) lowered the priority of this task from 90 to Normal.

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 (meta-androcto) renamed this task from EEVEE - alpha channel support to Images as planes missing Eevee alpha channel support .Jul 22 2019, 4:36 PM
Damien Picard (pioverfour) added a subscriber: Damien Picard (pioverfour).Aug 20 2019, 8:28 PM

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)
Damien Picard (pioverfour) changed the task status from Unknown Status to Resolved.Sep 11 2019, 9:54 PM

Committed in rBA0f5738d9022c.

Damien Picard (pioverfour) added a commit: rBA0f5738d9022c: Fix T67239: Import images as planes: Eevee alpha support.Jan 21 2020, 5:27 PM