Add data transfer mapping with interpolation that preserves seams of face corner data #97070

Open
opened 2022-04-05 12:47:38 +02:00 by Simon Thommes · 2 comments
Member

The existing mapping options for face corner data in Blender don't allow for preserving seams while still interpolating whenever it makes sense.

Here is a video comparing the available methods in Blender with the proposed prototype, implemented with python.
proximity_based_face_corner_transfer-2022-04-04_15.55.09.mp4
And the file:
loop_data_transfer.blend

The idea of the algorithm in pseudo code is the following:

find closest face on source mesh to target face center
find closest face on source mesh to target corner position

if those are the same face set this as the interpolation source face

else find the closest face to the target corner that is not separated by a seam
(by traversing on direct way from the target face center towards target corner until a seam edge is hit)
set that face as the interpolation source face

interpolate the data from the closest point on the interpolation source face to the target corner

There are some issues still to be improved in this:

  • faces with more than 2 face neighbors
  • target points that are outside of the bounds of the source mesh
  • my initial implementation uses only proximity, projection would also be a viable option here.
The existing mapping options for face corner data in Blender don't allow for preserving seams while still interpolating whenever it makes sense. Here is a video comparing the available methods in Blender with the proposed prototype, implemented with python. [proximity_based_face_corner_transfer-2022-04-04_15.55.09.mp4](https://archive.blender.org/developer/F12975179/proximity_based_face_corner_transfer-2022-04-04_15.55.09.mp4) And the file: [loop_data_transfer.blend](https://archive.blender.org/developer/F12975184/loop_data_transfer.blend) The idea of the algorithm in pseudo code is the following: ``` find closest face on source mesh to target face center find closest face on source mesh to target corner position if those are the same face set this as the interpolation source face else find the closest face to the target corner that is not separated by a seam (by traversing on direct way from the target face center towards target corner until a seam edge is hit) set that face as the interpolation source face interpolate the data from the closest point on the interpolation source face to the target corner ``` There are some issues still to be improved in this: - faces with more than 2 face neighbors - target points that are outside of the bounds of the source mesh - my initial implementation uses only proximity, projection would also be a viable option here.
Author
Member

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

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

Added subscribers: @SimonThommes, @mont29

Added subscribers: @SimonThommes, @mont29
Philipp Oeser removed the
Interest
Modeling
label 2023-02-09 15:27:54 +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
1 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#97070
No description provided.