Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to gently fade chaperone to disabled below a certain height #622

Merged
merged 6 commits into from
May 17, 2023

Conversation

feilen
Copy link
Contributor

@feilen feilen commented Apr 5, 2023

Wow, I found time to finish it!

When I play VR for extended periods, I usually play in one of two ways - standing up or sitting down, either on the floor or on nearby furniture. The furniture presents a problem though, as I usually have to go and disable my chaperone manually when sitting to have a good experience, then re-enable it manually when standing up again.

These changes add a simple feature - when the user's head ducks below a (configurable) height for more than 5 seconds, slowly fade the chaperone distance (originally opacity, but that didn't work) down to 0.0f, effectively disabling it.

Since this feature conflicts with the disable and fadedistance features, they're disabled in the UI when it's enabled. The fadedistance when 'standing' is hard-coded to 0.4f for now.

Useful for setups in which you have a seat just outside your VR space,
or like to sit in the middle of your space for any amount of time. Will
fade out the boundaries to 0% opacity over 5 seconds, 5 seconds after
you sit down. Standing back up to the configured height will make them
pop back in immediately.

Can be found under Chaperone -> Additional Settings.
@feilen feilen requested review from Kung-vr and ykeara April 5, 2023 02:58
@feilen
Copy link
Contributor Author

feilen commented Apr 13, 2023

Noting here before I forget - this is in device coordinates (which includes offsets) so it'll be affected by space drag. Need to adjust that!

ykeara added 3 commits April 18, 2023 13:03
* stop crashing on HMD Init Errors, as well as bypass force quit on all steamvr Init Errors

* add qtc clang to gitignore

* add app volume adjustment

* adjust app volume placement in menu

* fix type error
@ykeara ykeara merged commit 1cfd9ff into master May 17, 2023
@ykeara ykeara deleted the fade_out_chaperone branch October 9, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants