Scale attribute has no default value after distribution #84639

Closed
opened 2021-01-12 14:15:00 +01:00 by Hans Goudey · 6 comments
Member

After the point distribute node, reading scale for the first time doesn't have any data, so if you try to multiply the value will be zero.

{F9561062 size=full}

  1. Add a new nodes modifier on the default cube
  2. Add the following node setup with an instancing node afterwards.
  3. See that instances have zero scale unless the attribute fill node is used.

The fix is to have a map of attribute names to default values. In this case the map would be
scale -> [1.0, 1.0, 1.0]

After the point distribute node, reading scale for the first time doesn't have any data, so if you try to multiply the value will be zero. {[F9561062](https://archive.blender.org/developer/F9561062/image.png) size=full} 1. Add a new nodes modifier on the default cube 2. Add the following node setup with an instancing node afterwards. 2. See that instances have zero scale unless the attribute fill node is used. The fix is to have a map of attribute names to default values. In this case the map would be `scale -> [1.0, 1.0, 1.0]`
Author
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Author
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Hans Goudey changed title from Geometry Nodes: Adjusting scale attribute data is zero to Scale attribute has no default value after distribution 2021-01-12 20:59:02 +01:00

This issue was referenced by 0b0e45252b

This issue was referenced by 0b0e45252b11bbc1c0d96a3e04a4087d02f765e3
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jacques Lucke self-assigned this 2021-01-22 13:30:44 +01:00
Member

This is fixed now, isn't it?

This is fixed now, isn't it?
Thomas Dinges added this to the 2.92 milestone 2023-02-08 16:14:53 +01: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
3 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#84639
No description provided.