Geometry Nodes: non-deterministic material handling in Join Geometry node #85964

Closed
opened 2021-02-24 21:43:26 +01:00 by Wouter Stomp · 13 comments

System Information
Operating system: Darwin-20.2.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.2.13

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-02-23 23:15, hash: b2c7ea6d82
Worked: -

Short description of error
Adding a node sometimes randomly disables the material textures in the 3d view. So far this has happened with adding a transform node and attribute randomise node (last one unconnected). With the attached file, a reliable way to reproduce this is to duplicate the transform node and add it directly to the right of the original one. The only reliable way to undo this I have found so far is to mute and unmute the attribute fill node (undoing adding the just added node doesn't help).
Schermafbeelding 2021-02-24 om 21.33.07.png

Schermafbeelding 2021-02-24 om 21.32.31.png

Exact steps for others to reproduce the error
Donut geometry nodes.blend
Schermopname 2021-02-24 om 21.37.44.mov

**System Information** Operating system: Darwin-20.2.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.2.13 **Blender Version** Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-02-23 23:15, hash: `b2c7ea6d82` Worked: - **Short description of error** Adding a node sometimes randomly disables the material textures in the 3d view. So far this has happened with adding a transform node and attribute randomise node (last one unconnected). With the attached file, a reliable way to reproduce this is to duplicate the transform node and add it directly to the right of the original one. The only reliable way to undo this I have found so far is to mute and unmute the attribute fill node (undoing adding the just added node doesn't help). ![Schermafbeelding 2021-02-24 om 21.33.07.png](https://archive.blender.org/developer/F9836038/Schermafbeelding_2021-02-24_om_21.33.07.png) ![Schermafbeelding 2021-02-24 om 21.32.31.png](https://archive.blender.org/developer/F9836041/Schermafbeelding_2021-02-24_om_21.32.31.png) **Exact steps for others to reproduce the error** [Donut geometry nodes.blend](https://archive.blender.org/developer/F9836032/Donut_geometry_nodes.blend) [Schermopname 2021-02-24 om 21.37.44.mov](https://archive.blender.org/developer/F9836033/Schermopname_2021-02-24_om_21.37.44.mov)
Author

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket

#85956 was marked as duplicate of this issue

#85956 was marked as duplicate of this issue
Member

Added subscriber: @SimonThommes

Added subscriber: @SimonThommes
Member

Added subscribers: @HooglyBoogly, @JacquesLucke

Added subscribers: @HooglyBoogly, @JacquesLucke
Member

This is caused by the non-determinism in the Join Geometry node.. It is currently passing on the materials of the "first" input input (see BKE_mesh_copy_settings(new_mesh, first_input_mesh);). However, since there is the multi-input-socket "first" is not well defined anymore and my change arbitrarily.
I can think of two possible solutions (maybe both are necessary):

  • Have a deterministic input order internally.
  • Introduce proper material handling in Geometry Nodes. This is probably not something we can get around for long. So we might also just start working on it now.
This is caused by the non-determinism in the Join Geometry node.. It is currently passing on the materials of the "first" input input (see `BKE_mesh_copy_settings(new_mesh, first_input_mesh);`). However, since there is the multi-input-socket "first" is not well defined anymore and my change arbitrarily. I can think of two possible solutions (maybe both are necessary): * Have a deterministic input order internally. * Introduce proper material handling in Geometry Nodes. This is probably not something we can get around for long. So we might also just start working on it now.
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Jacques Lucke changed title from Geometry Nodes: adding a node randomly disables materials in viewport to Geometry Nodes: non-deterministic material handling in Join Geometry node 2021-02-25 09:57:49 +01:00
Member

Added subscriber: @CharlieJolly

Added subscriber: @CharlieJolly
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Charlie Jolly self-assigned this 2021-02-25 10:57:05 +01:00
Member

This comment was removed by @CharlieJolly

*This comment was removed by @CharlieJolly*
Member

Changed status from 'Resolved' to: 'Confirmed'

Changed status from 'Resolved' to: 'Confirmed'
Member

Accidentally resolved! Sorry!

Accidentally resolved! Sorry!
Charlie Jolly removed their assignment 2021-02-25 10:58:36 +01:00
Member

Closed as duplicate of #87419

Closed as duplicate of #87419
Member

The non determinism of the Join Geometry node has been resolved by making the multi-input-socket ordered.
However, there is another related bug: #87419.

The non determinism of the Join Geometry node has been resolved by making the multi-input-socket ordered. However, there is another related bug: #87419.
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
4 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#85964
No description provided.