How does upscaling an image works?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dastan

So I’ve been working in my first game in the 2D part of the engine and I’m using an 3840x2160 image but the project base size is 1920x1080 so I scaled it down to fit the 1920x1080 screen of the project.

Now what would happen if a 3840x2160 monitor user plays my game? Would he experience some loss in quality? If that is correct, why is that if the original image size is 3840x2160? It will scale it up from the 1920x1080 version of the image I did using the scale thing to fit the project base size?

:bust_in_silhouette: Reply From: jgodfrey

I’m not sure I understand all the subtleties of your question, but to the general question of does making an image larger cause quality loss - the answer is generally “yes, it does”.

When you make an image larger, you’re introducing new pixels that don’t exist in the original, smaller image. And, since those pixels didn’t exist originally, there’s no way to know what their values should be. Essentially, there are a number of methods available that attempt to “guess” appropriate values for the new pixels based on existing pixels from the same area of the image. These are known as “interpolation” methods. Each comes with its own set of advantages / disadvantages, but they generally work on a speed vs quality scale.