Jagged Graphics

From kJams Wiki
Revision as of 19:10, 22 July 2009 by Dave (talk | contribs) (New page: Why are the graphics jagged? It's because the text and graphics are actually bitmaps, they're not "fonts" actually, they're made of pixels. The dimensions of CD+G graphics are 300 x 216....)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Why are the graphics jagged?

It's because the text and graphics are actually bitmaps, they're not "fonts" actually, they're made of pixels. The dimensions of CD+G graphics are 300 x 216. You'll notice that's very, very small. Now, when you display this on a "Standard Def" TV, the pixels are doubled so you get 600 x 432, but it still looks pretty good. The "problem" is when you view the graphics on a computer monitor or HDTV where you've got orders of magnitude more pixels to go around. Your original graphic is 300 x 216, so you have to STRETCH that to fill in more pixels. You know what happens when you zoom in to pixels? You get jaggies. Now I *could* do a bicubic smoothing on them, but that will only look marginally better:
bicubic_smooth.png
Eventually I'll turn on smoothing but right now it's a performance loss for many people, that is why it is off by default.