Transform generalized custom-data correction support #69707

Open
opened 2019-09-10 11:23:57 +02:00 by Campbell Barton · 6 comments

Motivation:

Having to manually adjust custom-data is tedious
while there is a UV correction option,
it's limited to vertex & slide.

This proposal is to generalize the option so it can be used for any
transform mode.

Solution:

This proposes to add two kinds of custom-data correction methods.

  • Correct based on surrounding geometry, this is suitable for
vertex & edge slide.

The existing logic for vertex & edge slide can be used here.

  • Project Custom-Data
This would project geometry onto the surfaces of the original mesh
to calculate the custom-data.
This would allow geometry.
This could be used for other transform modes besides vertex/edge slide.

Limitations:

This option works best when adjusting small regions of geometry and often won't work well moving large regions of faces.

There is a limit to how much UV's can be corrected in this case without re-unwrapping/projecting
(which is beyond the scope of this proposal).

User Interface:

These would be shown in the tool options panel, we could keep the transform option too (although this isn't essential).


There is a risk that users accidentally leave this enabled and transform their UV's when moving the geometry.

Since we have other fairly obscure options (transform origins for example), it may be best to show these are enabled while transforming (as we do for auto-keyframe).

**Motivation:** Having to manually adjust custom-data is tedious while there is a UV correction option, it's limited to vertex & slide. This proposal is to generalize the option so it can be used for any transform mode. **Solution:** This proposes to add two kinds of custom-data correction methods. - Correct based on surrounding geometry, this is suitable for ``` vertex & edge slide. ``` *The existing logic for vertex & edge slide can be used here.* - Project Custom-Data ``` This would project geometry onto the surfaces of the original mesh to calculate the custom-data. This would allow geometry. ``` ``` This could be used for other transform modes besides vertex/edge slide. ``` **Limitations:** This option works best when adjusting small regions of geometry and often won't work well moving large regions of faces. There is a limit to how much UV's can be corrected in this case without re-unwrapping/projecting *(which is beyond the scope of this proposal).* **User Interface:** These would be shown in the tool options panel, we could keep the transform option too (although this isn't essential). ---- There is a risk that users accidentally leave this enabled and transform their UV's when moving the geometry. Since we have other fairly obscure options (transform origins for example), it may be best to show these are enabled while transforming (as we do for auto-keyframe).
Germano Cavalcante was assigned by Campbell Barton 2019-09-10 11:23:57 +02:00
Author
Owner

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Added subscriber: @nokipaike

Added subscriber: @nokipaike

Limitations:

This option works best when adjusting small regions of geometry and often won't work well moving large regions of faces.

Out of curiosity, could this generalization also work for high density mesh?

from the way it is described it seems to me the same concept ..
"by selecting minor regions of high density mesh they could be moved smooth"

>Limitations: > >This option works best when adjusting small regions of geometry and often won't work well moving large regions of faces. Out of curiosity, could this generalization also work for high density mesh? from the way it is described it seems to me the same concept .. "by selecting minor regions of high density mesh they could be moved smooth"

I think this task can be closed as resolved.
In the transform code we now have this function:

void trans_mesh_customdata_correction_init(TransInfo *t, struct TransDataContainer *tc);

Perhaps the name can be improved.
Just call this function when initing the desired transform mode and the rest is automatically resolved.

I think this task can be closed as resolved. In the transform code we now have this function: ``` void trans_mesh_customdata_correction_init(TransInfo *t, struct TransDataContainer *tc); ``` Perhaps the name can be improved. Just call this function when initing the desired transform mode and the rest is automatically resolved.
Author
Owner

@mano-wii I think this should be kept open until this is exposed to the user.

@mano-wii I think this should be kept open until this is exposed to the user.
Author
Owner

How should this option be exposed to the user?

Would having a single "UV/Custom Data Correction" tool-setting toggle in the "Options" popover be OK?

Then all tools that support UV correction would use this, either to replace the option, or to initialize the option which could still be toggled from the operator.

How should this option be exposed to the user? Would having a single "UV/Custom Data Correction" tool-setting toggle in the "Options" popover be OK? Then all tools that support UV correction would use this, either to replace the option, or to initialize the option which could still be toggled from the operator.
Philipp Oeser removed the
Interest
Modeling
label 2023-02-09 15:29:36 +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
3 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#69707
No description provided.