Maniphest T48034

Background image offset Y depends on image aspect ratio
Closed, ResolvedTO DO

Assigned To
None
Authored By
domlysz (domlysz)
Apr 2 2016, 7:11 PM
Tags
  • BF Blender
Subscribers
Campbell Barton (campbellbarton)
domlysz (domlysz)
Philipp Oeser (lichtwerk)

Description

Blender Version
2.76

Short description of error
It seems background image offset Y doesn't work as expected.

Exact steps for others to reproduce the error
Create a new rectangular image, for example 400x600 pixels
Add it to view 3d as background image
Set size to 4, so width will represents 4 units and height 6 units
Set Y offset to 2, the image will be shifted to 3 because aspect ratio is 1.5. To get a shift of 2 units we need to set Y offset to 1.3333

Revisions and Commits

Abandoned
rB Blender

Event Timeline

domlysz (domlysz) created this task.Apr 2 2016, 7:11 PM
domlysz (domlysz) raised the priority of this task from to 90.
domlysz (domlysz) updated the task description.
domlysz (domlysz) added a project: BF Blender.
domlysz (domlysz) edited a custom field.
domlysz (domlysz) added a subscriber: domlysz (domlysz).
Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to 50.Apr 2 2016, 10:08 PM
Philipp Oeser (lichtwerk) added a revision: D1893: fix T48034.
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).

possible fix D1893?

Campbell Barton (campbellbarton) added a subscriber: Campbell Barton (campbellbarton).Apr 4 2016, 1:04 AM

Current code works as intended, changing will break files, this is more of a TODO.

Campbell Barton (campbellbarton) edited a custom field.Apr 4 2016, 1:05 AM
domlysz (domlysz) added a comment.Apr 19 2016, 4:01 PM

Not directly linked but I've also noticed that in Blender 2.74 and prior with a background image size set to 1 the image width represents 2 units but since v2.75 a size of 1 gives an image width of 1 units. I think it's better but can't find any information about this change and it also broke files or addons.

Will merge this in favor of the more recent T71256 (since the new task reflects the changes in background images...)

Campbell Barton (campbellbarton) changed the task status from Duplicate to Resolved by committing rB4fec2b066045: Fix T48034: Camera image offsets were scaled by image aspect.Nov 1 2019, 11:10 PM
Campbell Barton (campbellbarton) added a commit: rB4fec2b066045: Fix T48034: Camera image offsets were scaled by image aspect.