crt filter for XP?

so i was messing around with shaderglass (a crt filter tool) and figured out my game looks really good with a crt filter



so I was just wondering if anyone knows of a way to have filters like this implemented into the game itself.

Looks like RPG Maker XP’s runtime (RGSS1) doesn’t support shaders, so I don’t think there’s a way to build something like ShaderGlass into the game itself.

What I’d probably try is faking part of the look with an overlay. Make a 640x480 PNG with your scanlines and maybe a soft dark vignette around the edges, drop it in Graphics/Pictures, then add these lines in Main right above $scene = Scene_Title.new:

$crt_overlay = Sprite.new
$crt_overlay.bitmap = Bitmap.new("Graphics/Pictures/crt_overlay")
$crt_overlay.z = 9999

Since nothing disposes it, I think it should stay on top through every scene. It won’t give you the curved screen or the glow that ShaderGlass adds, but the scanlines might get you a lot of the way there.

For scanlines, I recommend starting by placing thin black lines every other pixel (drawing one line and skipping one) with a low opacity of around 20–25% (approximately 60 on a 0–255 scale) to make adjustment easier. You can also generate the image via script without preparing one externally.

bmp = Bitmap.new(640, 480)
color = Color.new(0, 0, 0, 60)
240.times { |i| bmp.fill_rect(0, i * 2 + 1, 640, 1, color) }
$crt_overlay = Sprite.new
$crt_overlay.bitmap = bmp
$crt_overlay.z = 9999

If you place this code just before $scene = Scene_Title.new, it will appear on top of all scenes.

Note that while this won’t reproduce screen curvature or glow effects, scanlines alone can significantly enhance the atmosphere.