Curve Deform Node #88702

Open
opened 2021-05-31 14:19:21 +02:00 by Dalai Felinto · 17 comments

NOTE: The design below is outdated. A curve deform node should be a field node now, with a vector input and output, and a curve input. Arguably it should just be a node group too.

{F10152887 size=full} {F10152878 size=full} {F10152882 size=full}

This is task is for a port of the "Curve" modifier to a node.
{F10150643, size=50%}

Details

  • Any geometry component with a position attribute is supported by this node.
  • Only the first spline of the curve is used for deformation.
  • Two input modes modes are available.
    The position mode uses point positions for the curve parameters.* The position input is provided for convenience. In most common cases, a single axis of the position is used as a parameter for the curve.
    *The position is mapped to the curve based on length. So "x=5m" means, transform by traveling 5m along the spline. This is how the modifier works. The attribute input mode uses any float attribute between zero and one, as a factor along the length of the curve.
    ** For convenience, a "Float" option is available for the attribute when the whole geometry should have the same parameter.
  • Extrapolation should be handled by a separate node that can extrapolate a spline.

Further Questions

  • Is an "influence" attribute input really necessary? The same thing could be achieved by mixing a copied position attribute before starting the operation.
    ** The answer to this question will apply to other operations as well.
  • Which of the three "Curve Deform" settings are necessary in this node? "Use Radius" is likely not necessary, the attribute could just be filled beforehand.

Related Nodes

  • A "Curve Sample" node could do a similar operation, but instead of deforming positions, it would sample an attribute along the length of a curve based on the same mapping controls.
    ** This could be useful to have more flexible control of attributes with curves.

Implementation
The implementation should be straightforward. Sampling arbitrary points along the curve is an natural extension of the uniform sampling that is already implemented.
Curve parameters should be sorted before, and then changed into evaluated point indices and factors.
Then, interpolation between the transform of neighboring evaluated points should be quite simple.

NOTE: The design below is outdated. A curve deform node should be a field node now, with a vector input and output, and a curve input. Arguably it should just be a node group too. | {[F10152887](https://archive.blender.org/developer/F10152887/image.png) size=full}| {[F10152878](https://archive.blender.org/developer/F10152878/image.png) size=full} | {[F10152882](https://archive.blender.org/developer/F10152882/image.png) size=full} | | -- | -- | -- | This is task is for a port of the "Curve" modifier to a node. {[F10150643](https://archive.blender.org/developer/F10150643/image.png), size=50%} **Details** * Any geometry component with a position attribute is supported by this node. * Only the first spline of the curve is used for deformation. * Two input modes modes are available. **The position mode uses point positions for the curve parameters.*** The position input is provided for convenience. In most common cases, a single axis of the position is used as a parameter for the curve. ***The position is mapped to the curve based on length. So "x=5m" means, transform by traveling 5m along the spline. This is how the modifier works.** The attribute input mode uses any float attribute between zero and one, as a factor along the length of the curve. ** For convenience, a "Float" option is available for the attribute when the whole geometry should have the same parameter. * Extrapolation should be handled by a separate node that can extrapolate a spline. **Further Questions** * Is an "influence" attribute input really necessary? The same thing could be achieved by mixing a copied position attribute before starting the operation. ** The answer to this question will apply to other operations as well. * Which of the three "Curve Deform" settings are necessary in this node? "Use Radius" is likely not necessary, the attribute could just be filled beforehand. **Related Nodes** * A "Curve Sample" node could do a similar operation, but instead of deforming positions, it would sample an attribute along the length of a curve based on the same mapping controls. ** This could be useful to have more flexible control of attributes with curves. **Implementation** The implementation should be straightforward. Sampling arbitrary points along the curve is an natural extension of the uniform sampling that is already implemented. Curve parameters should be sorted before, and then changed into evaluated point indices and factors. Then, interpolation between the transform of neighboring evaluated points should be quite simple.
Author
Owner

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

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

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Hans Goudey changed title from Curve deform node to Curve Deform Node 2021-06-01 16:35:18 +02:00
Hans Goudey self-assigned this 2021-06-07 06:05:24 +02:00
Member

I'll note that the patch for this task strays from the above design, since much of it doesn't really make sense. I'll update more tomorrow.

I'll note that the patch for this task strays from the above design, since much of it doesn't really make sense. I'll update more tomorrow.
Author
Owner

Hans needs help testing this already, specially in regard to the options and the differences between the modifier and the node.

Hans needs help testing this already, specially in regard to the options and the differences between the modifier and the node.

Added subscriber: @MadMinstrel

Added subscriber: @MadMinstrel

"Only the first spline of the curve is used for deformation."

I've always found this to be very problematic with the Curve modifier. Can't this be done for each spline?

"Only the first spline of the curve is used for deformation." I've always found this to be very problematic with the Curve modifier. Can't this be done for each spline?

Added subscriber: @lictex_1

Added subscriber: @lictex_1

Added subscriber: @DuarteRamos

Added subscriber: @DuarteRamos

Added subscriber: @Louis_v_a

Added subscriber: @Louis_v_a

Added subscriber: @JasonClarke

Added subscriber: @JasonClarke

Added subscriber: @EvaVomhoff

Added subscriber: @EvaVomhoff

Added subscriber: @steve_cullum

Added subscriber: @steve_cullum

Added subscriber: @Olliver

Added subscriber: @Olliver

Could I suggest adding an option for manually setting the "tilt" used by the node - as a vector?

Could I suggest adding an option for manually setting the "tilt" used by the node - *as a vector*?

Added subscriber: @SteffenD

Added subscriber: @SteffenD
Hans Goudey removed their assignment 2022-08-05 17:48:47 +02:00
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly

Added subscriber: @Dangry

Added subscriber: @Dangry
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:44:49 +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
12 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#88702
No description provided.