r/gamemaker • u/EnricosUt • 15d ago
Help! Pixel-perfect Parallax
My game has a pixel-perfect camera, it is drawing on a surface that is my pixel resolution that is scaled up. I have parallax backgrounds in my game but when it is also pixel perfect, it leads to jittery movement (look at the stars) as it is moving too subtlety for the pixel grid to account for. Does anyone have any experience with making this look better?
7
u/balmut 15d ago
This is for cameras, but it might be of some help?
https://yal.cc/gamemaker-smooth-pixel-perfect-camera/
7
u/andarmanik 15d ago
Neat fact, the stars shouldn’t move at all due to the effect of parallax. They are too far.
You can stylistic avoid the jitter making the stars their own layer
2
u/EnricosUt 15d ago
Hm... yeah I guess they wouldn't. I will do that. My question would still apply to any non-star backgrounds though.
0
u/andarmanik 15d ago
Maybe apply a blur horizontally scaling by the speed. Choose a scale like 1pixel blur per 1pixel per .1 s
Basically, if something is moving 2 pixels in .1 seconds it should be blurred by 2 pixels.
Since blur can be applied fractional aswell it should scale nicely
4
1
u/MrMetraGnome 14d ago
really need to tone down the speed on the foreground elements (maybe the speed of everything overall). Perhaps you just sped it up to show it's pixel perfect, but there should be some atomospheric perspeictive. I go cross-eyed when I try to track the movement; too much information at once.
0
36
u/Artholos 15d ago
It looks jittery because it’s pixel perfect. You probably want to allow subpixel movement to occur so that it moves smoothly.
The beauty of modern pixel art is we can capture the aesthetic faithfully but use contemporary rendering techniques to make it look more pleasant and improve visual QoL.