odd camera zoom-in/zoom-out when switching between standard view and forced perspective with delta time enabled
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.
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.
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 sorry, i do not understand what you want me to see in those videos?
@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)
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.
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.)