Geometry Nodes: Attribute Math Node Always Adds Its Operands Regardless of the Operator Setting #83989
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#83989
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux-5.9.6-gentoo-bertha-x86_64-Intel-R-_Xeon-R-CPU_E5-2630_v4@_2.20GHz-with-gentoo-2.7 64 Bits
Graphics card: Radeon Pro WX 9100 (VEGA10, DRM 3.39.0, 5.9.6-gentoo-bertha, LLVM 9.0.1) X.Org 4.6 (Core Profile) Mesa 20.1.10
Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: Sat Dec 19 14:48:36 2020 -0500, hash:
0144b70948
First Broken: version: 2.92.0 Alpha, branch: master, commit date: Thu Dec 17 14:43:01 2020 -0600, hash:
23233fcf05
Last Good: version: 2.92.0 Alpha, branch: master, commit date: Thu Dec 17 19:39:39 2020 +0100, hash:
b10d8e330e
Short description of error
The Attribute Math Operator always adds its operands regardless of the the operator setting. When using a Debug executable and setting a break point at
blender::nodes::do_math_operation()
one may observe that this function'soperation
parameter is always zero (signifyingAdd
) no matter how a user might set the node operator in the user interface. See node_geo_attribute_math.cc:do_math_operation()Exact steps for others to reproduce the error
Consider the following for how this bug can manifest itself using the test blend file bugreport.blend.
BitPlane
, a single face quad, defines a vertex group BitDensity wherein all four corner vertices are weighted at 0.5. This blend file uses this geometry and a point cloud,Bits
to spread instances ofBlueBit
geometry over this single face quad.Bits
It spreads a population ofBlueBit
instances at densities dependent on the settings of the Attribute Math node.Add
operator. As noted in the short description, a debugger confirmed that this is indeed the case.Test Blend File
bugreport.blend
Related
I find it likely that #83906 is another manifestation of this bug. The operands in that report are being added instead of scaled.
Probable Root Cause
In
23233fcf05
@HooglyBoogly enhanced the Attribute Math node, introducing a storage object. However, attribute_math_calc() was not updated to access the new location of operator mode data. A patch to alignattribute_math_calc()
with this enhancement could run along these lines:@HooglyBoogly - could you review? Thank you in advance!
Added subscribers: @HooglyBoogly, @grosgood
This issue was referenced by
84cc00f3b6
Changed status from 'Needs Triage' to: 'Resolved'