Mesh Boolean node changes vertex indices randomly #92962

Closed
opened 2021-11-09 16:51:53 +01:00 by Borek Bures · 14 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits

Blender Version
Broken: version: 3.0.0 Beta, branch: master, commit date: 2021-11-08 15:56, hash: ab7214ca2e
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-08 15:57, hash: e0dae0f98f
Worked: never, I think

Short description of error
If you perform an operation on the unchanged geometry created by a Mesh Boolean node from two objects with the Relative transformation, the indexes will change randomly each time.

Exact steps for others to reproduce the error
Watch the attached video.
Bug_Boolean_Indexes.mp4
Bug_Boolean_Indexes.blend

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits **Blender Version** Broken: version: 3.0.0 Beta, branch: master, commit date: 2021-11-08 15:56, hash: `ab7214ca2e` Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-08 15:57, hash: `e0dae0f98f` Worked: never, I think **Short description of error** If you perform an operation on the unchanged geometry created by a Mesh Boolean node from two objects with the Relative transformation, the indexes will change randomly each time. **Exact steps for others to reproduce the error** Watch the attached video. [Bug_Boolean_Indexes.mp4](https://archive.blender.org/developer/F11775540/Bug_Boolean_Indexes.mp4) [Bug_Boolean_Indexes.blend](https://archive.blender.org/developer/F11775542/Bug_Boolean_Indexes.blend)
Author

Added subscriber: @BorekBures

Added subscriber: @BorekBures

#90803 was marked as duplicate of this issue

#90803 was marked as duplicate of this issue
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

Added subscriber: @SteffenD

Added subscriber: @SteffenD
Hans Goudey changed title from Geometry Nodes change vertex indexes randomly to Mesh Boolean node changes vertex indexes randomly 2021-11-11 20:33:14 +01:00
Hans Goudey changed title from Mesh Boolean node changes vertex indexes randomly to Mesh Boolean node changes vertex indices randomly 2021-11-11 20:33:21 +01:00
Member

Added subscribers: @Calra, @howardt

Added subscribers: @Calra, @howardt
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

This is most likely a threading related issue. It does not happen when I start Blender with one thread (-t 1).

This is most likely a threading related issue. It does not happen when I start Blender with one thread (`-t 1`).
Member

Do we think it is a requirement that the indices are stable? I probably have a lot of work to do if that is the case, since when we started multithreading parts of it, I wasn't paying attention to making that the case.

Do we think it is a requirement that the indices are stable? I probably have a lot of work to do if that is the case, since when we started multithreading parts of it, I wasn't paying attention to making that the case.
Author

In #92962#1258122, @howardt wrote:
Do we think it is a requirement that the indices are stable? I probably have a lot of work to do if that is the case, since when we started multithreading parts of it, I wasn't paying attention to making that the case.

It is crucial if you want to further manipulate the mesh using nodes. If the vertices change after each operation or on a different computer, the entire geometry node design is almost unusable. Right now, it is impossible to manipulate specific vertices or render on render farms if any Geometry nodes use Boolean node.

> In #92962#1258122, @howardt wrote: > Do we think it is a requirement that the indices are stable? I probably have a lot of work to do if that is the case, since when we started multithreading parts of it, I wasn't paying attention to making that the case. It is crucial if you want to further manipulate the mesh using nodes. If the vertices change after each operation or on a different computer, the entire geometry node design is almost unusable. Right now, it is impossible to manipulate specific vertices or render on render farms if any Geometry nodes use Boolean node.
Member

I can see that. The reason I'm asking is that this is a different view than Blender had when I first joined the project. I remember close to the first thing I did was put in the "Indices" view so that one could see vertex, edges, and face indices. At the time, Ton told me that I couldn't make that available as a universally available option because (if my memory is correct) the index numbers were internal details that shouldn't matter to users. So I had to make it a special "special for developers" option, which it remains today.

It does seem, with Geometry nodes, that we have moved far away from that view. Which, if it is the case, would argue from making the "Indices" view universally available, not hidden under a developers option. But, more importantly for this issue, would impose a new requirement on modeling tools that the indices of the results are viewable/usable by users and hence need to be repeatable.

When I get time, I'll see what I can do to make the order predictable. It will probably come at a bit of a performance and/or extra memory cost.

I can see that. The reason I'm asking is that this is a different view than Blender had when I first joined the project. I remember close to the first thing I did was put in the "Indices" view so that one could see vertex, edges, and face indices. At the time, Ton told me that I couldn't make that available as a universally available option because (if my memory is correct) the index numbers were internal details that shouldn't matter to users. So I had to make it a special "special for developers" option, which it remains today. It does seem, with Geometry nodes, that we have moved far away from that view. Which, if it is the case, would argue from making the "Indices" view universally available, not hidden under a developers option. But, more importantly for this issue, would impose a new requirement on modeling tools that the indices of the results are viewable/usable by users and hence need to be repeatable. When I get time, I'll see what I can do to make the order predictable. It will probably come at a bit of a performance and/or extra memory cost.
Howard Trickey self-assigned this 2021-11-22 21:34:50 +01:00
Contributor

Added subscriber: @Raimund58

Added subscriber: @Raimund58

This issue was referenced by c26011efcb

This issue was referenced by c26011efcbe1d888962bb9a696723db228dac3cf
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' 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
7 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#92962
No description provided.