Persistent/named attribute nodes #90864

Closed
opened 2021-08-23 10:17:25 +02:00 by Jacques Lucke · 14 comments
Member

The fields attribute workflow allows us to get rid of explicitly named attributes in the majority of cases. However, when passing data between different systems, explicit attribute names are still important. Examples:

  • Passing attributes to render engines.
  • Exporting geometry to other software.
  • Importing geometry from files on disk.
  • Reading attributes on other objects.

Named attributes should not be considered a solution to avoid potentially long links in a node group. While they could be used for that, long links are a more general problem that is not limited to geometry attributes. If required, we need to find a different solution for that.

Users should be encouraged to use named attributes only at the boundaries to other systems and to use fields within geometry nodes. This ensures good reusability of node groups because it avoids name collisions and improves flexibility.


The goal of this task is to define a set of nodes that deals with named attributes. There are three distinct tasks one has to perform on named attributes:

  • Create named attributes that are initialized by a field (this can also overwrite existing named attributes).
  • Access data from named attributes as a field.
  • Delete named attributes from a geometry.
The fields attribute workflow allows us to get rid of explicitly named attributes in the majority of cases. However, when passing data between different systems, explicit attribute names are still important. Examples: * Passing attributes to render engines. * Exporting geometry to other software. * Importing geometry from files on disk. * Reading attributes on other objects. Named attributes should not be considered a solution to avoid potentially long links in a node group. While they could be used for that, long links are a more general problem that is not limited to geometry attributes. If required, we need to find a different solution for that. Users should be encouraged to use named attributes only at the boundaries to other systems and to use fields within geometry nodes. This ensures good reusability of node groups because it avoids name collisions and improves flexibility. ---- The goal of this task is to define a set of nodes that deals with named attributes. There are three distinct tasks one has to perform on named attributes: * Create named attributes that are initialized by a field (this can also overwrite existing named attributes). * Access data from named attributes as a field. * Delete named attributes from a geometry.
Author
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke

Added subscriber: @dfelinto

Added subscriber: @dfelinto

I still don't see why we need to have generic attribute read/write nodes with hardcoded names.

  • Passing attributes to render engines.

Having the attribute created outside the modifier is a more explicit solution and avoids hard-coded names.

  • Exporting geometry to other software.

A custom-made nodegroup can be used as a modifier for that. Leaving the hardcoded names all outside the nodegroup.

  • Importing geometry from files on disk.

The node that supports the importing of arbritary data (e.g., OpenVDB Info Node) could be the one where the mapping happens.

  • Reading attributes on other objects.

Leave it to the Object Info Node to add more attribute sockets from the object.

I still don't see why we need to have generic attribute read/write nodes with hardcoded names. > * Passing attributes to render engines. Having the attribute created outside the modifier is a more explicit solution and avoids hard-coded names. > * Exporting geometry to other software. A custom-made nodegroup can be used as a modifier for that. Leaving the hardcoded names all outside the nodegroup. > * Importing geometry from files on disk. The node that supports the importing of arbritary data (e.g., OpenVDB Info Node) could be the one where the mapping happens. > * Reading attributes on other objects. Leave it to the Object Info Node to add more attribute sockets from the object.
Author
Member
https://devtalk.blender.org/t/hardcoded-attribute-names-removal-proposal/20138

Added subscriber: @GeorgiaPacific

Added subscriber: @GeorgiaPacific
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member
https://devtalk.blender.org/t/shareable-named-attribute-node-proposal/20386

Added subscriber: @pauanyu_blender

Added subscriber: @pauanyu_blender

Added subscriber: @SteffenD

Added subscriber: @SteffenD

Added subscriber: @Yuro

Added subscriber: @Yuro

Added subscriber: @Astronet-4

Added subscriber: @Astronet-4

Added subscriber: @cata_cg

Added subscriber: @cata_cg
Member
https://devtalk.blender.org/t/2022-1-17-2022-01-21-geometry-nodes-sub-module-meetings/22527
Author
Member

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

Changed status from 'Needs Triage' to: 'Resolved'
Jacques Lucke self-assigned this 2022-10-20 15:20:26 +02: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
9 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#90864
No description provided.