About Store Forum Documentation Contact



Post Reply 
Flickering Player when trying to do Camera Smoothing
Author Message
KrysleQuinsen Offline
Member

Post: #1
Flickering Player when trying to do Camera Smoothing
I had this flickering issue for such a long time but haven't got to ask or find the solution on my own.

When trying to make the camera smooth its position movement it makes the object, usually the Player object which the camera attached to start flickering when moving, if that makes sense.

Easily reproduce with Camera Collision tutorial by changing this line

desired_camera.at =Players[0].ctrl.center();

to

AdjustValTime(desired_camera.at, Players[0].ctrl.center(), 0.001);

moving with strafe is most noticeable.

Any insight on how to fix this? possibly with both motion blur on and off.
07-08-2024 01:54 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Flickering Player when trying to do Camera Smoothing
inside Init(), you can do
if(int freq=D.freq())Physics.precision(freq);else Physics.timestep(PHYS_TIMESTEP_VARIABLE);

or just:
Physics.timestep(PHYS_TIMESTEP_VARIABLE);

Just an example.
07-08-2024 03:15 PM
Find all posts by this user Quote this message in a reply
KrysleQuinsen Offline
Member

Post: #3
RE: Flickering Player when trying to do Camera Smoothing
Thank you, I wouldn't have thought it was related to Physics.
07-08-2024 05:02 PM
Find all posts by this user Quote this message in a reply
Post Reply