Reference image opacity value doesn't work with Blender 2.83+ (Intel HD 630 with Mesa 20, regression from D6729) #77572
Labels
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
10 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#77572
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Mageia 8 x86_64 (Linux)
Graphics card: Intel HD Graphics 630, Mesa 20.1.0
Blender Version
Broken: 2.83.0, 2.90.0-aed11c673efe
Worked: 2.82a, 2.83-ce76e17584ee
Short description of error
In Blender 2.82a, when using a reference image with opacity between 0.0 and 1.0, the image is properly blended using the opacity value, provided that "Use Alpha" is enabled. (I.e. an image with opacity 0.20 will be less visible than an image with opacity 0.80, though both are transparent - like in most image editors.)
A few weeks back I used 2.83-ce76e17584ee, and there the "Use Alpha" setting was renamed to "Transparency", but the behavior stayed the same.
Opacity working in Blender 2.82a:
After updating to 2.83.0 (stable) now, I see that opacity no longer works as intended, it behaves like an on/off switch without any blending.
An image will look the same with opacity 0.0001 or 1.0 (and will be invisible with opacity 0).
Opacity not working in Blender 2.83.0 (same .blend):
Current 2.90 alpha seems to suffer from the same issue.
Exact steps for others to reproduce the error
Added subscriber: @akien
Added subscriber: @Ghostil
Everything is working.
Here's the
.blend
file which reproduces the issue for me:opacity-bug.zip
Note that I replaced the reference images by one to which I own a valid license (Godot Engine logo, CC-BY).
I also embedded the picture in the
.blend
so that it loads properly (but the bug is reproduced also with the image non-embedded).I tried with a brand new project with default cube + the
logo.png
from the above ZIP archive, and the issue is still reproducible.Then I tried by running Blender on my discrete GPU with
DRI_PRIME=1 ./blender
, and there opacity works fine. So the problem is related to the Intel HD 630 integrated GPU running on Mesa 20.1.0.The working discrete GPU is AMD Radeon RX Vega M, also using Mesa 20.1.0 and amdgpu from kernel 5.6.15.
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Needs User Info'
I can't reproduce the problem here.
This seems like a graphic driver issue.
Please double-check if the drivers are up to date.
To upgrade to the latest driver, see here for more information: https://docs.blender.org/manual/en/dev/troubleshooting/gpu/index.html
Many bugs are fixed between the official releases. Please try the latest development snapshot of blender: https://builder.blender.org/download
I'm running the latest stable version of the Mesa Linux drivers (20.1.0 from May 27).
I tried 2.90-alpha as of two days ago and it reproduced the issue too. But I'll try today's build.
Edit:/ Tried 2.90.0-aed11c673efe, same issue.
I'll see if I can bisect between the last 2.83-beta build which was functional for me and 2.83.0-final.
Update: While I initially reported that 2.83-ce76e17584ee worked well back when I used it in early May, I've just built it from source now and I could still reproduce the bug.
So either I misremembered, or it might indeed be a recent Mesa regression or a local driver setup issue.
That being said, Blender 2.82a downloaded two days ago does not reproduce the issue, so there was definitely a change in the OpenGL code between 2.82 and 2.83 that triggered this issue.
I'm currently trying to build a few intermediate commits between 2.82 and 2.83, and then I'll do a formal
git bisect
if I can find agood
one to start from (ideally not all the way back tov2.82
).Changed status from 'Needs User Info' to: 'Needs Triage'
I finally completed my Git bisect between
v2.82
andv2.83
. Here's the result:Full bisect log:
Reference image opacity value doesn't work with Blender 2.83+to Reference image opacity value doesn't work with Blender 2.83+ (Intel HD 630 with Mesa 20, regression from D6729)Added subscribers: @fclem, @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Taking that for granted and will confirm [I myself am not able to reproduce, not on Mesa...]
Also not sure how we are working around those kind of Mesa-related issues @fclem?
Added subscriber: @lewis2e
I also have this issue.
I believe the root cause is this, which also caused a similar issue for me with Houdini
As of Mesa 19.2, a new OpenGL driver, Iris, is available for testing. In Mesa 20.0, the Iris driver is promoted to be the default for Gen8+.
The Iris driver is causing issues with various OpenGL applications.
I am able to (temporarily) fix this issue by exporting MESA_LOADER_DRIVER_OVERRIDE=i965 in the shell before running Blender. This forces me back to the i965 driver, and opacity of reference images in Blender works again.
system-info.txt
I can confirm @lewis2e's findings, using
MESA_LOADER_DRIVER_OVERRIDE=i965
makes opacity work fine in Blender 2.83+.It works fine with both Iris and i965 in Blender 2.82a, so something in D6729 seems to be triggering a Mesa bug in the Iris driver. It would be worth reporting this upstream once we have a better idea of which part of D6729 actually triggers this driver bug, since it worked prior to it.
Added subscriber: @DjebbZ
I can confirm the bug on Intel Iris Plus Graphics, the one found in the i7-1065G7 CPU. Under
lspci
the name isVGA compatible controller: Intel Corporation Iris Plus Graphics G7 (rev 07)
.In my case the workaround of exporting
MESA_LOADER_DRIVER_OVERRIDE=i965
works fine too.Added subscriber: @Jeroen-Bakker
system-info.txt Unable to reproduce on
renderer: 'Mesa Intel(R) UHD Graphics 620 (KBL GT2)'
vendor: 'Intel'
version: '4.6 (Core Profile) Mesa 20.0.8'
Added subscriber: @nottelmo-4
Hey :)
Also having the same issue. Works fine in blender 2.82a, but not in later versions.
The problem also happens with transparency x-ray mode.
system-info.txt
Added subscriber: @jibbo
Thanks a bunch for this, exactly what I needed.
Added subscriber: @DeXoN
This problem persists in Blender 3.01 and 3.1.
I also tried exporting MESA_LOADER_DRIVER_OVERRIDE=i965 in the linux shell before running Blender, but it slows down the viewport too much to use.
The linux shell throws these errors when starting blender after the export:
gen12 and newer are not supported on i965
libGL error: failed to create dri screen
libGL error: failed to load driver: i965
gen12 and newer are not supported on i965
libGL error: failed to create dri screen
libGL error: failed to load driver: i965