KrysleQuinsen
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
KrysleQuinsen
Member
|
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 |
|