UV Unwrap Ignores Aspect Ratio Setting #31962

Closed
opened 2012-06-29 13:04:47 +02:00 by Steffen Dünner · 9 comments

%%%Looks like the "Correct Aspect" switch when using unwrap is completely ignored. Results are always the same. Shouldn't switching it off mean that the whole UV space gets covered, regardless of the aspect ratio of the unwrapped geometry / image?%%%

%%%Looks like the "Correct Aspect" switch when using unwrap is completely ignored. Results are always the same. Shouldn't switching it off mean that the whole UV space gets covered, regardless of the aspect ratio of the unwrapped geometry / image?%%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%Antony, could you please check on this? Thanks!

BTW, closed duplicate report http://projects.blender.org/tracker/index.php?func=detail&aid=31979&group_id=9&atid=498%%%

%%%Antony, could you please check on this? Thanks! BTW, closed duplicate report http://projects.blender.org/tracker/index.php?func=detail&aid=31979&group_id=9&atid=498%%%

%%%Hi,

First of all, a few things to note: Correct Aspect has to do with the ratio of the image, so for square images, it won't have any effect at all. For non square images it accounts for the fact that unwrapping is done to a square target space and actually modifies the UV coordinates by the aspect ratio of the image to avoid any stretching introduced by mapping a square space to a rectangular one.

This looks like it's working like it should on latest trunk. If there's a case where it doesn't could you please post a file/image that fails?%%%

%%%Hi, First of all, a few things to note: Correct Aspect has to do with the ratio of the image, so for square images, it won't have any effect at all. For non square images it accounts for the fact that unwrapping is done to a square target space and actually modifies the UV coordinates by the aspect ratio of the image to avoid any stretching introduced by mapping a square space to a rectangular one. This looks like it's working like it should on latest trunk. If there's a case where it doesn't could you please post a file/image that fails?%%%

%%%I did some more experiments and i believe i found the issue. The aspect ratio might be stored for the first initial unwrap, but it is not updated for further unwraps on different textures (aspect ratios). I will give an example:

  1. You create a texture with 512x512 px (1:1 ratio) and unwrap the mesh. Now the ratio gets stored for the UV-Layer as 1:1.

  2. Now you exchange the texture. Either loading a different image (replace) on same slot or change to a different image slot. If this texture has not the same ratio (for example 1024x512 px, which is 2:1) then the aspect option will fail since it still assumes a 1:1 ratio, not updating to the ratio of the currently chosen texture.%%%

%%%I did some more experiments and i believe i found the issue. The aspect ratio might be stored for the first initial unwrap, but it is not updated for further unwraps on different textures (aspect ratios). I will give an example: 1. You create a texture with 512x512 px (1:1 ratio) and unwrap the mesh. Now the ratio gets stored for the UV-Layer as 1:1. 2. Now you exchange the texture. Either loading a different image (replace) on same slot or change to a different image slot. If this texture has not the same ratio (for example 1024x512 px, which is 2:1) then the aspect option will fail since it still assumes a 1:1 ratio, not updating to the ratio of the currently chosen texture.%%%

%%%Indeed I can confirm that aspect ratio correction is only done on unwrap. I can hook up a mechanism to adjust the aspect ratio of uvs on image change.%%%

%%%Indeed I can confirm that aspect ratio correction is only done on unwrap. I can hook up a mechanism to adjust the aspect ratio of uvs on image change.%%%

%%%Can you test again after revision 48760?%%%

%%%Can you test again after revision 48760?%%%

%%%No reply, let's assume this was fixed.%%%

%%%No reply, let's assume this was fixed.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

%%%The fix was mostly reverted by Campbel, see r49633 and ensuing discussion in cvs mailling list. It needs a better way to expose the feature.%%%

%%%The fix was mostly reverted by Campbel, see r49633 and ensuing discussion in cvs mailling list. It needs a better way to expose the feature.%%%
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
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
5 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#31962
No description provided.