Vector Transform Material Node has Unexpected Behavior with Geometry Node Instances #112801

Closed
opened 2023-09-24 08:52:11 +02:00 by Bloop Trangle · 1 comment

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: AMD Radeon RX 7900 XTX ATI Technologies Inc. 4.5.0 Core Profile Context 23.9.2.230911

Blender Version
Broken: version: 3.6.3, branch: blender-v3.6-release, commit date: 2023-09-21 06:06, hash: d3e6b08276ba

Short description of error
A Vector Transform node set Object to World and taking an instancer attribute seems to transform the attribute based on the Instance space rather than the Objects. I'd expect Object space to behave the same regardless of whats inside the object. It has unexpected results when instances are rotated, and when there are nested instances assigned the same attribute. If this isn't a bug and instances just count as an Object for the Vector Transform node, then maybe there should be an Instance space option added to it with the current behavior, and Object space should be corrected to behave the same as when the instances are realized.

Exact steps for others to reproduce the error
FILE DESCRIPTION: I created a simple blend file to make it easy to see the effects. There's a Geo Node modifier that creates an instance heirarchy, with the position of the top level instances being stored as an attribute on the sub instances. There are some switches set up on the geo node modifier, and there's a driver on the Attribute nodes Type to change it between Geometry and Instancer just to match the Realize Instances option on the geo nodes.

USAGE: Set the viewport shading to Rendered. The settings to play with are on the geo nodes modifer and in the material nodes:

  • Random Rotations and Realize Instances on the geo nodes modifier.
  • The Point and Vector options on the Vector Transform node in the material.
  • Rotating the model to see the attribute space being transformed from Object to World space.

EXPECTED: The setup in the file with Realize Instances enabled behaves as expected.

  • Each icosphere cluster is a single color and aligns with the world axis. Enabling Random Rotations, switching between Point/Vector, or rotating the model doesn't change this.
  • Only difference between Point and Vector on the Vector Transform node is Point is bluer, as the model is raised 1m.

UNEXPECTED: The setup in the file with Realize Instances disabled in the geo nodes modifier is expected to behave the same as above, but is different in the following ways:

  • Realize Instances toggled on/off, Vector Transform set to Vector, Random Rotations off: Colors darken slightly.
  • Realize Instances on, Random Rotations toggled on/off: Cluster colors are scrambled.
  • Realize Instances on, Vector Transform set to Point: The individual icosphere instances in each cluster are now different colors.
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: AMD Radeon RX 7900 XTX ATI Technologies Inc. 4.5.0 Core Profile Context 23.9.2.230911 **Blender Version** Broken: version: 3.6.3, branch: blender-v3.6-release, commit date: 2023-09-21 06:06, hash: `d3e6b08276ba` **Short description of error** A Vector Transform node set Object to World and taking an instancer attribute seems to transform the attribute based on the Instance space rather than the Objects. I'd expect Object space to behave the same regardless of whats inside the object. It has unexpected results when instances are rotated, and when there are nested instances assigned the same attribute. If this isn't a bug and instances just count as an Object for the Vector Transform node, then maybe there should be an Instance space option added to it with the current behavior, and Object space should be corrected to behave the same as when the instances are realized. **Exact steps for others to reproduce the error** FILE DESCRIPTION: I created a simple blend file to make it easy to see the effects. There's a Geo Node modifier that creates an instance heirarchy, with the position of the top level instances being stored as an attribute on the sub instances. There are some switches set up on the geo node modifier, and there's a driver on the Attribute nodes Type to change it between Geometry and Instancer just to match the Realize Instances option on the geo nodes. USAGE: Set the viewport shading to Rendered. The settings to play with are on the geo nodes modifer and in the material nodes: - Random Rotations and Realize Instances on the geo nodes modifier. - The Point and Vector options on the Vector Transform node in the material. - Rotating the model to see the attribute space being transformed from Object to World space. EXPECTED: The setup in the file with Realize Instances enabled behaves as expected. - Each icosphere cluster is a single color and aligns with the world axis. Enabling Random Rotations, switching between Point/Vector, or rotating the model doesn't change this. - Only difference between Point and Vector on the Vector Transform node is Point is bluer, as the model is raised 1m. UNEXPECTED: The setup in the file with Realize Instances disabled in the geo nodes modifier is expected to behave the same as above, but is different in the following ways: - Realize Instances toggled on/off, Vector Transform set to Vector, Random Rotations off: Colors darken slightly. - Realize Instances on, Random Rotations toggled on/off: Cluster colors are scrambled. - Realize Instances on, Vector Transform set to Point: The individual icosphere instances in each cluster are now different colors.
Bloop Trangle added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-09-24 08:52:11 +02:00
Bloop Trangle changed title from Vector Transform Meterial Node Unexpected Behavior with Geometry Node Instances to Vector Transform Material Node has Unexpected Behavior with Geometry Node Instances 2023-09-24 08:54:48 +02:00

Thanks for the report, @Bloop, but I believe this behavior is expected.
Each instance is considered a unique object (with its own space, with its own ID).
This is clear with other nodes like Object Info > Randon.

Unfortunately I don't know a simple way to reference the space of a specific object in the scene.

Maybe the Vector Transform could have a "From Instancer" option or something like "From Object: X". But this already becomes a feature request.

For user feedback and feature requests we have other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

Not a bug AFAICS, so closing.

Feel free to comment if there is misunderstanding.

Thanks for the report, @Bloop, but I believe this behavior is expected. Each instance is considered a unique object (with its own space, with its own ID). This is clear with other nodes like `Object Info` > `Randon`. Unfortunately I don't know a simple way to reference the space of a specific object in the scene. Maybe the `Vector Transform` could have a "From Instancer" option or something like "From Object: X". But this already becomes a feature request. For user feedback and feature requests we have other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests Not a bug AFAICS, so closing. Feel free to comment if there is misunderstanding.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-09-25 17:35:33 +02: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
2 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#112801
No description provided.