Skip to content

Commit

Permalink
571 (#628)
Browse files Browse the repository at this point in the history
* Option to fade out chaperone when HMD goes below a configured height

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.

* Update format.sh to require clang-format v10

* Use fade distance instead of opacity, opacity inconsistently applied

* Bugfixes (#624)

* 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

* update version string, prevent us from exiting when interface reported bad

---------

Co-authored-by: Chelsea Jaggi <feilen1000@gmail.com>
  • Loading branch information
ykeara and feilen authored May 18, 2023
1 parent 1cfd9ff commit b3c3659
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build_scripts/compile_version_string.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7.0-release
5.7.1-release
24 changes: 16 additions & 8 deletions src/openvr/openvr_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,22 @@ void initializeOpenVR( const OpenVrInitializationType initType )
// Specific error messages are unlikely to be necessary since both the type
// and version are in the string and will be output.
auto reportVersionError = []( const char* const interfaceAndVersion ) {
QMessageBox::critical(
nullptr,
"OpenVR Advanced Settings Overlay",
"OpenVR version is too outdated. Please update OpenVR." );
throw std::runtime_error(
std::string( "OpenVR version is too outdated: Interface version " )
+ std::string( interfaceAndVersion )
+ std::string( " not found." ) );
// 5.7.1
// Stop behavior from exiting out, again seems to be related to some
// sort of race condition in non-native Headsets (i.e. not lighthouse)

// QMessageBox::critical(
// nullptr,
// "OpenVR Advanced Settings Overlay",
// "OpenVR version is too outdated. Please update OpenVR." );

LOG( WARNING ) << "OpenVR version is invalid: Interface version "
<< interfaceAndVersion << " not found.";
// throw std::runtime_error(
// std::string( "OpenVR version is too outdated: Interface
// version " )
// + std::string( interfaceAndVersion )
// + std::string( " not found." ) );
};

// Check whether OpenVR is too outdated
Expand Down

0 comments on commit b3c3659

Please sign in to comment.