Angle based UV-unwrap: distorted UV island with even angles on geometry #78101

Open
opened 3 years ago by Vyach · 20 comments
Vyach commented 3 years ago

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GT 640/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87

Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-06-19 23:28, hash: 874af5301c

Short description of error
42431604.png

Exact steps for others to reproduce the error
2020-06-21_18-02-13.mp4
untitled.blend

**System Information** Operating system: Windows-7-6.1.7601-SP1 64 Bits Graphics card: GeForce GT 640/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87 **Blender Version** Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-06-19 23:28, hash: `874af5301c` **Short description of error** ![42431604.png](https://archive.blender.org/developer/F8635251/42431604.png) **Exact steps for others to reproduce the error** [2020-06-21_18-02-13.mp4](https://archive.blender.org/developer/F8635253/2020-06-21_18-02-13.mp4) [untitled.blend](https://archive.blender.org/developer/F8635255/untitled.blend)
Vyach commented 3 years ago
Poster

Added subscriber: @Vyach

Added subscriber: @Vyach
Collaborator

#102833 was marked as duplicate of this issue

#102833 was marked as duplicate of this issue
Collaborator

Added subscriber: @mano-wii

Added subscriber: @mano-wii
Collaborator

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

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

Perhaps it is a known problem since we have: #71959 (Improve UV unwrapping balance between angle and area preservation)
But I'm confirming for now.

Perhaps it is a known problem since we have: #71959 (Improve UV unwrapping balance between angle and area preservation) But I'm confirming for now.
Vyach commented 3 years ago
Poster

@mano-wii
okay

@mano-wii okay
no4me commented 2 years ago

Added subscriber: @no4me

Added subscriber: @no4me
iss commented 2 years ago
Collaborator

Added subscriber: @iss

Added subscriber: @iss
iss commented 2 years ago
Collaborator

Adding back modelling because this is otherwise untagged with project in https://developer.blender.org/maniphest/query/J_RaaSzk5wr0/

Adding back modelling because this is otherwise untagged with project in https://developer.blender.org/maniphest/query/J_RaaSzk5wr0/
Vyach commented 2 years ago
Poster

poke

poke
1D_Inc commented 1 year ago

Added subscriber: @1D_Inc

Added subscriber: @1D_Inc
1D_Inc commented 1 year ago

I am not sure that angle-based term stands for "preserving all the angles".
I think it works different.

I am not sure that angle-based term stands for "preserving all the angles". I think it works different.
Vyach commented 1 year ago
Poster

In #78101#1212397, @1D_Inc wrote:
I am not sure that angle-based term stands for "preserving all the angles".
I think it works different.

There shouldn`t be different behavior for similar angles, because it become unpredictable (what angle will be distorted?)

> In #78101#1212397, @1D_Inc wrote: > I am not sure that angle-based term stands for "preserving all the angles". > I think it works different. There shouldn`t be different behavior for similar angles, because it become unpredictable (what angle will be distorted?)
1D_Inc commented 1 year ago

In #78101#1212518, @Vyach wrote:

There shouldn`t be different behavior for similar angles, because it become unpredictable (what angle will be distorted?)

Angle based method is supposed to deal with organic/irregular topology, while conformal - with linear. Maybe it is a naming problem.

image.png

image.png

> In #78101#1212518, @Vyach wrote: > There shouldn`t be different behavior for similar angles, because it become unpredictable (what angle will be distorted?) Angle based method is supposed to deal with organic/irregular topology, while conformal - with linear. Maybe it is a naming problem. ![image.png](https://archive.blender.org/developer/F10337988/image.png) ![image.png](https://archive.blender.org/developer/F10337990/image.png)

Added subscriber: @Chris_Blackbourn

Added subscriber: @Chris_Blackbourn

I actually spotted this one in the code first, so it's nice to have a real world example.

I think what's happening here is those quads are being triangulated before being passed to the solver. By triangulating, we create additional constraints across the diagonals not present in the original mesh.

I've constructed a fully symmetric model which is specially designed to demonstrate the problem here:
image.png

Note that a fully symmetric unwrap can be created by hand, keeping that square a square, and something like this would be the desired unwrapping:
image.png

Blender file for the curious. You can try scaling in the 'Y' for some interesting results, splitting the quad, or removing some of the triangles. UnlikelyShape.blend

In terms of fixes, if this is the cause of the bug, we would need to upgrade the LSCM solver to operate directly on quads as well as triangles.

I just skimmed through the original "Least Squares Conformal Maps
for Automatic Texture Atlas Generation" paper and it doesn't mention quads, so this would be either a literature search or some original research or perhaps a "contact-the-author" situation.

I actually spotted this one in the code first, so it's nice to have a real world example. I think what's happening here is those quads are being triangulated before being passed to the solver. By triangulating, we create additional constraints across the diagonals not present in the original mesh. I've constructed a fully symmetric model which is specially designed to demonstrate the problem here: ![image.png](https://archive.blender.org/developer/F13055616/image.png) Note that a fully symmetric unwrap can be created by hand, keeping that square a square, and something like this would be the desired unwrapping: ![image.png](https://archive.blender.org/developer/F13055633/image.png) Blender file for the curious. You can try scaling in the 'Y' for some interesting results, splitting the quad, or removing some of the triangles. [UnlikelyShape.blend](https://archive.blender.org/developer/F13055620/UnlikelyShape.blend) In terms of fixes, if this is the cause of the bug, we would need to upgrade the LSCM solver to operate directly on quads as well as triangles. I just skimmed through the original "Least Squares Conformal Maps for Automatic Texture Atlas Generation" paper and it doesn't mention quads, so this would be either a literature search or some original research or perhaps a "contact-the-author" situation.

@Chris_Blackbourn interesting case.
In 2.7 angle based method give a better result with such kind of a geometry (at least tries to), while in 3.0 both methods give the same results.
image.png

@Chris_Blackbourn interesting case. In 2.7 angle based method give a better result with such kind of a geometry (at least tries to), while in 3.0 both methods give the same results. ![image.png](https://archive.blender.org/developer/F13055895/image.png)
Chris_Blackbourn self-assigned this 3 months ago

Turns out to be more subtle than anticipated. Please contact me if you're working on this one.

Turns out to be more subtle than anticipated. Please contact me if you're working on this one.

See another instance of the bug here: https://developer.blender.org/T102833

See another instance of the bug here: https://developer.blender.org/T102833
Collaborator

Added subscriber: @070NRG

Added subscriber: @070NRG
lichtwerk removed the
legacy module/Modeling
label 1 day ago
lichtwerk removed the
Interest/Modeling
label 1 day ago
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
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/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
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
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#78101
Loading…
There is no content yet.