Trace Image Node #92461

Open
opened 2021-10-25 04:06:02 +02:00 by Jarrett Johnson · 8 comments

Trace Image Node

This task outlines a design proposal for a Trace Image geometry node.

Similar to Grease Pencil's functionality, the node receives an Image input and generates a Curve geometry.

TraceImageLayoutV2.png

  • Resolution: The higher the resolution, the more control points are generated for each spline
  • Color Threshold: Since potrace requires a black and white image, images are first converted to BW images. RBG values for each pixels are greyscaled and compared against the threshold to determine if the pixel is black or white.

Use cases

There seems to exist many use cases for a Trace Image Node (as stated by several users), and likely even much more, and would be a good node addition for the newly added image socket.

One can generate:

  • geometry from logos, and other images
  • complex curve arrangements like circuits
  • contours and terrains
  • swappable data to replace downstream curves in node trees to modulate behavior
  • etc.

There's likely even more possibilities and implications for the nodes including mapping these curves onto a 3D surface.

Implementation

For the most part, the implementation should be straightforward since there's already existing functionality in Blender via potrace used by grease pencil. However, much of the source code that performs this conversion is specific to that module.

Potential Issues

I haven't used Grease Pencil's trace image much, but from initial, miniscule testing with a very complex designed logo, it has some trouble generating a clean trace. However, it does a decent job on simpler logos.

Additional Questions

Grease pencil supports tracing an image sequence. Community members have also inquired support for this in this node. What should be the expected output and behavior?

# Trace Image Node This task outlines a design proposal for a `Trace Image` geometry node. Similar to Grease Pencil's functionality, the node receives an `Image` input and generates a `Curve` geometry. ![TraceImageLayoutV2.png](https://archive.blender.org/developer/F11538407/TraceImageLayoutV2.png) - Resolution: The higher the resolution, the more control points are generated for each spline - Color Threshold: Since potrace requires a black and white image, images are first converted to BW images. RBG values for each pixels are greyscaled and compared against the threshold to determine if the pixel is black or white. ## Use cases There seems to exist many use cases for a `Trace Image` Node (as stated by several users), and likely even much more, and would be a good node addition for the newly added image socket. One can generate: - geometry from logos, and other images - complex curve arrangements like circuits - contours and terrains - swappable data to replace downstream curves in node trees to modulate behavior - etc. There's likely even more possibilities and implications for the nodes including mapping these curves onto a 3D surface. ## Implementation For the most part, the implementation should be straightforward since there's already existing functionality in Blender via [potrace](http://potrace.sourceforge.net/) used by grease pencil. However, much of the source code that performs this conversion is specific to that module. ## Potential Issues I haven't used Grease Pencil's trace image much, but from initial, miniscule testing with a very complex designed logo, it has some trouble generating a clean trace. However, it does a decent job on simpler logos. ## Additional Questions Grease pencil supports tracing an image sequence. Community members have also inquired support for this in this node. What should be the expected output and behavior?
Author
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Author
Member

Added subscriber: @Jarrett-Johnson

Added subscriber: @Jarrett-Johnson

Added subscriber: @GeorgiaPacific

Added subscriber: @GeorgiaPacific

Added subscriber: @Zeastin

Added subscriber: @Zeastin

Added subscriber: @Aeraglyx

Added subscriber: @Aeraglyx

Added subscriber: @CrossmindStudio

Added subscriber: @CrossmindStudio

Added subscriber: @Sparazza

Added subscriber: @Sparazza

Added subscriber: @Kuboa

Added subscriber: @Kuboa
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
7 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#92461
No description provided.