kinsi55 / CS_BeatSaber_Camera2

Adds a lot of options / tools for creating more advanced desktop viewing experiences with multiple camera angles and much more in Beat Saber
MIT License
122 stars 17 forks source link

Threshold for HMD Rotation. #123

Open Guide2444 opened 1 month ago

Guide2444 commented 1 month ago

Hello! I'd like to request a feature for the camera2 mod. Whilst playing the game, I have this tendency to kind of, look slightly to the left, by about 5-10 degrees. This obviously isn't usually a problem at all, but I've also recently gotten into making short-form content for Beatsaber, and this is where I'm having a problem. When exporting a finished video, I export it vertically for mobile resolution (1080x1920, 9:16 aspect ratio), and due to this slight left head turn, all of the content is at the very right hand side of the screen due to the tight view in the middle of the recording. So, my feature request is this:

Add some kind of "Threshold" system for rotation, where, if the HMD's vertical (Z axis) rotation is within a certain threshold, the camera is either forced or optionally is at least nudged back towards facing directly forward. This system will allow me (or anyone else utilizing this feature) to still be able to look around, behind, above, and to the sides unrestricted, whilst also making the gameplay more centred on the screen. Below, I have attached a picture of the issue I was talking about before of the gameplay being at the very right hand side of the screen.

image

Notice how the "gameplay" is off centre and the right saber is barely visible compared to the left saber. Ideally, I'd love for a non-intrusive method to re-centre my camera to face forwards. Fixing this issue.

kinsi55 commented 1 month ago

Hi, this is already possible, it just happens to not be exposed in the ingame UI

If you edit the config file of your camera, you can use the targetRot option to offset the look direction of the camera compared to what it would normally be.

Additionally, you can use Smoothfollow > limits to constrain the range the camera can rotate if you want to do that