CenterMarker Rotation Fix + Misc (#458)
* add native chaperone option * refactored overlaywrapper error handling * added reset all settings * added reset all settings option * clarified driver bounds language * fixed naming schema of turn settings * fixed qml issue * marked errors in settings * fixed rotation of center marker and cleaned up * ci test * removed debugging code * fixed comment * fixed rotation.... made messy * fixed crash when centermarker new was on at launch * added settings to scroll view * fixed some initialization issues w/ center marker and some race conditions * updated Documentation to be more correct/concise about openGL rendering Information issue 457 * changed default behaviour of chaperone bounds to be un-checked to be consistant w/ other settings (default is unchecked) * cleaned up code around centermarker overlay * removed unused variables, changed scope of some existing * code naming cleanup * more rename * updated Version strings for 5.1.1 release * updated string to be more concise
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
|
||||
namespace utils
|
||||
{
|
||||
// TODO possibly expand on this to include other orientations?
|
||||
// This is Forward, and Up orientation matrix
|
||||
constexpr vr::HmdMatrix34_t k_forwardUpMatrix
|
||||
= { { { 1.0f, 0.0f, 0.0f, 0.0f },
|
||||
{ 0.0f, 0.0f, 1.0f, 0.0f },
|
||||
{ 0.0f, -1.0f, 0.0f, 0.0f } } };
|
||||
|
||||
inline vr::HmdMatrix34_t& initRotationMatrix( vr::HmdMatrix34_t& matrix,
|
||||
unsigned axisId,
|
||||
float angle )
|
||||
|
||||
+11
-5
@@ -67,6 +67,10 @@ CommandLineOptions returnCommandLineParser( const MyQApplication& application )
|
||||
k_forceRemoveManifestDescription );
|
||||
parser.addOption( forceRemoveManifest );
|
||||
|
||||
QCommandLineOption resetSettings( k_resetSettings,
|
||||
k_resetSettingsDescription );
|
||||
parser.addOption( resetSettings );
|
||||
|
||||
parser.process( application );
|
||||
|
||||
const bool desktopModeEnabled = parser.isSet( desktopMode );
|
||||
@@ -87,12 +91,14 @@ CommandLineOptions returnCommandLineParser( const MyQApplication& application )
|
||||
const bool forceRemoveManifestEnabled = parser.isSet( forceRemoveManifest );
|
||||
LOG_IF( forceRemoveManifestEnabled, INFO )
|
||||
<< "Forcing removal of applications manifest.";
|
||||
const bool resetSettingsEnabled = parser.isSet( resetSettings );
|
||||
LOG_IF( resetSettingsEnabled, INFO ) << "Reset SteamVR Settings.";
|
||||
|
||||
const CommandLineOptions commandLineArgs{ desktopModeEnabled,
|
||||
forceNoSoundEnabled,
|
||||
forceNoManifestEnabled,
|
||||
forceInstallManifestEnabled,
|
||||
forceRemoveManifestEnabled };
|
||||
const CommandLineOptions commandLineArgs{
|
||||
desktopModeEnabled, forceNoSoundEnabled,
|
||||
forceNoManifestEnabled, forceInstallManifestEnabled,
|
||||
forceRemoveManifestEnabled, resetSettingsEnabled
|
||||
};
|
||||
|
||||
LOG( INFO ) << "Command line arguments processed.";
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ struct CommandLineOptions
|
||||
const bool forceNoManifest = false;
|
||||
const bool forceInstallManifest = false;
|
||||
const bool forceRemoveManifest = false;
|
||||
const bool resetSettings = false;
|
||||
};
|
||||
|
||||
// Manages the programs control flow and main settings.
|
||||
@@ -87,6 +88,9 @@ constexpr auto k_forceInstallManifestDescription
|
||||
constexpr auto k_forceRemoveManifest = "force-remove-manifest";
|
||||
constexpr auto k_forceRemoveManifestDescription
|
||||
= "Forces removing the applications manifest. Application will exit early.";
|
||||
constexpr auto k_resetSettings = "reset-steamvr-settings";
|
||||
constexpr auto k_resetSettingsDescription
|
||||
= "Resets all SteamVR values that can be modified in OVRAS to defaults.";
|
||||
|
||||
CommandLineOptions returnCommandLineParser( const MyQApplication& application );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user