Skip to content

Commit

Permalink
Add option to enable VR Dashboard&Home
Browse files Browse the repository at this point in the history
  • Loading branch information
oneup03 committed Feb 21, 2025
1 parent 43f8c6c commit 2e25625
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ Checkout the [Compatibility List](https://github.com/oneup03/VRto3D/wiki/Compati
| `depth` + | `float` | The max separation. Overrides VR's IPD field. | `0.4` |
| `convergence` + | `float` | Where the left and right images converge. Adjusts frustum. | `4.0` |
| `disable_hotkeys` | `bool` | Disable Depth & Convergence adjustment hotkeys to avoid conflict with other 3D mods | `false` |
| `tab_enable` | `bool` | Enable or disable top-and-bottom (TaB) 3D output (Side by Side is default) | `false` |
| `tab_enable` | `bool` | Enable or disable top-and-bottom (TaB/OU) 3D output (Side by Side is default) | `false` |
| `reverse_enable` | `bool` | Enable or disable reversed 3D output. | `false` |
| `depth_gauge` | `bool` | Enable or disable SteamVR IPD gauge display. | `false` |
| `debug_enable` | `bool` | Borderless Windowed. Not 3DVision compatible. Breaks running some mods in OpenVR mode. | `true` |
| `dash_enable` | `bool` | Enable or disable SteamVR Dashboard and Home. | `false` |
| `debug_enable` | `bool` | Borderless Windowed. Should always be used. | `true` |
| `display_latency` | `float` | The display latency in seconds. | `0.011` |
| `display_frequency` | `float` | The display refresh rate, in Hz. | `60.0` |
| `pitch_enable` + | `bool` | Enables or disables Controller right stick y-axis mapped to HMD Pitch | `false` |
Expand Down Expand Up @@ -96,7 +97,7 @@ Checkout the [Compatibility List](https://github.com/oneup03/VRto3D/wiki/Compati
- Set your window resolution to match your fullscreen resolution (i.e. 3840x1080 for Full-SbS or 1920x1080 for Half-SbS)
- Set your render resolution per eye to what you want - can save some performance by reducing this. If your display is half-SbS or half-TaB, then you can try setting this to that half-resolution
- Configure any `Virtual-Key Code` settings to use keys that you want (especially `user_load_keys` settings as these load a defined depth+convergence preset)
- Single Display Mode: make sure the `debug_enable` flag is set to `true` to make more games work (not 3DVision compatible)
- Single Display Mode: make sure the `debug_enable` flag is set to `true` to make more games work
- Download the latest [VRto3D profiles](https://github.com/oneup03/VRto3D/releases/download/latest/vrto3d_profiles.zip) for games and extract them to your `Documents\My Games\vrto3d\` folder
- Run SteamVR to verify that you see the Headset window covering your entire display. This is usually not needed before running games.
- The Headset window must be on your primary 3D display
Expand Down
10 changes: 5 additions & 5 deletions vrto3d/src/hmd_device_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ vr::EVRInitError MockControllerDeviceDriver::Activate( uint32_t unObjectId )
vrp->SetBoolProperty( container, vr::Prop_IsOnDesktop_Bool, !stereo_display_component_->GetConfig().debug_enable);
vrp->SetBoolProperty( container, vr::Prop_DisplayDebugMode_Bool, stereo_display_component_->GetConfig().debug_enable);
vrp->SetBoolProperty( container, vr::Prop_HasDriverDirectModeComponent_Bool, false);
if (stereo_display_component_->GetConfig().depth_gauge)
if (stereo_display_component_->GetConfig().depth_gauge || stereo_display_component_->GetConfig().dash_enable)
{
vrp->SetFloatProperty(container, vr::Prop_DashboardScale_Float, 1.0f);
}
Expand Down Expand Up @@ -247,14 +247,14 @@ vr::EVRInitError MockControllerDeviceDriver::Activate( uint32_t unObjectId )
vrs->SetBool(vr::k_pch_DirectMode_Section, vr::k_pch_DirectMode_Enable_Bool, false);
vrs->SetFloat(vr::k_pch_Power_Section, vr::k_pch_Power_TurnOffScreensTimeout_Float, 86400.0f);
vrs->SetBool(vr::k_pch_Power_Section, vr::k_pch_Power_PauseCompositorOnStandby_Bool, false);
vrs->SetBool(vr::k_pch_Dashboard_Section, vr::k_pch_Dashboard_EnableDashboard_Bool, false);
vrs->SetBool(vr::k_pch_Dashboard_Section, vr::k_pch_Dashboard_ArcadeMode_Bool, true);
vrs->SetBool(vr::k_pch_Dashboard_Section, "allowAppQuitting", false);
vrs->SetBool(vr::k_pch_Dashboard_Section, vr::k_pch_Dashboard_EnableDashboard_Bool, stereo_display_component_->GetConfig().dash_enable);
vrs->SetBool(vr::k_pch_Dashboard_Section, vr::k_pch_Dashboard_ArcadeMode_Bool, !stereo_display_component_->GetConfig().dash_enable);
vrs->SetBool(vr::k_pch_Dashboard_Section, "allowAppQuitting", stereo_display_component_->GetConfig().dash_enable);
vrs->SetBool(vr::k_pch_Dashboard_Section, "autoShowGameTheater", false);
vrs->SetBool(vr::k_pch_Dashboard_Section, "showDesktop", false);
vrs->SetBool(vr::k_pch_Dashboard_Section, "showPowerOptions", false);
vrs->SetBool(vr::k_pch_Dashboard_Section, "inputCaptureEnabled", false);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_EnableHomeApp, false);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_EnableHomeApp, stereo_display_component_->GetConfig().dash_enable);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_MirrorViewVisibility_Bool, false);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_EnableSafeMode, false);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_DisplayDebug_Bool, false);
Expand Down
1 change: 1 addition & 0 deletions vrto3d/src/json_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ void JsonManager::LoadParamsFromJson(StereoDisplayDriverConfiguration& config)
config.tab_enable = getValue<bool>(jsonConfig, "tab_enable");
config.reverse_enable = getValue<bool>(jsonConfig, "reverse_enable");
config.depth_gauge = getValue<bool>(jsonConfig, "depth_gauge");
config.dash_enable = getValue<bool>(jsonConfig, "dash_enable");

config.display_latency = getValue<float>(jsonConfig, "display_latency");
config.display_frequency = getValue<float>(jsonConfig, "display_frequency");
Expand Down
2 changes: 2 additions & 0 deletions vrto3d/src/json_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ struct StereoDisplayDriverConfiguration
bool tab_enable;
bool reverse_enable;
bool depth_gauge;
bool dash_enable;
bool debug_enable;

float display_latency;
Expand Down Expand Up @@ -113,6 +114,7 @@ class JsonManager {
{"tab_enable", false},
{"reverse_enable", false},
{"depth_gauge", false},
{"dash_enable", false},
{"debug_enable", true},
{"display_latency", 0.011},
{"display_frequency", 60.0},
Expand Down

0 comments on commit 2e25625

Please sign in to comment.