Positioning bug with instance on point with geonodes and a decimate modifier on base mesh. #101108

Closed
opened 2022-09-16 02:37:16 +02:00 by Baptiste · 12 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.93

Blender Version
Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: bcfdb14560
Worked: (newest version of Blender that worked as expected)

Short description of error
Hello. The position of instanced collection on point using geonodes is changing everytime you reopen the blender file, while using a decimate modifier on the mesh they are instanced on.
Well I noticed it when I got back my render from sheep it and the trees had different positions on almost every frames. While when I rendered a few frames myself and did not reopen the file in between, position remained the same.

It seems like reopening the file makes the decimate process slightly different everytime in its calculation, thus the resulting geometry and therefore the instances on it moves accordingly.
Applying the decimate modifier solves the issue it seems, but be best to be able to keep modifier for future changes if needed.

Exact steps for others to reproduce the error
(Updated with smaller blend file for ease)

  • Use the provided blend.file
  • Open Blend file, ave image/take screenshot for comparison of the Object mode (look at the trees on the right side of the hill for ease)
  • Close the Blend file, reopen it and compare
  • The position of the trees on the hill will be changed (see screenshot below of 3 different positions, each time closing and reopening the file)

Grassland bugreport small.blend

1.PNG

2.PNG

3.PNG

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.93 **Blender Version** Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: `bcfdb14560` Worked: (newest version of Blender that worked as expected) **Short description of error** Hello. The position of instanced collection on point using geonodes is changing everytime you reopen the blender file, while using a decimate modifier on the mesh they are instanced on. Well I noticed it when I got back my render from sheep it and the trees had different positions on almost every frames. While when I rendered a few frames myself and did not reopen the file in between, position remained the same. It seems like reopening the file makes the decimate process slightly different everytime in its calculation, thus the resulting geometry and therefore the instances on it moves accordingly. Applying the decimate modifier solves the issue it seems, but be best to be able to keep modifier for future changes if needed. **Exact steps for others to reproduce the error** (Updated with smaller blend file for ease) - Use the provided blend.file - Open Blend file, ave image/take screenshot for comparison of the Object mode (look at the trees on the right side of the hill for ease) - Close the Blend file, reopen it and compare - The position of the trees on the hill will be changed (see screenshot below of 3 different positions, each time closing and reopening the file) [Grassland bugreport small.blend](https://archive.blender.org/developer/F13499071/Grassland_bugreport_small.blend) ![1.PNG](https://archive.blender.org/developer/F13499078/1.PNG) ![2.PNG](https://archive.blender.org/developer/F13499080/2.PNG) ![3.PNG](https://archive.blender.org/developer/F13499082/3.PNG)
Author

Added subscriber: @Deehn

Added subscriber: @Deehn

Added subscriber: @sbchild

Added subscriber: @sbchild

hi, I created a smaller blend file to reproduce this bug
bug.blend

version: 3.4.0 Alpha, branch: master, commit date: 2022-09-13 22:06, hash: e1a9c16176df, type: release
build date: 2022-09-14, 00:58:45
platform: 'Linux-5.19.6-hardened1-1-hardened-x86_64-with-glibc2.36'

the position of tree objects on the left will change after every Edit mode -> Object mode, but not on the right
图片.png

I found the object on the left is bigger than the one on the right, so it takes a long time (1.1s on my computer) to go back to Object mode.
But the one on the right, it only takes 0.2s on my computer.

If I make the object bigger on the right by extruding many times, this bug will also happen.

EDIT: this bug doesn't seem to be 100% reproducible

Note for developers: I can confirm the issue with a regular Blender, but if I run it without threads (--debug-depsgraph-no-threads --threads 1) the issue goes away.

hi, I created a smaller blend file to reproduce this bug [bug.blend](https://archive.blender.org/developer/F13497491/bug.blend) ``` version: 3.4.0 Alpha, branch: master, commit date: 2022-09-13 22:06, hash: e1a9c16176df, type: release build date: 2022-09-14, 00:58:45 platform: 'Linux-5.19.6-hardened1-1-hardened-x86_64-with-glibc2.36' ``` the position of tree objects on the left will change after every `Edit mode -> Object mode`, but not on the right ![图片.png](https://archive.blender.org/developer/F13497511/图片.png) I found the object on the left is bigger than the one on the right, so it takes a long time (1.1s on my computer) to go back to `Object mode`. But the one on the right, it only takes 0.2s on my computer. If I make the object bigger on the right by extruding many times, this bug will also happen. EDIT: this bug doesn't seem to be 100% reproducible Note for developers: I can confirm the issue with a regular Blender, but if I run it without threads (--debug-depsgraph-no-threads --threads 1) the issue goes away.

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Is this issue with smaller file same as reported? When I reopen file instances seem to be at same place. Or is it necessary to render to reproduce the issue? I can reproduce difference between object and edit mode though.

Is this issue with smaller file same as reported? When I reopen file instances seem to be at same place. Or is it necessary to render to reproduce the issue? I can reproduce difference between object and edit mode though.

I can reproduce difference between object and edit mode though.

Because of the Decimate modifier can't preview on Edit mode

Hello, I created a bigger mesh, can you try this file? I can also reproduce on my computer.
bug.blend

2022-09-16_15-13-26.mp4

you can find something different:
图片.png 图片.png 图片.png 图片.png

same as above, if I run blender without threads, the issue goes away.

hardware info:

CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
RAM: 20GB
GPU: NVIDIA GeForce GTX 1060 with Max-Q Design

Should I provide more information? Please let me know, thanks!

> I can reproduce difference between object and edit mode though. Because of the Decimate modifier can't preview on Edit mode Hello, I created a bigger mesh, can you try this file? I can also reproduce on my computer. [bug.blend](https://archive.blender.org/developer/F13498358/bug.blend) [2022-09-16_15-13-26.mp4](https://archive.blender.org/developer/F13498370/2022-09-16_15-13-26.mp4) you can find something different: ![图片.png](https://archive.blender.org/developer/F13498403/图片.png) ![图片.png](https://archive.blender.org/developer/F13498405/图片.png) ![图片.png](https://archive.blender.org/developer/F13498406/图片.png) ![图片.png](https://archive.blender.org/developer/F13498408/图片.png) same as above, if I run blender without threads, the issue goes away. hardware info: ``` CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz RAM: 20GB GPU: NVIDIA GeForce GTX 1060 with Max-Q Design ``` Should I provide more information? Please let me know, thanks!
Baptiste changed title from Positioning bug while rendering instance on point with geonodes and a decimate modifier on base mesh. to Positioning bug with instance on point with geonodes and a decimate modifier on base mesh. 2022-09-16 13:03:57 +02:00
Author

Hello,

Not sure about the other file from sbchild, as it is a different process than me so might be a different bug/linked one etc...

I updated the post with a 22mb blend file so it's easy to use, with only the Hill & trees.

You don't need to render, just need to :

  • open the file
  • look at the camera view
  • record the tree position (far right on the hill are easiest)
  • close file and reopen
  • tree position will have changed.

At least for me, it is changing everytime, as shows the 3 screenshots corresponding to closing/reopening 3 times in a row.

Hello, Not sure about the other file from sbchild, as it is a different process than me so might be a different bug/linked one etc... I updated the post with a 22mb blend file so it's easy to use, with only the Hill & trees. You don't need to render, just need to : - open the file - look at the camera view - record the tree position (far right on the hill are easiest) - close file and reopen - tree position will have changed. At least for me, it is changing everytime, as shows the 3 screenshots corresponding to closing/reopening 3 times in a row.

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

I can reproduce the issue. Looks like the collapse mode of the decimate modifier is not stable. I'm not sure yet if this is an issue with multi-threading or if multi-threading just makes it more likely (e.g. because memory addresses are used for something).

In this file I can see in the spreadsheet that the positions change when I rerun the decimate modifier with the same settings.
Grassland bugreport small1.blend

I can reproduce the issue. Looks like the collapse mode of the decimate modifier is not stable. I'm not sure yet if this is an issue with multi-threading or if multi-threading just makes it more likely (e.g. because memory addresses are used for something). In this file I can see in the spreadsheet that the positions change when I rerun the decimate modifier with the same settings. [Grassland bugreport small1.blend](https://archive.blender.org/developer/F13728497/Grassland_bugreport_small1.blend)
Member

Closed as duplicate of #100250

Closed as duplicate of #100250
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
5 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#101108
No description provided.