Default UVMap from planes is 90° CW rotated. #37649

Closed
opened 2013-11-28 09:17:23 +01:00 by Heiko Schmidt · 12 comments

System Information
Win 7 64 bit

Blender Version
Broken: Blender 2.69 r ??? (Build Date 28.11.2013 1:11)
Worked: Blender 2.29 release

When importing an image as plane the aspect ratio is wrong looks like the width and high values are muddled up somehow.

**System Information** Win 7 64 bit **Blender Version** Broken: Blender 2.69 r ??? (Build Date 28.11.2013 1:11) Worked: Blender 2.29 release When importing an image as plane the aspect ratio is wrong looks like the width and high values are muddled up somehow.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @heik

Added subscriber: @heik
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

can confirm this on a simple test, will have a quick look at the code...

can confirm this on a simple test, will have a quick look at the code...
Member

this is propably caused by cc9f663c54eca82b703979b255ea5e285ad96b45 when the manual quad creation was swapped with bpy.ops.mesh.primitive_plane_add()
Attached a patch that fixes this (it just swappes x & y dimensions).
note though, that I am unsure if we should rather rotate the UVs instead? will have to check behaviour before cc9f663c54eca82b703979b255ea5e285ad96b45...
I was also having difficulties generating a proper diff with git (it seems to not catch changes in submodules here, needs more investigstion on my side...) so this patch is done with meld manually.

this is propably caused by cc9f663c54eca82b703979b255ea5e285ad96b45 when the manual quad creation was swapped with bpy.ops.mesh.primitive_plane_add() Attached a patch that fixes this (it just swappes x & y dimensions). note though, that I am unsure if we should rather rotate the UVs instead? will have to check behaviour before cc9f663c54eca82b703979b255ea5e285ad96b45... I was also having difficulties generating a proper diff with git (it seems to not catch changes in submodules here, needs more investigstion on my side...) so this patch is done with meld manually.
Bastien Montagne was assigned by Brecht Van Lommel 2013-11-28 15:39:59 +01:00

No, blender/blender-addons@cc9f663c is old, it worked well after it. Checking right now where it comes from, suspect recent grid primitive optimization changed the order in which the vertices are added to the polygon…

But for sure, switching the dimensions is not what we want, rather rotating the UVs ;)

No, blender/blender-addons@cc9f663c is old, it worked well after it. Checking right now where it comes from, suspect recent grid primitive optimization changed the order in which the vertices are added to the polygon… But for sure, switching the dimensions is not what we want, rather rotating the UVs ;)
Bastien Montagne changed title from Import Images as Planes: aspect ratio wrong to Default UVMap from planes is 90° CW rotated. 2013-11-28 17:07:33 +01:00

Yep, can confirm it's another issue from aa3c06b41, not related to the addon (just add a plane, add anew UVMap, assign a texture to it, and you'll get it aligned in wrong direction).

Will see how to fix this.

Yep, can confirm it's another issue from aa3c06b41, not related to the addon (just add a plane, add anew UVMap, assign a texture to it, and you'll get it aligned in wrong direction). Will see how to fix this.
Bastien Montagne removed their assignment 2013-11-28 17:10:10 +01:00
Campbell Barton was assigned by Bastien Montagne 2013-11-28 17:10:10 +01:00

Added subscriber: @mont29

Added subscriber: @mont29

Actually, would rather avoid messing again things here, so will let Campbell figure out a proper solution (99% sure the issue comes from order of verts, it has changed in this aa3c06b41 commit).

Actually, would rather avoid messing again things here, so will let Campbell figure out a proper solution (99% sure the issue comes from order of verts, it has changed in this aa3c06b41 commit).
Member

Sorry Bastien, I spoke too soon... (found out too late that aa3c06b41 was affecting primitive_plane_add() as well...)

Sorry Bastien, I spoke too soon... (found out too late that aa3c06b41 was affecting primitive_plane_add() as well...)

fixed aa3933b411

fixed aa3933b411

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' 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
4 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#37649
No description provided.