Developer postOriginal post (opens in a new tab)

New build on OpenBeta - camera fixes

Hi all,

We set Skiffy free in amongst the codebase and he's come up with something.
This is what he said:
Ska-Skee Skeeee

That wasn't particularly helpful, so we went and had a look at what he did in the code.
Turns out that...

Camera state transitions when you enter and exit a camera override region are now improved.
There are three major components to the improvements.

  • When transitioning between two “Side Scroll Camera” states (the most common transition type by far), instead of blending the resulting camera state the code now remains in the one state and instead blends the state parameters.
  • For the remaining state transitions, transitions between different states when entering an override are now performed as a cosine blend, instead of a linear blend. (Looks the code used to attempt something overly complex with springs before switching to linear.)
  • The camera code now maintains a running approximation of the camera’s velocity. When a state blend is performed, the old ‘from’ state is extrapolated based on the velocity when the state changed rather than being a fixes position.

Long story short, these changes fix the *CLUNK* the camera would experience when entering and existing the camera override regions.

So yeah - check it out on OpenBeta and let us know what your thoughts are on it. We think it's pretty cool.

Cheers
Linds