Using viewernode as an image texture causes shader or compositor to fail intermittently #85717

Closed
opened 2021-02-17 03:34:27 +01:00 by Matthew Wiebe · 9 comments

System Information
Operating system: Linux-5.8.0-38-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.32.03

Blender Version
Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: 5be9ef4177

Short description of error
Set up a scene with compositor tree and a viewer node connected to the scene input. Add a material to the default cube, connect an image texture node to the surface output. Select "Viewer Node" as the image texture. Press render. Result will probably be a purple cube. This is perfectly understandable, however what's not understandable (or at least not desireable) is that this will often still happen even if the viewer node currently contains a valid image. Say you just rendered something into the compositor and you want to preview it as a texture on an object. You can do this with the viewer node, and then tweak masks or compositor settings and see the texture update on the model in realtime. However, if you press render again, even if the viewernode textured model is offscreen, this stops working. In fact, it even breaks the viewer node itself, such that trying to view the viewer node contents in the image editor shows solid purple.

Expected behaviour: contents of viewer node (and probably "render result" as well) should be cached before rendering so blender can use them during the shading process without getting confused. Would allow better editing of objects textured by renders. This already seems to kind of work intermittently, so I don't really consider this a feature request.

**System Information** Operating system: Linux-5.8.0-38-generic-x86_64-with-debian-bullseye-sid 64 Bits Graphics card: GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.32.03 **Blender Version** Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: `5be9ef4177` **Short description of error** Set up a scene with compositor tree and a viewer node connected to the scene input. Add a material to the default cube, connect an image texture node to the surface output. Select "Viewer Node" as the image texture. Press render. Result will probably be a purple cube. This is perfectly understandable, however what's *not* understandable (or at least not desireable) is that this will often still happen even if the viewer node currently contains a valid image. Say you just rendered something into the compositor and you want to preview it as a texture on an object. You can do this with the viewer node, and then tweak masks or compositor settings and see the texture update on the model in realtime. However, if you press render again, *even if the viewernode textured model is offscreen*, this stops working. In fact, it even breaks the viewer node itself, such that trying to view the viewer node contents in the image editor shows solid purple. Expected behaviour: contents of viewer node (and probably "render result" as well) should be cached before rendering so blender can use them during the shading process without getting confused. Would allow better editing of objects textured by renders. This already seems to kind of work intermittently, so I don't really consider this a feature request.
Author

Added subscriber: @cerebral

Added subscriber: @cerebral
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

There is some discussion about this in #73182 (Exclude 'Render Result' and 'Viewer' image types in the dropdown in certain contexts [Shader Editor, Compositor, UV Editor...])

There is some discussion about this in #73182 (Exclude 'Render Result' and 'Viewer' image types in the dropdown in certain contexts [Shader Editor, Compositor, UV Editor...])
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

My understanding is that at its current state, this is not supported.
@Jeroen-Bakker: objections to merge this into {#73182}?

My understanding is that at its current state, this is not supported. @Jeroen-Bakker: objections to merge this into {#73182}?
Member

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

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

I would not hold my breath here (do not think there is a high chance of this being supported).
Will tag as needing module input, this might also be a design question.

I would not hold my breath here (do not think there is a high chance of this being supported). Will tag as needing module input, this might also be a design question.
Member

Closed as duplicate of #73182

Closed as duplicate of #73182
Member

@lichtwerk yes this is currently not supported and should be hidden.

@lichtwerk yes this is currently not supported and should be hidden.
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#85717
No description provided.