gigaherz / lcd3x

LCD3x is an image filter that simulates the aspect of an LCD screen while at the same time increasing the size of the source image.
Other
7 stars 2 forks source link

Unexpected behaviour using lcd3x #3

Open ewitt7u0 opened 3 years ago

ewitt7u0 commented 3 years ago

Hi! I noticed a strange effect on my rg351p using the lcd3x shader. When I apply the shader there is a gradient or line going from the bottom of the LCD to the top. The line divides the screen in a slightly brighter and darker area. I noticed this effect only with the lcd3x shader. Moreover I cannot screenshot the effect using GPU Screenshots so I made two photos. pic1 pic2

ITotalJustice commented 6 months ago

i'm 3 years late, but here we go 😄


the reason this happens is due to the screen resolution not being a multiple of 3. the 3x in lcd3x means the image is up-scaled by 3, which is 720x480.

your device screen resolution is 480x320, which is exactly 2x of the gba screen.

because the scaled image does not fit, it is scaled down to fit, which is where those artefacts come into play.

the solution to this is to use a shader that only scales by 2x.