Scaling in global axis does not work correctly if the object has rotation #42834

Closed
opened 2014-12-08 01:53:36 +01:00 by Carlo Andreacchio · 19 comments

System Information
Windows 7 x64 gtx 580

Blender Version
Broken: c8995ec

Short description of error
If the object has a rotation, global scaling does not work correctly

Exact steps for others to reproduce the error
step 1 : open attached blend file
step 2 : press s, y, -1 (scale global y by -1)
step 3 : notice how the empty scales correctly but the object does not.
scalebug.blend

**System Information** Windows 7 x64 gtx 580 **Blender Version** Broken: c8995ec **Short description of error** If the object has a rotation, global scaling does not work correctly **Exact steps for others to reproduce the error** step 1 : open attached blend file step 2 : press s, y, -1 (scale global y by -1) step 3 : notice how the empty scales correctly but the object does not. [scalebug.blend](https://archive.blender.org/developer/F130243/scalebug.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @candreacchio

Added subscriber: @candreacchio

If you are scaling around a point... it puts it into the correct position, but not correct rotation (same procedure here)
scalebug-2.blend

If you are scaling around a point... it puts it into the correct position, but not correct rotation (same procedure here) [scalebug-2.blend](https://archive.blender.org/developer/F130244/scalebug-2.blend)
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Julian Eisel self-assigned this 2014-12-08 14:55:37 +01:00
Member

Hey @candreacchio,
It seems to me that everything works as expected. All you need to do is apply the rotation before. I might be wrong here, so if you can prove it should work differently, feel free to reopen

Anyway, thanks for the report but no bug here (I think) :)

Hey @candreacchio, It seems to me that everything works as expected. All you need to do is apply the rotation before. I might be wrong here, so if you can prove it should work differently, feel free to reopen Anyway, thanks for the report but no bug here (I think) :)

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel

Hi @JulianEisel,

I think that this is a bug, as the object is clearly not scaled correctly. Applying the rotations should not be needed, and would be counter productive as we are heavily rely on instancing and keeping the local space logical. That way if there is a change needed later on it is simple to change all of the objects linked to it.

I have made a quick example... imagine this is a house... those are all windows, i have put the cursor at the point I want to scale from... pressing s, x, -1, will not have the correct rotations of the windows.

I cannot apply the rotations because then i would lose the instancing, where I can edit the mesh later easily and apply it over all of the objects, (say i get feedback from the client to make all the window frames thicker).

scalebug-2.blend

Hi @JulianEisel, I think that this is a bug, as the object is clearly not scaled correctly. Applying the rotations should not be needed, and would be counter productive as we are heavily rely on instancing and keeping the local space logical. That way if there is a change needed later on it is simple to change all of the objects linked to it. I have made a quick example... imagine this is a house... those are all windows, i have put the cursor at the point I want to scale from... pressing s, x, -1, will not have the correct rotations of the windows. I cannot apply the rotations because then i would lose the instancing, where I can edit the mesh later easily and apply it over all of the objects, (say i get feedback from the client to make all the window frames thicker). [scalebug-2.blend](https://archive.blender.org/developer/F130244/scalebug-2.blend)

I apologize, I attached the wrong blend file above, Please find on this comment the correct blend file example
scalebug-3.blend

I apologize, I attached the wrong blend file above, Please find on this comment the correct blend file example [scalebug-3.blend](https://archive.blender.org/developer/F130371/scalebug-3.blend)
Julian Eisel removed their assignment 2014-12-08 23:42:11 +01:00
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Member

Okay, so just ignore my comment :D
@ideasman42, do you know what's up here? Bug or not?

Okay, so just ignore my comment :D @ideasman42, do you know what's up here? Bug or not?

Just wondering if there has been any progress / update to this bug report?

Just wondering if there has been any progress / update to this bug report?

Just wondering if this is something that has been looked at yet whether it is a bug or intended to work that way?

Just wondering if this is something that has been looked at yet whether it is a bug or intended to work that way?

Quick note, I didnt look into this in detail, but wouldnt attempt a fix for 2.74 unless its really obviously some silly mistake in the code (but doubt that since this code wasnt touched recently).


This area is really a can of worms & not necessarily any reasonable solution.

see: #29633, #42444, 88cc1a786b


Said, differently, its worth looking into a fix for sure, but conclusion may be there is no good way to fix (or a fix would involve having some different transform system).

Just word of warning because a quick fix here is likely to break something else.

Quick note, I didnt look into this in detail, but wouldnt attempt a fix for 2.74 unless its really obviously some silly mistake in the code (but doubt that since this code wasnt touched recently). ---- This area is really a can of worms & not necessarily any reasonable solution. see: #29633, #42444, 88cc1a786b ---- Said, differently, its worth looking into a fix for sure, but conclusion may be there is no good way to fix *(or a fix would involve having some different transform system)*. Just word of warning because a quick fix here is likely to break something else.

Added subscriber: @Kinetica

Added subscriber: @Kinetica

This comment was removed by @Kinetica

*This comment was removed by @Kinetica*
Looks like it works as expected check this link: http://blender.stackexchange.com/questions/28778/hexagon-is-distorting-on-x-axis-when-scaling-on-y-globally

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Campbell Barton self-assigned this 2015-09-11 15:44:56 +02:00

Looked into the code again and think this this can be closed as a known limit.

This report compares scaling on a single axis, to scaling a rotated object which isn't equivalent.

Looked into the code again and think this this can be closed as a known limit. This report compares scaling on a single axis, to scaling a rotated object which isn't equivalent.
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#42834
No description provided.