Texture Painting not updating cycles shader in viewport #86787

Open
opened 2021-03-21 14:07:11 +01:00 by Willem Odendaal · 15 comments

System Information
Operating system: Linux-5.8.0-44-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: Mesa Intel(R) Xe Graphics (TGL GT2) Intel 4.6 (Core Profile) Mesa 20.2.6

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: 02948a2cab
Worked: (newest version of Blender that worked as expected)

Short description of error
[Please fill out a short description of the error here]

Level 1. When texture painting in the 3D viewport, the image is updated, but the visible shader on the object doesn't update in cycles until switching to viewport shading and back to cycles.
It still works when switching to Eevee shading. When reloading the image in the shader image texture node, it updates in cycles, but the problem persists when the image is updated (painted on) again.

Level 2. The above bug becomes worse as follows:

In cycles the image stops updating even when switching to viewport shading and back to cycles.
(A)-When reloading the image in the shader image texture node, it updates in cycles, but any new paint on the texture in the viewport or image editor -> paint mode won't update until step A is repeated.

I do not know exactly what triggers this 2nd level bug, but it doesn't take long to show up.
I was able to repeat it just by painting and switching between Eevee and cycles using my test .blend file (attached)

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

  1. Assign a material with an image node to an unwrapped object

  2. Switch to viewport texture painting and start painting on the image in cycles shading.

  3. The image updates in viewport shading, but not the visible shader on the object in cycles.

  4. Switch to Eevee shading - now eveything works as expected.

  5. I do not know what triggers the level 2 bug.

Cycles not painting on Cube.blend

**System Information** Operating system: Linux-5.8.0-44-generic-x86_64-with-debian-bullseye-sid 64 Bits Graphics card: Mesa Intel(R) Xe Graphics (TGL GT2) Intel 4.6 (Core Profile) Mesa 20.2.6 **Blender Version** Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: `02948a2cab` Worked: (newest version of Blender that worked as expected) **Short description of error** [Please fill out a short description of the error here] Level 1. When texture painting in the 3D viewport, the image is updated, but the visible shader on the object doesn't update in cycles until switching to viewport shading and back to cycles. It still works when switching to Eevee shading. When reloading the image in the shader image texture node, it updates in cycles, but the problem persists when the image is updated (painted on) again. Level 2. The above bug becomes worse as follows: In cycles the image stops updating even when switching to viewport shading and back to cycles. (A)-When reloading the image in the shader image texture node, it updates in cycles, but any new paint on the texture in the viewport or image editor -> paint mode won't update until step A is repeated. I do not know exactly what triggers this 2nd level bug, but it doesn't take long to show up. I was able to repeat it just by painting and switching between Eevee and cycles using my test .blend file (attached) **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] 1. Assign a material with an image node to an unwrapped object 2. Switch to viewport texture painting and start painting on the image in cycles shading. 3. The image updates in viewport shading, but not the visible shader on the object in cycles. 4. Switch to Eevee shading - now eveything works as expected. 5. I do not know what triggers the level 2 bug. [Cycles not painting on Cube.blend](https://archive.blender.org/developer/F9902448/Cycles_not_painting_on_Cube.blend)

Added subscriber: @DeXoN

Added subscriber: @DeXoN

#103655 was marked as duplicate of this issue

#103655 was marked as duplicate of this issue

#101032 was marked as duplicate of this issue

#101032 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

This is a known limitation.

Cycles works best with files saved to disk.
There were reports about this before, these were normally closed, but I think it does not do harm to have one report for this open as reference.
Note this will probably be tackled with #54656 (Cycles/Eevee texture nodes for modifiers, painting and more)

This is a known limitation. Cycles works best with files saved to disk. There were reports about this before, these were normally closed, but I think it does not do harm to have one report for this open as reference. Note this will probably be tackled with #54656 (Cycles/Eevee texture nodes for modifiers, painting and more)

Added subscriber: @Jason-Lai

Added subscriber: @Jason-Lai

Added subscriber: @ziflin

Added subscriber: @ziflin

I can confirm this still occurs in v3.0. Cycles stops rendering changes made to textures (Texture Paint in 2d or 3d) for externally saved textures. This happens fairly often when painting in Material Preview mode using Evee and switching to Rendered mode using Cycles. I'm unable to get Cycles viewport renderers to update/refresh the texture by any means that I can think of other than restarting Blender.

It clearly seems like a bug as it works fine until it stops. It seriously needs to be fixed as it makes trying to preview texturing painting in Cycles useless when it occurs.

I can confirm this still occurs in v3.0. Cycles stops rendering changes made to textures (Texture Paint in 2d or 3d) for externally saved textures. This happens fairly often when painting in Material Preview mode using Evee and switching to Rendered mode using Cycles. I'm unable to get Cycles viewport renderers to update/refresh the texture by any means that I can think of other than restarting Blender. It clearly seems like a bug as it works fine until it stops. It seriously needs to be fixed as it makes trying to preview texturing painting in Cycles useless when it occurs.
Member

Added subscribers: @Piergiorgio_PG, @OmarEmaraDev

Added subscribers: @Piergiorgio_PG, @OmarEmaraDev

Added subscriber: @JorgeBurrezo

Added subscriber: @JorgeBurrezo

In 3.3.1 still the issue.

In 3.3.1 still the issue.
Member

Added subscribers: @Adrian1819, @PratikPB2123

Added subscribers: @Adrian1819, @PratikPB2123
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:12:00 +01:00

In 4.0 still the problem. Could it be because of each user's video card?

In 4.0 still the problem. Could it be because of each user's video card?

A way to get around this issue is by going to File > External Data > Automatically Pack Resources.
It fixed the Cycles render not updating for me.
Automatically Packing Resources should also remove the frustration of losing texture-painted data if you forget to save it separately as an external image file.

A way to get around this issue is by going to **File > External Data > Automatically Pack Resources.** It fixed the Cycles render not updating for me. Automatically Packing Resources should also remove the frustration of losing texture-painted data if you forget to save it separately as an external image file.
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
9 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#86787
No description provided.