Material shadows not updated with rna_Material_draw_update #65598

Closed
opened 2019-06-07 10:22:06 +02:00 by Ulysse Martin · 9 comments

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.86

Blender Version
Broken: version: 2.80 (sub 74), branch: master (modified), commit date: 2019-06-07 06:39, hash: a232d27bba
Worked: (optional)

Short description of error
When we change material shadow mode, for example, the shadows are not updated in the viewport

Exact steps for others to reproduce the error

Steps:

  • open this .blend:

Material_shadow_mode.blend

with last 2.8

  • go in "rendered" shading mode with eevee

  • change shadow mode from opaque to alpha hashed for example

  • the shadows are not updated

Note:

This patch (which is not a fix):

p.diff

forces the shadows update when we switch several times between shadow modes.

**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.86 **Blender Version** Broken: version: 2.80 (sub 74), branch: master (modified), commit date: 2019-06-07 06:39, hash: `a232d27bba` Worked: (optional) **Short description of error** When we change material shadow mode, for example, the shadows are not updated in the viewport **Exact steps for others to reproduce the error** Steps: - open this .blend: [Material_shadow_mode.blend](https://archive.blender.org/developer/F7091541/Material_shadow_mode.blend) with last 2.8 - go in "rendered" shading mode with eevee - change shadow mode from opaque to alpha hashed for example - > the shadows are not updated Note: This patch (which is not a fix): [p.diff](https://archive.blender.org/developer/F7091546/p.diff) forces the shadows update when we switch several times between shadow modes.
Author

Added subscriber: @you.le

Added subscriber: @you.le

#68663 was marked as duplicate of this issue

#68663 was marked as duplicate of this issue

#67519 was marked as duplicate of this issue

#67519 was marked as duplicate of this issue
Member

Added subscribers: @fclem, @Sergey, @lichtwerk

Added subscribers: @fclem, @Sergey, @lichtwerk
Member

Can confirm that above patch enforces an update.

However I assume this has a significant performance hit, so if this is the only way to update it correctly, I gues it would be better to introduce something like rna_Material_shadow_update (which does the fancy DEG_relations_tag_update) and use it for shadow_method only?

@fclem, @Sergey: maybe there are better ways to properly have updates?

Can confirm that above patch enforces an update. However I assume this has a significant performance hit, so if this is the only way to update it correctly, I gues it would be better to introduce something like `rna_Material_shadow_update` (which does the fancy `DEG_relations_tag_update`) and use it for `shadow_method` only? @fclem, @Sergey: maybe there are better ways to properly have updates?

@lichtwerk, i am not sure why shadows needs relation update. I don't remember any code in dependency graph which does anything related on shading settings.
To me it seems that the issue is somewhere else. Either wrong recalc tag is used or some ID doesn't get tagged when needed.

@lichtwerk, i am not sure why shadows needs relation update. I don't remember any code in dependency graph which does anything related on shading settings. To me it seems that the issue is somewhere else. Either wrong recalc tag is used or some ID doesn't get tagged when needed.

Added subscriber: @tombambadil

Added subscriber: @tombambadil

Added subscriber: @Firepal

Added subscriber: @Firepal

Closed as duplicate of #68165

Closed as duplicate of #68165
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
6 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#65598
No description provided.