gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Graphics > zoom on hardware

#3819 - blindfold - Sun Mar 09, 2003 8:59 pm

Hi.

How the zooming works on a hardware? I mean is it simple pixel resize, or something more complex (bilinear, bicubic ?).
I dont have a hardware(to check it), but in my game I want to scale background and just wonder how many pixels do I lose....

Thanx

#3823 - DekuTree64 - Mon Mar 10, 2003 12:43 am

You know how MS Paint kind of just cuts out some pixels, or repeats some to scale things? It's like that. Not very pretty, but at least it's done by hardware. And actually it usually looks perfectly fine on such a small screen.

#3846 - blindfold - Mon Mar 10, 2003 3:18 pm

... so it's just a pixel resize?
when I put a horizontal line, I just miss it during zooming?

#4620 - Sweex - Sat Apr 05, 2003 2:39 am

Yep, that's pretty much it! What you can do however to improve quality a bit is to use a large sprite/map and only shrink it. You still don't have nice (ie. bilinear) filtering, but at least you don't get the blocky pixels!

(Offcourse, it does take up more VRAM!)