Align rotation per uv island #78399

Closed
opened 2020-06-28 22:46:18 +02:00 by Daniel Bystedt · 7 comments
Member

New operator with the following options for align rotation:
Auto

  • find edges that aligns to each other within -45 to +45 degrees in UV space
  • Align the uv island sho that the average of all those edges is aligned to 0 degrees (i.e along the Y/V axis)
    World space X, Y, Z
  • find edges that aligns to each other within 90 degrees along world axis X, Y or Z
  • Align the uv island to the average of all those edges
    Selected edge

  • Align rotation - auto
    • Starting point

Auto align rotation to UV space

{F8652116, height = 300}

Desired result

I’m not sure what the best algorithm would be. With simpler box shapes it would perhaps work with calculating the angle of all edges and filter out the ones that have -45 degree to +45 degree. Calculate the average of all those edges and then align the rotation of that average edge value so the degree is 0.
{F8652120, height = 300}


Align rotation - to world axis

Make options to align other axes in object space as well (x, y)

{F8652123, height = 300}

Starting point

Align rotation 3d viewport axis (align to 3d world +Z in this example)

{F8652125, height = 300}

Desired result

Filter out edges that aims along the Z axis (or close to it). Then align rotation of the uv island so that those edges aims along the V axis in UV space.

{F8652127, height = 300}


Align rotation - to selected edge

Starting point

Align rotation to selected edge.

{F8652132, height = 300}

Desired result

Rotate the uv island so that the selected edge is aligned to aim along the V axis in UV space.

Should work per uv island where one edge is selected per uv island

{F8652135, height = 300}

New operator with the following options for align rotation: **Auto** - find edges that aligns to each other within -45 to +45 degrees in UV space - Align the uv island sho that the average of all those edges is aligned to 0 degrees (i.e along the Y/V axis) **World space X, Y, Z** - find edges that aligns to each other within 90 degrees along world axis X, Y or Z - Align the uv island to the average of all those edges **Selected edge** --- - Align rotation - auto - Starting point Auto align rotation to UV space {[F8652116](https://archive.blender.org/developer/F8652116/image.png), height = 300} **Desired result** I’m not sure what the best algorithm would be. With simpler box shapes it would perhaps work with calculating the angle of all edges and filter out the ones that have -45 degree to +45 degree. Calculate the average of all those edges and then align the rotation of that average edge value so the degree is 0. {[F8652120](https://archive.blender.org/developer/F8652120/image.png), height = 300} --- ## Align rotation - to world axis Make options to align other axes in object space as well (x, y) {[F8652123](https://archive.blender.org/developer/F8652123/image.png), height = 300} **Starting point** Align rotation 3d viewport axis (align to 3d world +Z in this example) {[F8652125](https://archive.blender.org/developer/F8652125/image.png), height = 300} **Desired result** Filter out edges that aims along the Z axis (or close to it). Then align rotation of the uv island so that those edges aims along the V axis in UV space. {[F8652127](https://archive.blender.org/developer/F8652127/image.png), height = 300} --- ## Align rotation - to selected edge **Starting point** Align rotation to selected edge. {[F8652132](https://archive.blender.org/developer/F8652132/image.png), height = 300} **Desired result** Rotate the uv island so that the selected edge is aligned to aim along the V axis in UV space. Should work per uv island where one edge is selected per uv island {[F8652135](https://archive.blender.org/developer/F8652135/image.png), height = 300}
Author
Member

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

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

Added subscriber: @DanielBystedt

Added subscriber: @DanielBystedt

Added subscriber: @APEC

Added subscriber: @APEC

Added subscriber: @Idlero

Added subscriber: @Idlero
Chris Blackbourn self-assigned this 2022-06-28 01:37:16 +02:00

Added subscriber: @GeorgiaPacific

Added subscriber: @GeorgiaPacific

This issue was referenced by 20daaeffce

This issue was referenced by 20daaeffce4cf9bfe48ab7c84cb9e2b1d71d2c91

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
6 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#78399
No description provided.