Expose more built-in data as attributes #84297

Closed
opened 2020-12-31 22:51:03 +01:00 by Hans Goudey · 16 comments
Member

Currently the only "built in" attributes are position attributes, and we only use a few reserved name attributes. We should expose more for lower level data access and flexibility.

  • Vertex normals
  • Face normals
  • Corner normals ("custom normals")
  • material index
  • tangents
  • vertex colors (color attributes on the face corner domain)
  • Index (for each domain) (these will likely be exposed as expressions rather than attributes, since they aren't exactly stored on the data like other attributes)
  • UV maps

A couple other things to consider:

  1. It's possible that some of them will need to be read-only.
  2. Some types like "bevel weight" don't fit so well in a more generalized attribute system and should likely be versioned to use more generic types like CD_PROP_FLOAT.
Currently the only "built in" attributes are position attributes, and we only use a few reserved name attributes. We should expose more for lower level data access and flexibility. - [x] Vertex normals - [ ] Face normals - [ ] Corner normals ("custom normals") - [x] material index - [ ] tangents - [x] vertex colors (color attributes on the face corner domain) - [ ] Index (for each domain) (these will likely be exposed as expressions rather than attributes, since they aren't exactly stored on the data like other attributes) - [x] UV maps A couple other things to consider: 1. It's possible that some of them will need to be read-only. 2. Some types like "bevel weight" don't fit so well in a more generalized attribute system and should likely be versioned to use more generic types like `CD_PROP_FLOAT`.
Author
Member

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

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

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly

Added subscriber: @DamianWinnichenko

Added subscriber: @DamianWinnichenko

Also, it would be super-handy if the Vertex Color attribute could be accessed from Geometry Nodes for read/write.
This feature could be used in both, scattering density distribution and shading.

Also, it would be super-handy if the Vertex Color attribute could be accessed from Geometry Nodes for read/write. This feature could be used in both, scattering density distribution and shading.

Added subscriber: @DimitriBastos

Added subscriber: @DimitriBastos

This includes a way to the user to know what is a built-in attribute and what is not? Because I can see lots of naming conventions and a user will not know, by tutorials, if certain attribute is created by another user or a default/built-in attribute. Sorry for my lack of better words explaining, I hope I'm making myself clear.

This includes a way to the user to know what is a built-in attribute and what is not? Because I can see lots of naming conventions and a user will not know, by tutorials, if certain attribute is created by another user or a default/built-in attribute. Sorry for my lack of better words explaining, I hope I'm making myself clear.
Jacques Lucke self-assigned this 2021-02-04 20:46:40 +01:00

Added subscriber: @victorlouis

Added subscriber: @victorlouis

This issue was referenced by d7c2c889a6

This issue was referenced by d7c2c889a688067dab280fc137ad4c3c7ce4cb2b
Jacques Lucke removed their assignment 2021-02-17 12:32:04 +01:00
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

I unassign myself, because Hans is working on it as well.

I unassign myself, because Hans is working on it as well.

This issue was referenced by 53bf04f284

This issue was referenced by 53bf04f2844b64cd9f79bedd047eac9690f872e3

This issue was referenced by e3f0b6d5cb

This issue was referenced by e3f0b6d5cbe5d34ac43568090c52a84dc51e579e
Hans Goudey changed title from Expose more built-in / reserved-name custom data as attributes to Expose more built-in data as attributes 2021-03-02 21:17:40 +01:00

This issue was referenced by f117ea2624

This issue was referenced by f117ea26246355f423fd78785a3b00a2490bd9a4

This issue was referenced by 80f7f1070f

This issue was referenced by 80f7f1070f177ae543f2fa35dd5d458e87ff30c1
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

The remaining elements in the list shouldn't really become built-in attributes anymore. They can be exposed as field nodes.

The remaining elements in the list shouldn't really become built-in attributes anymore. They can be exposed as field nodes.
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
6 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#84297
No description provided.