Chaperone Movement Fix 1.26.3 steamvr (#630)
* fix chaperone move behavior for 1.26.x of open/steamvr fix a ui error with a warning on old app and external chaperone --------- Co-authored-by: Chelsea Jaggi <feilen1000@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
|||||||
5.7.1-release
|
5.7.2-release
|
||||||
@@ -110,6 +110,21 @@ MyStackViewPage {
|
|||||||
seatedOldExternalWarning.visible = MoveCenterTabController.allowExternalEdits && checked
|
seatedOldExternalWarning.visible = MoveCenterTabController.allowExternalEdits && checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
RowLayout{
|
||||||
|
|
||||||
|
MyText {
|
||||||
|
id: seatedOldExternalWarning
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
font.pointSize: 20
|
||||||
|
color: "#FFA500"
|
||||||
|
text: "WARNING: 'Allow External App Chaperone Edits' + 'Old-Style Motion' + 'Enable Motion Features When in Seated Mode' active together may cause space center misalignment. Load the «Autosaved Profile» in the 'Chaperone' tab to fix."
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
Layout.leftMargin: 20
|
||||||
|
Layout.rightMargin: 20
|
||||||
|
Layout.preferredWidth: 900
|
||||||
|
//Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
MyToggleButton {
|
MyToggleButton {
|
||||||
id: universeCenteredRotationToggle
|
id: universeCenteredRotationToggle
|
||||||
@@ -198,6 +213,13 @@ MyStackViewPage {
|
|||||||
OverlayController.setExclusiveInputEnabled(this.checked, true)
|
OverlayController.setExclusiveInputEnabled(this.checked, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
MyToggleButton {
|
||||||
|
id: spaceAdjustChaperoneToggle
|
||||||
|
text: "Adjust Chaperone"
|
||||||
|
onCheckedChanged: {
|
||||||
|
MoveCenterTabController.adjustChaperone = this.checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -286,20 +308,6 @@ MyStackViewPage {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RowLayout{
|
|
||||||
|
|
||||||
MyText {
|
|
||||||
id: seatedOldExternalWarning
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
font.pointSize: 20
|
|
||||||
color: "#FFA500"
|
|
||||||
text: "WARNING: 'Allow External App Chaperone Edits' + 'Old-Style Motion' + 'Enable Motion Features When in Seated Mode' active together may cause space center misalignment. Load the «Autosaved Profile» in the 'Chaperone' tab to fix."
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
Layout.leftMargin: 20
|
|
||||||
Layout.rightMargin: 20
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
RowLayout{
|
RowLayout{
|
||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -358,6 +366,7 @@ MyStackViewPage {
|
|||||||
oculusSdkToggleButton.checked = SettingsTabController.oculusSdkToggle
|
oculusSdkToggleButton.checked = SettingsTabController.oculusSdkToggle
|
||||||
exclusiveInputToggleButton.checked = OverlayController.exclusiveInputEnabled
|
exclusiveInputToggleButton.checked = OverlayController.exclusiveInputEnabled
|
||||||
autoApplyChaperoneToggleButton.checked = OverlayController.autoApplyChaperoneEnabled
|
autoApplyChaperoneToggleButton.checked = OverlayController.autoApplyChaperoneEnabled
|
||||||
|
spaceAdjustChaperoneToggle.checked = MoveCenterTabController.adjustChaperone
|
||||||
|
|
||||||
|
|
||||||
seatedOldExternalWarning.visible = MoveCenterTabController.allowExternalEdits && MoveCenterTabController.oldStyleMotion
|
seatedOldExternalWarning.visible = MoveCenterTabController.allowExternalEdits && MoveCenterTabController.oldStyleMotion
|
||||||
@@ -391,6 +400,9 @@ MyStackViewPage {
|
|||||||
onUniverseCenteredRotationChanged: {
|
onUniverseCenteredRotationChanged: {
|
||||||
universeCenteredRotationToggle.checked = MoveCenterTabController.universeCenteredRotation
|
universeCenteredRotationToggle.checked = MoveCenterTabController.universeCenteredRotation
|
||||||
}
|
}
|
||||||
|
onAdjustChaperoneChanged:{
|
||||||
|
spaceAdjustChaperoneToggle.checked = MoveCenterTabController.adjustChaperone
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
|||||||
@@ -285,6 +285,10 @@ private:
|
|||||||
SettingCategory::Playspace,
|
SettingCategory::Playspace,
|
||||||
QtInfo{ "enableUncalMotion" },
|
QtInfo{ "enableUncalMotion" },
|
||||||
false },
|
false },
|
||||||
|
BoolSettingValue{ BoolSetting::PLAYSPACE_adjustChaperone3,
|
||||||
|
SettingCategory::Playspace,
|
||||||
|
QtInfo{ "adjustChaperone3" },
|
||||||
|
true },
|
||||||
|
|
||||||
BoolSettingValue{ BoolSetting::APPLICATION_disableVersionCheck,
|
BoolSettingValue{ BoolSetting::APPLICATION_disableVersionCheck,
|
||||||
SettingCategory::Application,
|
SettingCategory::Application,
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ enum class BoolSetting
|
|||||||
PLAYSPACE_simpleRecenter,
|
PLAYSPACE_simpleRecenter,
|
||||||
PLAYSPACE_adjustChaperone2,
|
PLAYSPACE_adjustChaperone2,
|
||||||
PLAYSPACE_enableUncalMotion,
|
PLAYSPACE_enableUncalMotion,
|
||||||
|
PLAYSPACE_adjustChaperone3,
|
||||||
|
|
||||||
APPLICATION_disableVersionCheck,
|
APPLICATION_disableVersionCheck,
|
||||||
APPLICATION_previousShutdownSafe,
|
APPLICATION_previousShutdownSafe,
|
||||||
|
|||||||
@@ -457,12 +457,12 @@ void MoveCenterTabController::setFrictionPercent( int value, bool notify )
|
|||||||
bool MoveCenterTabController::adjustChaperone() const
|
bool MoveCenterTabController::adjustChaperone() const
|
||||||
{
|
{
|
||||||
return settings::getSetting(
|
return settings::getSetting(
|
||||||
settings::BoolSetting::PLAYSPACE_adjustChaperone2 );
|
settings::BoolSetting::PLAYSPACE_adjustChaperone3 );
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoveCenterTabController::setAdjustChaperone( bool value, bool notify )
|
void MoveCenterTabController::setAdjustChaperone( bool value, bool notify )
|
||||||
{
|
{
|
||||||
settings::setSetting( settings::BoolSetting::PLAYSPACE_adjustChaperone2,
|
settings::setSetting( settings::BoolSetting::PLAYSPACE_adjustChaperone3,
|
||||||
value );
|
value );
|
||||||
|
|
||||||
if ( notify )
|
if ( notify )
|
||||||
@@ -2767,9 +2767,14 @@ void MoveCenterTabController::updateSpace( bool forceUpdate )
|
|||||||
|
|
||||||
// As of SVR 1.13.1 The Chaperone will follow Universe Center NOT raw
|
// As of SVR 1.13.1 The Chaperone will follow Universe Center NOT raw
|
||||||
// Center as such this should be off by defualt.
|
// Center as such this should be off by defualt.
|
||||||
|
// As of SVR 1.26.3 The chaperone seems to Have reverted back to pre 1.13.1
|
||||||
|
// behavior
|
||||||
|
// as of SVR 1.26.3 instead of 2x offset we have 1x offset and universe
|
||||||
|
// centerS
|
||||||
|
|
||||||
if ( adjustChaperone() )
|
if ( adjustChaperone() )
|
||||||
{
|
{
|
||||||
|
// outputLogPoses();
|
||||||
// make a copy of our bounds and
|
// make a copy of our bounds and
|
||||||
// reorient relative to new universe center
|
// reorient relative to new universe center
|
||||||
|
|
||||||
@@ -2798,21 +2803,22 @@ void MoveCenterTabController::updateSpace( bool forceUpdate )
|
|||||||
// original origin
|
// original origin
|
||||||
updatedBounds[quad].vCorners[corner].v[0]
|
updatedBounds[quad].vCorners[corner].v[0]
|
||||||
-= offsetUniverseCenter.m[0][3]
|
-= offsetUniverseCenter.m[0][3]
|
||||||
- offsetUniverseCenter.m[0][3];
|
// - offsetUniverseCenter.m[0][3];
|
||||||
//- m_universeCenterForReset.m[0][3];
|
- m_universeCenterForReset.m[0][3];
|
||||||
// but don't touch y=0 values to keep floor corners rooted
|
// but don't touch y=0 values to keep floor corners
|
||||||
// down
|
// rooted down
|
||||||
|
|
||||||
if ( updatedBounds[quad].vCorners[corner].v[1] != 0 )
|
if ( updatedBounds[quad].vCorners[corner].v[1] != 0 )
|
||||||
{
|
{
|
||||||
updatedBounds[quad].vCorners[corner].v[1]
|
updatedBounds[quad].vCorners[corner].v[1]
|
||||||
-= offsetUniverseCenter.m[1][3]
|
-= offsetUniverseCenter.m[1][3]
|
||||||
- offsetUniverseCenter.m[1][3];
|
//- offsetUniverseCenter.m[1][3];
|
||||||
//- m_universeCenterForReset.m[1][3];
|
- m_universeCenterForReset.m[1][3];
|
||||||
}
|
}
|
||||||
updatedBounds[quad].vCorners[corner].v[2]
|
updatedBounds[quad].vCorners[corner].v[2]
|
||||||
-= offsetUniverseCenter.m[2][3]
|
-= offsetUniverseCenter.m[2][3]
|
||||||
- offsetUniverseCenter.m[2][3];
|
// - offsetUniverseCenter.m[2][3];
|
||||||
//- m_universeCenterForReset.m[2][3];
|
- m_universeCenterForReset.m[2][3];
|
||||||
|
|
||||||
// rotate by universe center's yaw
|
// rotate by universe center's yaw
|
||||||
rotateFloatCoordinates(
|
rotateFloatCoordinates(
|
||||||
|
|||||||
Reference in New Issue
Block a user