Workbench render engine does not update the Material Slots panel preview #98428

Open
opened 2022-05-27 10:25:02 +02:00 by Emanuele Gissi · 13 comments

System Information
Operating system: Linux Fedora 35
Graphics card: Intel

Blender Version
Broken: 3.2.0 Beta, branch: master, commit date: 2022-05-10 06:30, hash: 11aa237858, type: release

Short description of error

The aspect of the preview sphere in the Material Slots panel is not updated.

Exact steps for others to reproduce the error

1 - In a factory default startup file, select "Workbench" as render engine
2 - Select the "Cube" Object
3 - Open the Material Property Panel, in Viewport Display set a different color (diffuse_color)
4 - The aspect of the preview sphere in the Material Slots panel is not updated.

The users of my BlenderFDS (www.blenderfds.org) addon keep asking me: why?
A correct UI feedback is important especially for new users, and I presume this should be quite easy to fix.

Thank you very much, I am grateful for your work.

system-info.txt

**System Information** Operating system: Linux Fedora 35 Graphics card: Intel **Blender Version** Broken: 3.2.0 Beta, branch: master, commit date: 2022-05-10 06:30, hash: 11aa237858d4, type: release **Short description of error** The aspect of the preview sphere in the Material Slots panel is not updated. **Exact steps for others to reproduce the error** 1 - In a factory default startup file, select "Workbench" as render engine 2 - Select the "Cube" Object 3 - Open the Material Property Panel, in Viewport Display set a different color (diffuse_color) 4 - The aspect of the preview sphere in the Material Slots panel is not updated. The users of my BlenderFDS (www.blenderfds.org) addon keep asking me: why? A correct UI feedback is important especially for new users, and I presume this should be quite easy to fix. Thank you very much, I am grateful for your work. [system-info.txt](https://archive.blender.org/developer/F13113448/system-info.txt)
Author

Added subscriber: @emanuelegissi

Added subscriber: @emanuelegissi
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

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

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

Unfortunately, Workbench doesn't support material previews, so this is not exactly a bug.

The issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors.

For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

Unfortunately, Workbench doesn't support material previews, so this is not exactly a bug. The issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors. For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug
Author

Thank you Omar for the quick triage.

I still think that this is a bug because you can see there are preview leftovers from the previously selected render engine.
At least delete them!

And I suggest, for uniformity, to put at least colored circles instead of the rendered spheres.

Thank you Omar for the quick triage. I still think that **this is a bug** because you can see there are preview leftovers from the previously selected render engine. At least delete them! And I suggest, for uniformity, to put at least colored circles instead of the rendered spheres.
Author

Changed status from 'Archived' to: 'Resolved'

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

If you want I can open another issue: "Workbench render engine does not delete Material Slots panel previews from previously selected render engine"

If you want I can open another issue: "Workbench render engine does not delete Material Slots panel previews from previously selected render engine"
Member

Changed status from 'Resolved' to: 'Needs Developer To Reproduce'

Changed status from 'Resolved' to: 'Needs Developer To Reproduce'
Member

I don't think this is necessary, I will tag the module and see what they think.

I don't think this is necessary, I will tag the module and see what they think.
Author

Thank you very much!

Thank you very much!
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

I never thought about this. When switching the render engine the depsgraph should trigger ED_render_id_flush_update. Perhaps we should look into its logic and see if we can finetune it.

The bug/request mentioned here isn't complete. A material can be shared between multiple scenes each have their own render engine, but only a single preview icon. So we also need to add a check when the active scene is changed. We should also be very carefully to invalidate to many icons as this has a large performance impact.

Perhaps tag per icon the preview-engine. If the preview engine is different then recreate it. This should not be done for non-materials as they are often created using the work bench engine for performance reasons. The problem with this one is that storing the render engine per icon is very expensive and should perhaps also be stored. What would impacts the (fast) icon loading as well.

I never thought about this. When switching the render engine the depsgraph should trigger `ED_render_id_flush_update`. Perhaps we should look into its logic and see if we can finetune it. The bug/request mentioned here isn't complete. A material can be shared between multiple scenes each have their own render engine, but only a single preview icon. So we also need to add a check when the active scene is changed. We should also be very carefully to invalidate to many icons as this has a large performance impact. Perhaps tag per icon the preview-engine. If the preview engine is different then recreate it. This should not be done for non-materials as they are often created using the work bench engine for performance reasons. The problem with this one is that storing the render engine per icon is very expensive and should perhaps also be stored. What would impacts the (fast) icon loading as well.
Member

@Jeroen-Bakker But it is not just about tagging the icons for updates, right? Workbench doesn't seem to do preview renders at all and material icons for it are transparent and will stay that way if you don't use a render engine that support previews.

@Jeroen-Bakker But it is not just about tagging the icons for updates, right? Workbench doesn't seem to do preview renders at all and material icons for it are transparent and will stay that way if you don't use a render engine that support previews.
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:12:36 +01:00
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
3 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#98428
No description provided.