How I fixed Pixel Snapping / Jitter in my game using a subpixel camera to achieve smooth pixel perfect movement.
Access my Subpixel Camera files by supporting me ❤️
https://www.patreon.com/c/barrysdevhell/posts
Join my Discord server!
https://discord.gg/NgRZBAYMBP
Buy me a coffee ☕
https://ko-fi.com/barrysdevhell
Business Email ✉
barry@devhellstudios.com
Aarthificial video – https://www.youtube.com/watch?v=jguyR4yJb1M&t=30s
Picster video – https://www.youtube.com/watch?v=zxVQsi9wnw8
00:00 The Problem
00:41 My Game
01:18 True Pixel Art
02:53 Imperfect Pixel Art
03:40 The Cause
05:36 The Struggle
07:33 The Fix
source
43 comments
Good video though, cool
Thanks for sharing
One camera has the render texture and is your main camera, follows the character, etc.
The other camera is looking at the quad, and is actually what the player sees.
Then you can use similar shader logic to the shader on the quad's material in the same way as the viewport shader in Godot.
I'm not familiar with Godot, I've never used it, but I kinda want to test this out now.
I also think it's a bit disingenuous to call it "imperfect" pixel art. I'd rather refer to the styles as true pixel art, and simulated pixel art.
Same as I don’t like to much smooth gradients and lighting when then other objects has less shades. It’s for me resulting in a bad art style.
If pixel art games that runs higher res than their core art want to have it smoother they would have done it easily
I was thinking on how Katana Zero deals with this. I was thinking that it usually looks smooth, but damn I noticed it after some random movements, even though you don't usually see complex backgrounds in that game.
its just a stylistic choice, nowhere near a "problem"
Since the camera information is sub pixel this should work, no? The first cam renderes the scene and scales the image down, which causes all the assets to align to the pixel grid and unifies the pixel presentation. But after scaling it back up, which means we could "display" the image at a higher resolution. But instead of doing that we have a second camera that mimmicks the position of the first camera but is able to "pan and scan" across the now upscaled pixel art. And that image we use to display to the player. Sure, we now render twice, which could be seen as "expensive" but the second time it's literally just an offset of the frame buffer, which should be virtually free.
Go to Settings to activate Windows.
Or just use Linux instead.
Comments are closed.
Add Comment