Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -38,15 +38,19 @@ WiVRn support a wide range of VR devices:
|
|||||||
|
|
||||||
## PC Server/Dashboard
|
## PC Server/Dashboard
|
||||||
|
|
||||||
We recommend using the flatpak package from Flathub:
|
We recommend using native packages if available for your distribution:
|
||||||
|
|
||||||
[](https://flathub.org/apps/io.github.wivrn.wivrn)
|
|
||||||
|
|
||||||
Alternatively, packages are available from:
|
|
||||||
- [Arch User Repositoy](https://aur.archlinux.org/packages/wivrn-dashboard)
|
- [Arch User Repositoy](https://aur.archlinux.org/packages/wivrn-dashboard)
|
||||||
- [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/)
|
- [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/)
|
||||||
- [Gentoo Guru](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn)
|
- [Gentoo Guru](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn)
|
||||||
|
- [NixOS](https://search.nixos.org/packages?channel=25.11&show=wivrn)
|
||||||
|
|
||||||
|
For OpenVR and Steam compatibility, you also need a [compatibility library](#openvr-and-steam-games) such as xrizer or OpenComposite.
|
||||||
|
|
||||||
|
A flatpak is available on Flathub for all distributions:
|
||||||
|
|
||||||
|
[](https://flathub.org/apps/io.github.wivrn.wivrn)
|
||||||
|
|
||||||
|
Note that due to flatpak sandboxing some features may not be available such as Lighthouse tracked devices.
|
||||||
|
|
||||||
## Headset Client/App
|
## Headset Client/App
|
||||||
|
|
||||||
@@ -97,7 +101,7 @@ The flatpak includes [OpenComposite](https://gitlab.com/znixian/OpenOVR/) and [x
|
|||||||
|
|
||||||
If using Wine/Proton, it will probe for OpenVR at startup, This means even for OpenXR applications, OpenComposite or xrizer is required.
|
If using Wine/Proton, it will probe for OpenVR at startup, This means even for OpenXR applications, OpenComposite or xrizer is required.
|
||||||
|
|
||||||
When you start the server through flatpak, it automatically configures the current OpenVR to use xrizer.
|
When a headset connects, wivrn-server sets the OpenVR runtime to xrizer unless manually configured differently.
|
||||||
|
|
||||||
### Steam Flatpak
|
### Steam Flatpak
|
||||||
If you're using the Steam Flatpak, you'll need to grant read only access to the following paths:
|
If you're using the Steam Flatpak, you'll need to grant read only access to the following paths:
|
||||||
|
|||||||
@@ -525,58 +525,58 @@ void scenes::stream::gui_settings(float predicted_display_period)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::Unindent();
|
ImGui::Unindent();
|
||||||
|
}
|
||||||
|
|
||||||
bool send_packet = false;
|
bool send_packet = false;
|
||||||
bool save_config = false;
|
bool save_config = false;
|
||||||
ImGui::Text("%s", _S("Foveation center override"));
|
ImGui::Text("%s", _S("Foveation center override"));
|
||||||
ImGui::Indent();
|
ImGui::Indent();
|
||||||
|
{
|
||||||
|
if (ImGui::Checkbox(_S("Enable"), &override_foveation_enable))
|
||||||
{
|
{
|
||||||
if (ImGui::Checkbox(_S("Enable"), &override_foveation_enable))
|
send_packet = true;
|
||||||
{
|
save_config = true;
|
||||||
send_packet = true;
|
|
||||||
save_config = true;
|
|
||||||
}
|
|
||||||
imgui_ctx->vibrate_on_hover();
|
|
||||||
|
|
||||||
ImGui::BeginDisabled(!override_foveation_enable);
|
|
||||||
ImGui::Text("%s", fmt::format(_F("Height {:.1f} deg"), -override_foveation_pitch * 180 / M_PI).c_str());
|
|
||||||
ImGui::Text("%s", fmt::format(_F("Distance {:.2f} m"), override_foveation_distance).c_str());
|
|
||||||
if (ImGui::Button(_S("Default")))
|
|
||||||
{
|
|
||||||
override_foveation_distance = configuration{}.override_foveation_distance;
|
|
||||||
override_foveation_pitch = configuration{}.override_foveation_pitch;
|
|
||||||
send_packet = true;
|
|
||||||
save_config = true;
|
|
||||||
}
|
|
||||||
imgui_ctx->vibrate_on_hover();
|
|
||||||
|
|
||||||
ImGui::SameLine();
|
|
||||||
|
|
||||||
if (ImGui::Button(_S("Change")))
|
|
||||||
gui_status = gui_status::foveation_settings;
|
|
||||||
imgui_ctx->vibrate_on_hover();
|
|
||||||
|
|
||||||
ImGui::EndDisabled();
|
|
||||||
}
|
}
|
||||||
ImGui::Unindent();
|
imgui_ctx->vibrate_on_hover();
|
||||||
|
|
||||||
if (send_packet)
|
ImGui::BeginDisabled(!override_foveation_enable);
|
||||||
|
ImGui::Text("%s", fmt::format(_F("Height {:.1f} deg"), -override_foveation_pitch * 180 / M_PI).c_str());
|
||||||
|
ImGui::Text("%s", fmt::format(_F("Distance {:.2f} m"), override_foveation_distance).c_str());
|
||||||
|
if (ImGui::Button(_S("Default")))
|
||||||
{
|
{
|
||||||
network_session->send_control(from_headset::override_foveation_center{
|
override_foveation_distance = configuration{}.override_foveation_distance;
|
||||||
.enabled = override_foveation_enable,
|
override_foveation_pitch = configuration{}.override_foveation_pitch;
|
||||||
.pitch = override_foveation_pitch,
|
send_packet = true;
|
||||||
.distance = override_foveation_distance,
|
save_config = true;
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
imgui_ctx->vibrate_on_hover();
|
||||||
|
|
||||||
if (save_config)
|
ImGui::SameLine();
|
||||||
{
|
|
||||||
auto & config = application::get_config();
|
if (ImGui::Button(_S("Change")))
|
||||||
config.override_foveation_enable = override_foveation_enable;
|
gui_status = gui_status::foveation_settings;
|
||||||
config.override_foveation_pitch = override_foveation_pitch;
|
imgui_ctx->vibrate_on_hover();
|
||||||
config.override_foveation_distance = override_foveation_distance;
|
|
||||||
config.save();
|
ImGui::EndDisabled();
|
||||||
}
|
}
|
||||||
|
ImGui::Unindent();
|
||||||
|
|
||||||
|
if (send_packet)
|
||||||
|
{
|
||||||
|
network_session->send_control(from_headset::override_foveation_center{
|
||||||
|
.enabled = override_foveation_enable,
|
||||||
|
.pitch = override_foveation_pitch,
|
||||||
|
.distance = override_foveation_distance,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (save_config)
|
||||||
|
{
|
||||||
|
auto & config = application::get_config();
|
||||||
|
config.override_foveation_enable = override_foveation_enable;
|
||||||
|
config.override_foveation_pitch = override_foveation_pitch;
|
||||||
|
config.override_foveation_distance = override_foveation_distance;
|
||||||
|
config.save();
|
||||||
}
|
}
|
||||||
ImGui::PopStyleVar();
|
ImGui::PopStyleVar();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user