Attribute Transfer Node #86843

Closed
opened 2021-03-23 04:12:12 +01:00 by Hans Goudey · 11 comments
Member

{F9904877 size=full}

This is task is for a port of the "Data Transfer" modifier to a node.

Details

  • The "Mix Mode", "Mix Factor", and "Vertex Group" options can be removed, replaced by more attribute nodes after the transfer. This makes sense because the transfer of attributes between data should be the focus of this node, not what to do with them after.
  • Attributes are referred to by name. Therefore, a single attribute should be copied.
    ** A later improvement to the node could be to copy multiple attributes, maybe with a multi-socket input node.
  • The "Generate Data Layers" operator can be removed, since it is not needed to create new data on the output geometry.
  • The "Domain" drop-down chooses which domain to create the result attribute on. The data type is chosen based on the source attribute.
  • The "Mapping" drop-down has a few options:
    ** "Nearest": Copies attributes from the nearest element of the domain of the source attribute.
    ** "Nearest Interpolated": Similar to what happens in the point distribute node, interpolates values from the nearest vertices or edges on the closest face
    ** "Topology": Requires the topology of the target geometry to be the same, so really more of an "Attribute Copy" operation, otherwise outputs an error.
    ** More options may be necessary based on the choice for the destination domain.

Further Questions

  • How many of the options are necessary for most use cases? The answer is unclear. More feedback is necessary from artists for this question.
    ** The "Max Distance" and "Ray Radius" options may be necessary.

Implementation
It's not clear how much the existing data transfer code would be useful, my guess is not much.
The "Attribute Proximity" node already does the same thing with the "position" attribute, so some logic could be shared with that.

{[F9904877](https://archive.blender.org/developer/F9904877/image.png) size=full} This is task is for a port of the "Data Transfer" modifier to a node. **Details** * The "Mix Mode", "Mix Factor", and "Vertex Group" options can be removed, replaced by more attribute nodes after the transfer. This makes sense because the transfer of attributes between data should be the focus of this node, not what to do with them after. * Attributes are referred to **by name**. Therefore, a single attribute should be copied. ** A later improvement to the node could be to copy multiple attributes, maybe with a multi-socket input node. * The "Generate Data Layers" operator can be removed, since it is not needed to create new data on the output geometry. * The "Domain" drop-down chooses which domain to create the result attribute on. The data type is chosen based on the source attribute. * The "Mapping" drop-down has a few options: ** "Nearest": Copies attributes from the nearest element of the domain of the source attribute. ** "Nearest Interpolated": Similar to what happens in the point distribute node, interpolates values from the nearest vertices or edges on the closest face ** "Topology": Requires the topology of the target geometry to be the same, so really more of an "Attribute Copy" operation, otherwise outputs an error. ** More options may be necessary based on the choice for the destination domain. **Further Questions** * How many of the options are necessary for most use cases? The answer is unclear. More feedback is necessary from artists for this question. ** The "Max Distance" and "Ray Radius" options may be necessary. **Implementation** It's not clear how much the existing data transfer code would be useful, my guess is not much. The "Attribute Proximity" node already does the same thing with the "position" attribute, so some logic could be shared with that.
Author
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly

Added subscriber: @victorlouis

Added subscriber: @victorlouis

As I understand it:

  • The Nearest mode of the modifier corresponds to the Points mode if the Attribute Proximity node
  • The Nearest Interpolated mode corresponds to the Faces mode

However the Attribute Proximity node only "transfers" position, so it's code would have to be extended to transfer arbitrary attributes (and interpolate them over triangle faces when needed).

As I understand it: - The `Nearest` mode of the modifier corresponds to the `Points` mode if the Attribute Proximity node - The `Nearest Interpolated` mode corresponds to the `Faces` mode However the Attribute Proximity node only "transfers" `position`, so it's code would have to be extended to transfer arbitrary attributes (and interpolate them over triangle faces when needed).
Author
Member

Yes, good points. Those names in particular could be improved I think.

Yes, good points. Those names in particular could be improved I think.
Member

Added subscriber: @SimonThommes

Added subscriber: @SimonThommes
Member

The way this is split up into details totally makes sense to me.
In terms of needed mapping methods I have a couple of thoughts:

  • How many options are necessary is quite difficult to say. Unfortunately, which option works best, can heavily rely on the specific case and topology.
  • At least there should probably also be a 'Projected' option
  • By far the biggest issue is the transfer on the Corner domain, with for example UV seams. Even the current operator/modifier works far from ideal in this case.
    • Having some method that is a bit smarter when handling split corners would be nice in general...

But I think additional needed methods can come if necessary.

The way this is split up into details totally makes sense to me. In terms of needed mapping methods I have a couple of thoughts: - How many options are necessary is quite difficult to say. Unfortunately, which option works best, can heavily rely on the specific case and topology. - At least there should probably also be a 'Projected' option - By far the biggest issue is the transfer on the `Corner` domain, with for example UV seams. Even the current operator/modifier works far from ideal in this case. - Having some method that is a bit smarter when handling split corners would be nice in general... But I think additional needed methods can come if necessary.
Dalai Felinto changed title from WIP: Attribute Transfer Node to Attribute Transfer Node 2021-04-12 14:56:21 +02:00
Author
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Hans Goudey self-assigned this 2021-04-12 23:52:04 +02:00

Added subscriber: @stratmann

Added subscriber: @stratmann
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Changed status from 'Confirmed' to: 'Archived'

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

The design of the underlying system has changed significantly. If improvements to the existing Transfer node are required, a new task can be created.

The design of the underlying system has changed significantly. If improvements to the existing Transfer node are required, a new task can be created.
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
5 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#86843
No description provided.