Support dynamic attributes on instances #92926

Closed
opened 2021-11-08 15:17:41 +01:00 by Hans Goudey · 14 comments
Member

Each instances geometry component currently has the id and position attribute, but supporting proper dynamic instance attributes will make many workflows simpler and faster.

  • Add a new "Instance" attribute domain, so that the user can choose when to use instance attributes. 1222c45544, ba8dd0f24f, 97533eede4
    • Add it as a domain choice in most nodes with domain drop-downs.
    • Change the areas that evaluate fields on instances to use the instances domain.
  • Add the ability to either set instance positions or point positions in each instance
    • Note from Hans: I have never seen a user request for this, so I'm considering the task finished without this
  • Transfer named and anonymous attributes to instances in the instance on points node 221b7b27fc
  • #93473 Copy instance attributes to the real geometry when realizing instances
    • Attributes already on the real geometry should take precedence in this process, otherwise the id for each point would be overridden by the instance ID.
  • Copy instance attributes in the instances to points node 386b112f76

As a later step, these instance attributes should be supported as an attribute source when rendering in Cycles and EEVEE. Proper design of code for that process should be considered separately though.

Each instances geometry component currently has the `id` and `position` attribute, but supporting proper dynamic instance attributes will make many workflows simpler and faster. - [x] Add a new "Instance" attribute domain, so that the user can choose when to use instance attributes. 1222c45544, ba8dd0f24f, 97533eede4 - [x] Add it as a domain choice in most nodes with domain drop-downs. - [x] Change the areas that evaluate fields on instances to use the instances domain. - [ ] Add the ability to either set instance positions or point positions in each instance * *Note from Hans: I have never seen a user request for this, so I'm considering the task finished without this* - [x] Transfer named and anonymous attributes to instances in the instance on points node 221b7b27fc - [x] #93473 Copy instance attributes to the real geometry when realizing instances - Attributes already on the real geometry should take precedence in this process, otherwise the `id` for each point would be overridden by the instance ID. - [x] Copy instance attributes in the instances to points node 386b112f76 As a later step, these instance attributes should be supported as an attribute source when rendering in Cycles and EEVEE. Proper design of code for that process should be considered separately though.
Author
Member

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

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

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Author
Member

Added subscriber: @erik85

Added subscriber: @erik85

I have done a few of these locally already. I could start with uploading a patch that enables custom attributes and the instance domain.

I have done a few of these locally already. I could start with uploading a patch that enables custom attributes and the instance domain.
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

@erik85 that would be great.

@erik85 that would be great.

Added subscriber: @GeorgiaPacific

Added subscriber: @GeorgiaPacific

Added subscriber: @JacobMerrill-1

Added subscriber: @JacobMerrill-1

This issue was referenced by 97533eede4

This issue was referenced by 97533eede444217bd28df50a721707bdce340403
(Deleted) commented 2021-11-27 22:22:02 +01:00 (Migrated from localhost:3001)

Added subscriber: @(Deleted)

Added subscriber: @(Deleted)

Added subscriber: @Yuro

Added subscriber: @Yuro

Added subscriber: @1seby

Added subscriber: @1seby

Added subscriber: @PrettyFireNOI7

Added subscriber: @PrettyFireNOI7
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jacques Lucke self-assigned this 2022-10-20 15:19:47 +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#92926
No description provided.