Scale and Transform nodes don't interpolate when scaling images down #35050

Closed
opened 2013-04-21 21:59:33 +02:00 by Paul R · 12 comments

%%%--- Operating System, Graphics card ---
Linux SuSE 12.2 (x86_64)
NVidia GTX560ti (official driver)

- Blender version with error, and version that worked ---

latest buildbot binaries 2.66.6 (r56187) and at least as far back as 2.62 (r44136)

- Short description of error ---

The Scale and Transform nodes don't interpolate when scaling images down (particularly noticeable using a scale value less than 0.5). Effect is most noticeable on sharp, high res images.

- Steps for others to reproduce the error (preferably based on attached .blend file) ---

Use either Render Layers or Image node as a source and route through Scale or Transform node reducing the size by 0.2%%%

%%%--- Operating System, Graphics card --- Linux SuSE 12.2 (x86_64) NVidia GTX560ti (official driver) - Blender version with error, and version that worked --- latest buildbot binaries 2.66.6 (r56187) and at least as far back as 2.62 (r44136) - Short description of error --- The Scale and Transform nodes don't interpolate when scaling images down (particularly noticeable using a scale value less than 0.5). Effect is most noticeable on sharp, high res images. - Steps for others to reproduce the error (preferably based on attached .blend file) --- Use either Render Layers or Image node as a source and route through Scale or Transform node reducing the size by 0.2%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

%%%Just to the note -- Transform node will do exactly the same crappyness, unfortunately :(%%%

%%%Just to the note -- Transform node will do exactly the same crappyness, unfortunately :(%%%

%%%The bilinear or bicubic interpolation used here is never going to give good result scaling so much, the filter size is too small for that. Something like mipmapping or EWA filtering is needed here.%%%

%%%The bilinear or bicubic interpolation used here is never going to give good result scaling so much, the filter size is too small for that. Something like mipmapping or EWA filtering is needed here.%%%
Member

%%%The compositor already has EWA filtering (implemented for the UV mapping) this could be implemented for other nodes etc. The downside of this is that scale/rotate etc will become 'complex nodes' and loosing a lot of the functionalities that the simple nodes have. And those features (composite outside screen area) were developed for the scale/rotate nodes.

We could also adjust the current node interface to add the deltax, deltay that is needed for the EWA filtering so that every node can handle this kind of filtering. but it will slow down the system a bit. This would be a better option, but IMO clearly a todo/feature request.

%%%

%%%The compositor already has EWA filtering (implemented for the UV mapping) this could be implemented for other nodes etc. The downside of this is that scale/rotate etc will become 'complex nodes' and loosing a lot of the functionalities that the simple nodes have. And those features (composite outside screen area) were developed for the scale/rotate nodes. We could also adjust the current node interface to add the deltax, deltay that is needed for the EWA filtering so that every node can handle this kind of filtering. but it will slow down the system a bit. This would be a better option, but IMO clearly a todo/feature request. %%%
Author

%%%If GIMP gives better results when set to linear scaling, doesn't it suggest a specific issue with Blender's implementation?

A quick workaround; use a Tent Blur node before either the scale/transform and a bit of math to pre-blur the image inversely proportional to the scale amount;

Scale Blur
1.0 1.0
0.5 2.0
0.25 4.0
see prefilter_before_scale.png attachment%%%

%%%If GIMP gives better results when set to linear scaling, doesn't it suggest a specific issue with Blender's implementation? A quick workaround; use a Tent Blur node before either the scale/transform and a bit of math to pre-blur the image inversely proportional to the scale amount; Scale Blur 1.0 1.0 0.5 2.0 0.25 4.0 see prefilter_before_scale.png attachment%%%
Author

%%%http://www.pasteall.org/pic/49931%%%

%%%http://www.pasteall.org/pic/49931%%%
Member

%%%Moved from Blender 2.6 Bug Tracker to Todo%%%

%%%Moved from Blender 2.6 Bug Tracker to Todo%%%
Member

%%%Will move this item to todo tracker as a new algorithm needs to be investigated. We think that having a feature like this is useful.

Thanks for showing this!
Regards,
At Mind
%%%

%%%Will move this item to todo tracker as a new algorithm needs to be investigated. We think that having a feature like this is useful. Thanks for showing this! Regards, At Mind %%%

Added subscribers: @Jeroen-Bakker, @troy_s

Added subscribers: @Jeroen-Bakker, @troy_s

@Jeroen-Bakker any chance we can revisit this and implement the cubic prefilter approach? It is likely one of the best in breed for pixel manipulations given it doesn't overshoot nor undershoot, and delivers stable math on the output.

@Jeroen-Bakker any chance we can revisit this and implement the cubic prefilter approach? It is likely one of the best in breed for pixel manipulations given it doesn't overshoot nor undershoot, and delivers stable math on the output.

11 years later and this issue is still there - there is no decent filtering to rescale images (in transform or scale nodes) in Blender compositor, making it virtually useless for any form of basic compositing. Sorry, but this is a basic requirement. I do not know why this issue was closed. Even rotating a layer results in massive aliased unfiltered lines.

11 years later and this issue is still there - there is no decent filtering to rescale images (in transform or scale nodes) in Blender compositor, making it virtually useless for any form of basic compositing. Sorry, but this is a basic requirement. I do not know why this issue was closed. Even rotating a layer results in massive aliased unfiltered lines.
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
7 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#35050
No description provided.