keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

odd camera zoom-in/zoom-out when switching between standard view and forced perspective with delta time enabled

Open Whurrhurr opened this issue 1 year ago • 6 comments

title.

https://github.com/user-attachments/assets/66d92254-3a03-4648-b480-74eb63a4007a

going from standard > forced makes the camera start zoomed all the way out before zooming back in to the zoom level you had it at. going from forced > standard makes the camera start zoomed all the way in before zooming back out to the zoom level you had it at. originally switching between the two views was mostly seamless, now it feels jarring with the sudden zoom-in/zoom-out.

Whurrhurr avatar Aug 10 '24 14:08 Whurrhurr

True, I find it annoying too since I switch a lot for testing, but I never prioritized it because I am assuming regular player switch just the once.

I believe the behavior is similar to the original game, but a whole lot more jarring because we can zoom out so much more now than before.

Loobinex avatar Aug 10 '24 16:08 Loobinex

I believe the behavior is similar to the original game, but a whole lot more jarring because we can zoom out so much more now than before.

behavior is not similar to the original game if you have delta time enabled.

original game:

https://github.com/user-attachments/assets/c268f84d-57c1-4537-9de3-11608c645aa4

KeeperFX with delta-time disabled:

https://github.com/user-attachments/assets/04892d5c-a689-424a-a6a9-d79f9e7db682

the camera also has other issues when delta-time is enabled, like getting into position, and then "moving" an extremely small amount.

Whurrhurr avatar Aug 14 '24 21:08 Whurrhurr

@Whurrhurr sorry, i do not understand what you want me to see in those videos?

Loobinex avatar Aug 14 '24 22:08 Loobinex

@Whurrhurr sorry, i do not understand what you want me to see in those videos?

that switching between standard view and forced perspective in keeperFX with delta time disabled behaves the same as the original game, the video in the initial post of the issue is the unintended behavior when you have delta time enabled. switching between views with delta time enabled should be similar to switching views with delta time disabled (eg, view switches and camera zoom level all happen in a single frame)

Whurrhurr avatar Aug 14 '24 22:08 Whurrhurr

though the proper fix for this would be to remember the zoom level you had at the previous view you're switching off of and zoom in/out to the zoom level you last had when switching from standard view > forced perspective and vice versa.

Whurrhurr avatar Aug 17 '24 05:08 Whurrhurr

though the proper fix for this would be to remember the zoom level you had at the previous view you're switching off of and zoom in/out to the zoom level you last had when switching from standard view > forced perspective and vice versa.

Or better yet, maintain the zoom level you have. It maintains the under the hood value for zooming now, but for some reason the zoom values completely different between straight and normal view. I believe they even have it in an opposite direction. (So in one view, small numbers mean zoomed in, and in another view, small numbers mean zoomed out.)

Loobinex avatar Aug 18 '24 21:08 Loobinex