Login
Back to forumSee the full topicGo to last reply

Posted By

Murphy
on 2023-11-23
14:49:34
 Re: Subpixel "rendering" CRT

@gerliczer It's plain subpixel sprite rendering, where your source graphic is larger than the area you're rendering it to. In an 8 bit friendly way, the source area is 2x, 4x or 8x the size you want to render it.

For a simple square image with a horizontally moving subpixel scroll, the width of the source graphic is twice its height.

You can preprocess the double wide graphics into two square graphics. The first graphic contains the even columns of the source graphic, and the second contains the odd columns.

If you want to draw your graphic aligned to the pixel grid, you draw the first one, if you want to offset it by a half pixel, you draw the second one.

This optically shifts your graphic by a half pixel. Add to this the HW scrolling every 2 frames and the end result looks like a higher resolution than the actual pixel grid.



Back to top


Copyright © Plus/4 World Team, 2001-2024