grouping nodes changes rendering results (introduces artifacts) #35847

Closed
opened 2013-06-23 09:37:13 +02:00 by Blends Nicely · 6 comments

%%%--- Operating System, Graphics card ---
Linux 3.8.13-gentoo amd64
CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
GPU: NVIDIA Corporation GK104 [GeForce GTX 670] (rev a1)

- Blender version with error, and version that worked ---

currently I only have access to 1.66 and 1.67b - both are affected.

- Short description of error ---

Using a material containing only one Glass Shader works fine. Putting this single glass shader into a group (Ctrl+G) destroys the result.

- Steps for others to reproduce the error (preferably based on attached .blend file) ---

switch 3D view to "rendered" and switch material between "glass ok" and "glass not ok".
The CPU and GPU results are the same for "glass ok", but for "glass not ok" they differ (no reflections for GPU version) - plus: the glass is black..

%%%

%%%--- Operating System, Graphics card --- Linux 3.8.13-gentoo amd64 CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz GPU: NVIDIA Corporation GK104 [GeForce GTX 670] (rev a1) - Blender version with error, and version that worked --- currently I only have access to 1.66 and 1.67b - both are affected. - Short description of error --- Using a material containing only one Glass Shader works fine. Putting this single glass shader into a group (Ctrl+G) destroys the result. - Steps for others to reproduce the error (preferably based on attached .blend file) --- switch 3D view to "rendered" and switch material between "glass ok" and "glass not ok". The CPU and GPU results are the same for "glass ok", but for "glass not ok" they differ (no reflections for GPU version) - plus: the glass is black.. %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%r57660 is also affected%%%

%%%r57660 is also affected%%%
Member

%%%The reason for this is that the Normal input is included (automatically) in the node group. Cycles uses a bit of annoying trickery to replace the usual constant input value of normal inputs by the variable default surface normal in most nodes, so that you don't have to explicitly connect it to the geometry nodes to get usable results.

However, this does not happen with generic group node vector inputs, since this is just a "meaningless" vector for which the default constant value is used. So when wrapping a node group around a glass node or similar this vector input feature gets lost. A simple solution is to just exclude the normal from the group node inputs (see the attached bug_fixed.blend).

To solve this issue in the long run and support automatic default normal inputs in cycles there could perhaps be a different vector type for such specialized sockets. Any socket with the normal vector semantics would then be exposed as such in group and also get a the standard surface normal if unconnected.%%%

%%%The reason for this is that the Normal input is included (automatically) in the node group. Cycles uses a bit of annoying trickery to replace the usual constant input value of normal inputs by the variable default surface normal in most nodes, so that you don't have to explicitly connect it to the geometry nodes to get usable results. However, this does not happen with generic group node vector inputs, since this is just a "meaningless" vector for which the default constant value is used. So when wrapping a node group around a glass node or similar this vector input feature gets lost. A simple solution is to just exclude the normal from the group node inputs (see the attached bug_fixed.blend). To solve this issue in the long run and support automatic default normal inputs in cycles there could perhaps be a different vector type for such specialized sockets. Any socket with the normal vector semantics would then be exposed as such in group and also get a the standard surface normal if unconnected.%%%
Author

%%%good finding! A usable work-around. Thank you!
%%%

%%%good finding! A usable work-around. Thank you! %%%

%%%Fix in svn now, both in the UI to hide the vector value by default when exposing such a socket in a group, and in cycles to ignore any values from the group sockets in this particular case.%%%

%%%Fix in svn now, both in the UI to hide the vector value by default when exposing such a socket in a group, and in cycles to ignore any values from the group sockets in this particular case.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#35847
No description provided.