Skip to content

Commit

Permalink
5.7.4 (#642)
Browse files Browse the repository at this point in the history
* update openvr 1.26.7

* ignore chaperone play area error, as it should not effect chaperone, and it frequently occurs with some meta to pcvr configurations

* replace old seated origin call with new reset zero pose call

* change zero offsets to new command

* adjust camera settings to new version of openvr 1.27

* fix save error

* increment version 5.7.4
  • Loading branch information
ykeara authored Oct 9, 2023
1 parent 67fb57a commit 54d22a4
Show file tree
Hide file tree
Showing 38 changed files with 1,453 additions and 18,094 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.3-release
5.7.4-release
2 changes: 1 addition & 1 deletion src/overlaycontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ void OverlayController::mainEventLoop()
case vr::VREvent_SeatedZeroPoseReset:
{
m_moveCenterTabController.incomingSeatedReset();
LOG( INFO ) << "Game Triggered Seated Zero-Position Reset";
LOG( INFO ) << "Game/SteamVR Triggered Seated Zero-Position Reset";
}
break;

Expand Down
38 changes: 13 additions & 25 deletions src/res/qml/steamvr_page/camera/CameraGroupBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ GroupBox {
SteamVRTabController.setCameraActive(this.checked, false)
if(this.checked){
steamvrCameraBoundsToggle.enabled = true
steamvrCameraDashboardToggle.enabled = true
steamvrCameraRoomToggle.enabled = true
steamvrCameraContToggle.enabled = true
}else{
steamvrCameraBoundsToggle.enabled = false
steamvrCameraDashboardToggle.enabled = false
steamvrCameraRoomToggle.enabled = false
steamvrCameraContToggle.enabled = false
}
}
}
Expand All @@ -57,27 +55,21 @@ GroupBox {

MyToggleButton {
id: steamvrCameraBoundsToggle
text: "Camera for Bounds"
Layout.preferredWidth: 300
text: "Show camera on bounds collision"
Layout.preferredWidth: 400
onCheckedChanged: {
SteamVRTabController.setCameraBounds(this.checked, false)
}
}

MyToggleButton {
id: steamvrCameraDashboardToggle
text: "Camera for Dashboard"
Layout.preferredWidth: 300
onCheckedChanged: {
SteamVRTabController.setCameraDashboard(this.checked, false)
}
Item{
Layout.preferredWidth: 100
}

MyToggleButton {
id: steamvrCameraRoomToggle
text: "Camera for Room View"
id: steamvrCameraContToggle
text: "Show camera on controller"
onCheckedChanged: {
SteamVRTabController.setCameraRoom(this.checked, false)
SteamVRTabController.setCameraCont(this.checked, false)
}
}
}
Expand All @@ -88,11 +80,10 @@ GroupBox {
var c1 = SteamVRTabController.cameraActive
steamvrCameraActiveToggle.checked = c1
steamvrCameraBoundsToggle.checked = SteamVRTabController.cameraBounds
steamvrCameraDashboardToggle.checked = SteamVRTabController.cameraDashboard
steamvrCameraRoomToggle.checked = SteamVRTabController.cameraRoom
steamvrCameraContToggle.checked = SteamVRTabController.cameraCont

if(!c1){
steamvrCameraDashboardToggle.enabled = false;

steamvrCameraBoundsToggle.enabled = false;
steamvrCameraRoomToggle.enabled = false;
}
Expand All @@ -104,11 +95,8 @@ GroupBox {
onCameraActiveChanged: {
steamvrCameraActiveToggle.checked = SteamVRTabController.cameraActive
}
onCameraRoomChanged: {
steamvrCameraRoomToggle.checked = SteamVRTabController.cameraRoom
}
onCameraDashboardChanged: {
steamvrCameraDashboardToggle.checked = SteamVRTabController.cameraDashboard
onCameraContChanged: {
steamvrCameraContToggle.checked = SteamVRTabController.cameraCont
}
onCameraBoundsChanged: {
steamvrCameraBoundsToggle.checked = SteamVRTabController.cameraBounds
Expand Down
6 changes: 4 additions & 2 deletions src/tabcontrollers/MoveCenterTabController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ void MoveCenterTabController::incomingSeatedReset()
if ( !m_selfRequestedSeatedRecenter && !simpleRecenter() )
{
m_selfRequestedSeatedRecenter = true;
vr::VRSystem()->ResetSeatedZeroPose();
vr::VRChaperone()->ResetZeroPose( vr::TrackingUniverseSeated );
}
else
{
Expand Down Expand Up @@ -1122,6 +1122,8 @@ void MoveCenterTabController::zeroOffsets()
// offsets
auto chaperoneState = vr::VRChaperone()->GetCalibrationState();
if ( chaperoneState < vr::ChaperoneCalibrationState_Error
|| chaperoneState
== vr::ChaperoneCalibrationState_Error_PlayAreaInvalid
|| m_ignoreChaperoneState )
{
if ( !m_chaperoneInit )
Expand Down Expand Up @@ -1202,7 +1204,7 @@ void MoveCenterTabController::zeroOffsets()

void MoveCenterTabController::sendSeatedRecenter()
{
vr::VRSystem()->ResetSeatedZeroPose();
vr::VRChaperone()->ResetZeroPose( vr::TrackingUniverseSeated );
}

double MoveCenterTabController::getHmdYawTotal()
Expand Down
56 changes: 11 additions & 45 deletions src/tabcontrollers/SteamVRTabController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ void SteamVRTabController::synchSteamVR()
setDND( dnd() );
setNoFadeToGrid( noFadeToGrid() );
setCameraActive( cameraActive() );
setCameraRoom( cameraRoom() );
setCameraDashboard( cameraDashboard() );
setCameraCont( cameraCont() );
setCameraBounds( cameraBounds() );
}

Expand Down Expand Up @@ -249,48 +248,33 @@ void SteamVRTabController::setCameraBounds( const bool value,
}
}

bool SteamVRTabController::cameraRoom() const
bool SteamVRTabController::cameraCont() const
{
auto p = ovr_settings_wrapper::getBool(
vr::k_pch_Camera_Section,
vr::k_pch_Camera_EnableCameraForRoomView_Bool );
vr::k_pch_Camera_Section, vr::k_pch_Camera_ShowOnController_Bool );

if ( p.first == ovr_settings_wrapper::SettingsError::NoError )
{
return p.second;
}
return m_cameraRoom;
return m_cameraCont;
}

void SteamVRTabController::setCameraRoom( const bool value, const bool notify )
void SteamVRTabController::setCameraCont( const bool value, const bool notify )
{
if ( m_cameraRoom != value )
if ( m_cameraCont != value )
{
m_cameraRoom = value;
ovr_settings_wrapper::setBool(
vr::k_pch_Camera_Section,
vr::k_pch_Camera_EnableCameraForRoomView_Bool,
m_cameraRoom );
m_cameraCont = value;
ovr_settings_wrapper::setBool( vr::k_pch_Camera_Section,
vr::k_pch_Camera_ShowOnController_Bool,
m_cameraCont );
if ( notify )
{
emit cameraRoomChanged( m_cameraRoom );
emit cameraContChanged( m_cameraCont );
}
}
}

bool SteamVRTabController::cameraDashboard() const
{
auto p = ovr_settings_wrapper::getBool(
vr::k_pch_Camera_Section,
vr::k_pch_Camera_EnableCameraInDashboard_Bool );

if ( p.first == ovr_settings_wrapper::SettingsError::NoError )
{
return p.second;
}
return m_cameraDashboard;
}

void SteamVRTabController::updateRXTXList()
{
emit updateRXTX( true );
Expand Down Expand Up @@ -471,24 +455,6 @@ void SteamVRTabController::launchBindingUI()
LOG( ERROR ) << "Input Error: " << error;
}
}

void SteamVRTabController::setCameraDashboard( const bool value,
const bool notify )
{
if ( m_cameraDashboard != value )
{
m_cameraDashboard = value;
ovr_settings_wrapper::setBool(
vr::k_pch_Camera_Section,
vr::k_pch_Camera_EnableCameraInDashboard_Bool,
m_cameraDashboard );
if ( notify )
{
emit cameraDashboardChanged( m_cameraDashboard );
}
}
}

void SteamVRTabController::restartSteamVR()
{
QString cmd = QString( "cmd.exe /C restartvrserver.bat \"" )
Expand Down
18 changes: 6 additions & 12 deletions src/tabcontrollers/SteamVRTabController.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ class SteamVRTabController : public QObject
cameraActiveChanged )
Q_PROPERTY( bool cameraBounds READ cameraBounds WRITE setCameraBounds NOTIFY
cameraBoundsChanged )
Q_PROPERTY( bool cameraRoom READ cameraRoom WRITE setCameraRoom NOTIFY
cameraRoomChanged )
Q_PROPERTY( bool cameraDashboard READ cameraDashboard WRITE
setCameraDashboard NOTIFY cameraDashboardChanged )
Q_PROPERTY( bool cameraCont READ cameraCont WRITE setCameraCont NOTIFY
cameraContChanged )
Q_PROPERTY( bool perAppBindEnabled READ perAppBindEnabled WRITE
setPerAppBindEnabled NOTIFY perAppBindEnabledChanged )

Expand All @@ -84,8 +82,7 @@ class SteamVRTabController : public QObject

bool m_cameraActive = false;
bool m_cameraBounds = false;
bool m_cameraRoom = false;
bool m_cameraDashboard = false;
bool m_cameraCont = false;
bool m_pathRXTXInit = false;
int m_dongleCountCur = 0;
int m_dongleCountMax = 0;
Expand Down Expand Up @@ -118,8 +115,7 @@ class SteamVRTabController : public QObject

bool cameraActive() const;
bool cameraBounds() const;
bool cameraRoom() const;
bool cameraDashboard() const;
bool cameraCont() const;
QNetworkProxy m_proxy;
QWebSocket m_webSocket;

Expand Down Expand Up @@ -170,8 +166,7 @@ public slots:

void setCameraActive( bool value, bool notify = true );
void setCameraBounds( bool value, bool notify = true );
void setCameraRoom( bool value, bool notify = true );
void setCameraDashboard( bool value, bool notify = true );
void setCameraCont( bool value, bool notify = true );

void setPerAppBindEnabled( bool value, bool notify = true );

Expand All @@ -190,8 +185,7 @@ public slots:

void cameraActiveChanged( bool value );
void cameraBoundsChanged( bool value );
void cameraRoomChanged( bool value );
void cameraDashboardChanged( bool value );
void cameraContChanged( bool value );

void pairStatusChanged( QString value );
void updateRXTX( bool value );
Expand Down
Binary file modified third-party/openvr/bin/linux32/libopenvr_api.so
Binary file not shown.
Binary file modified third-party/openvr/bin/linux32/libopenvr_api.so.dbg
Binary file not shown.
Binary file modified third-party/openvr/bin/linux64/libopenvr_api.so
Binary file not shown.
Binary file modified third-party/openvr/bin/linux64/libopenvr_api.so.dbg
Binary file not shown.

This file was deleted.

1 change: 0 additions & 1 deletion third-party/openvr/bin/osx64/OpenVR.framework/Headers

This file was deleted.

1 change: 0 additions & 1 deletion third-party/openvr/bin/osx64/OpenVR.framework/OpenVR

This file was deleted.

1 change: 0 additions & 1 deletion third-party/openvr/bin/osx64/OpenVR.framework/Resources

This file was deleted.

Loading

0 comments on commit 54d22a4

Please sign in to comment.