Pixel Perfect Games & Jitter #180
Replies: 1 comment 1 reply
-
Closing because I was experimenting a bit more since this, and disabled v-sync in my project settings, which eliminated 90% of the jitter. Apologies for cluttering the discussion board! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
First off, this plugin is wonderful, and I can't wait to begin utilizing it to the fullest. But that's also where my problem lies. I know how to set up Phantom Camera, but what are the best practices for doing so? I've made two different implementations with different problems for each.
For both test implementations, the following properties are set:
pixel_perfect
set totrue
follow_mode
set to Framedlimit_node_target
is assigned to a large CollisionShape2D for the test roomTYPE A: Autoloader/Remote Camera
Godot_v4.2-stable_mono_win64_MLCJDWlHPO.mp4
In the video I attached, the camera used here exists on an Autoloader named CameraManager. The node setup is as follows:
As you can see, the player node is set to be the follow target. However, even with
pixel_perfect
enabled, I experience jitter when the camera moves.TYPE B: Child Camera
Godot_v4.2-stable_mono_win64_dwhO5oH0pD.mp4
The camera lives as a child of the Player node.
Whether or not I set the follow target is irrelevant, as the camera moves with the player anyway as a child object.
ISSUES
The Autoloader solution is best for controlling my cameras from a central location, and that's ultimately easier for me. However, the pixel perfect property isn't enough to offset the strange jitter I'm running into. I've been having this issue with Godot's regular cameras for some time and haven't found a solution after a lot of research.
The child camera is a direct solution that, paired with pixel perfect, gives me that smooth motion. The downside is that it basically forces me into a glued follow mode, cannot be controlled globally like the Autoloader, and is generally more cumbersome to deal with.
I suspect the problem lies outside of PhantomCamera when it comes to the jitter issue, but given that I've exhausted just about every other help forum when it comes to cameras, I figure I'd ask here if I missed anything.
Thank you again!
Beta Was this translation helpful? Give feedback.
All reactions