Image Empty: Wrong aspect ratio if Texture Size Limit is used #65812
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#65812
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10 64 bit
Graphics card: Nvidia GTX 750 Ti
Blender Version
Broken: blender-2.80.0-git.81b68f7279cd-windows64
Working: 2.79
Short description of error
Reference Images have the wrong aspect ratio, if the Limit Size in the user preferences is set lower than the longest side of the image.
Exact steps for others to reproduce the error
LimitTextureSize.blend
Set the Limit Size in the user preferences, under Viewport > Textures to a value greater or less than 1024.
With values greater or equal to 1024, the reference image is rectangular.
With values less than 1024 the image becomes square.
Optionally, file working in Blender 2.79
texture-size-limit.blend
Added subscriber: @Foaly
Reference Image Aspect Ratio Wrong If Texture Size Limit Is Usedto Image Empty: Wrong aspect ratio if Texture Size Limit is usedAdded subscriber: @dfelinto
Confirmed. And in 2.79 it was working fine.
Actually although 2.79 doesn't have this issue, it is clearly not reducing the texture limit, which is why this works.
Added subscriber: @ideasman42
@ideasman42 we have a problem here.
Manually reverting
9e82499d2d
(i.e., P1005) would fix this, but the original bug (#59347) comes back.It's not great that we cant access the size of a loaded texture without freeing the previously loaded textures.
AFAICS supporting this would mean larger changes to the image API.
Looked into storing the original size of the GPUTexture before it's clamped.
Here are two patches that do this, I'm thinking the first one is probably better since:
It doesn't store more data in DNA.
It doesn't risk values becoming out-of-sync.
P1006: #65812 possible fix (store original size in the GPUTexture)
First patch seems less intrusive as well +1 for it imho.
This issue was referenced by
a699a9680b
Changed status from 'Open' to: 'Resolved'