diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml
index 378ada6d..9622656f 100644
--- a/.github/workflows/Build.yml
+++ b/.github/workflows/Build.yml
@@ -339,12 +339,10 @@ jobs:
retention-days: 30
- name: Archive debug symbols
- if: ${{ matrix.buildtype != 'Release' && matrix.buildtype != 'Oculus' }}
uses: actions/upload-artifact@v4
with:
name: symbols-${{ matrix.buildtype }}
path: debug/**/*.so
- retention-days: 30
- name: Push to Oculus store
if: ${{ matrix.buildtype == 'Oculus' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && steps.secret-check.outputs.oculus-token == 'true' }}
@@ -472,8 +470,7 @@ jobs:
uses: actions/download-artifact@v4
with:
path: apk
- pattern: '*-Release'
- merge-multiple: true
+ pattern: 'apk-Release'
- name: Download artifacts (flatpak)
uses: actions/download-artifact@v4
diff --git a/README.md b/README.md
index 86609b38..2434ca4f 100644
--- a/README.md
+++ b/README.md
@@ -1,33 +1,64 @@
-# WiVRn
+
WiVRn
+
+
[](https://www.gnu.org/licenses/gpl-3.0)  
-
+
+

+Fully FOSS PCVR streamer
-WiVRn wirelessly connects a standalone VR headset to a Linux computer. You can then play PCVR games on the headset while processing is done on the computer.
+# About
-It supports a wide range of headsets such as Quest 1 / 2 / Pro / 3 / 3S, Pico Neo 3, Pico 4, HTC Vive Focus 3, HTC Vive XR elite and most other Android based headsets.
+WiVRn is an application that wirelessly streams a virtual reality game to a standalone VR headset from a Linux computer.
+
+WiVRn support a wide range of VR devices:
+
+| Headset | Supported | Notes |
+|:--------:|:--------:|:--------:|
+| Quest 1 | ✓ | |
+| Quest 2 | ✓ | |
+| Quest 3 | ✓ | |
+| Quest 3s | ✓ | |
+| Quest Pro | ✓ | |
+| Pico Neo 3 | ✓ | |
+| Pico 4 | ✓ | |
+| HTC Vive Focus 3 | ✓ | Laggy |
+| HTC Vive XR Elite | ✓ | Laggy |
+| Samsung Galaxy XR | ✓ | |
+| Other Android VR | ? | Cannot know |
+| Play for Dream | ✖ | https://github.com/WiVRn/WiVRn/issues/465 |
+| Non-Android VR | ✖ | Not Android |
+| Non-VR Android | ✖ | VR required |
+
+A Linux client does exist, only for debugging. It has no audio or hardware decoding.
# Getting started
-## Server and dashboard
+## PC Server/Dashboard
We recommend using the flatpak package from Flathub:
[](https://flathub.org/apps/io.github.wivrn.wivrn)
-Alternatively, packages are available:
-- [AUR for Arch](https://aur.archlinux.org/packages/wivrn-dashboard)
+Alternatively, packages are available from:
+- [Arch User Repositoy](https://aur.archlinux.org/packages/wivrn-dashboard)
- [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/)
-- [Guru for Gentoo](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)
-## Headset app
+## Headset Client/App
-Follow the wizard in the dashboard to install the client app on the headset: it will either lead you to the [Meta Store](https://www.meta.com/experiences/7959676140827574/) or download the correct APK.
+Follow the wizard in the PC dashboard to install the client on your VR headset.
-⚠️ You will need to have a compatible version: if the headset fails to connect to your computer, see [troubleshooting](#troubleshooting).
+It should either lead you to the [Meta Store](https://www.meta.com/experiences/7959676140827574/) (for Meta Quest headsets) or to download the correct APK (for other headsets).
+
+> [!WARNING]
+> The VR client and PC server need to be on the same version of WiVRn
+
+> [!TIP]
+> If the headset fails to connect to the computer, see [troubleshooting](#troubleshooting).
@@ -41,19 +72,19 @@ Avahi must be running:
systemctl enable --now avahi-daemon
```
-- If a firewall is installed, open port 5353/UDP for avahi and ports 9757/UDP+TCP for WiVRn itself.
-- In the case of ufw, use `ufw allow 5353/udp` and `ufw allow 9757`.
+- If a firewall is installed, open port 5353/UDP for Avahi and ports 9757/UDP+TCP for WiVRn.
+- For example, if using UFW run `ufw allow 5353/udp` and `ufw allow 9757`.
### Running
-- On your computer, run "WiVRn server" application, or `wivrn-dashboard` from the command line, it will show the connection wizard the first time you launch it.
-- On your headset, run WiVRn from the App Library. If you are using a Quest and you have installed it from an APK instead of the Meta Store, it will be in the "unknown sources" section.
-- You should now see your computer in the list: click connect, the screen will show "Connection ready. Start a VR application on **your computer's name**".
+- On your computer, run "WiVRn server" application, or `wivrn-dashboard` from the command line. It will show the setup wizard the first time you launch it.
+- On your headset, run WiVRn from the App Library. If you are using a Meta Quest and you have installed it from an APK instead of the Meta Store, it should be in the "unknown sources" section.
+- You should now see your computer in the list: click connect, the screen will show "Connection ready. Start a VR application on \[your computer's name\]".
-You can now start an OpenXR application on your computer. For Steam games, you may also need to set the launch options to be able to use WiVRn. If nothing related to Steam is displayed in the dashboard or wivrn-server output, then your system does not require it.
+You can now stream an OpenXR application from your computer to your headset. For Steam games, you may also need to set the launch options to be able to use WiVRn. The server/dashboard will tell you how to do this if required.
- Right-click on the game you want to play in VR in Steam and click "Properties".
-- In the "General" tab, set the launch options to the value given in the dashboard.
+- In the "General" tab, enter the launch options that the WiVRn server/dashboard gave you inside the "Launch Options" setting.
-You can set an application to be started automatically when you connect your headset in the dashboard settings or [manually](docs/configuration.md#application)
+You can set an application to be started automatically when your headset is connected, in the dashboard settings or [manually](docs/configuration.md#application).
### Application list
When the headset is connected and no XR application is running, it will show an application launcher. Applications in that list are sourced from:
@@ -62,14 +93,13 @@ When the headset is connected and no XR application is running, it will show an
### OpenVR and Steam games
-The flatpak also includes [OpenComposite](https://gitlab.com/znixian/OpenOVR/) and [xrizer](https://github.com/Supreeeme/xrizer/), used to translate the OpenVR API used by SteamVR to OpenXR used by WiVRn, see [SteamVR](docs/steamvr.md) for details.
+The flatpak includes [OpenComposite](https://gitlab.com/znixian/OpenOVR/) and [xrizer](https://github.com/Supreeeme/xrizer/), used to translate the OpenVR API to OpenXR. see [SteamVR](docs/steamvr.md) for details.
-If using Wine/Proton, it will probe for OpenVR at startup, so 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 will automatically configure the current OpenVR to use xrizer.
+When you start the server through flatpak, it automatically configures the current OpenVR to use xrizer.
### Steam Flatpak
-
If you're using the Steam Flatpak, you'll need to grant read only access to the following paths:
```bash
@@ -82,12 +112,12 @@ flatpak override \
com.valvesoftware.Steam
```
-When using a user installation of flatpak Steam, user `override --user` instead of `override`.
+When using a user installation of flatpak Steam, use `override --user` instead of `override`.
### Audio
-When the headset is connected, WiVRn will create a virtual output device named WiVRn. It is not selected as default and you should either assign the application to the device when it is running, or mark it as default. To do so you can use `pavucontrol` or your desktop environment's configuration panel. Please note that in `pavucontrol` it will appear as a virtual device.
+When the headset is connected, WiVRn will create a virtual output device simply named "WiVRn. You must manually set this audio output to enabled/default. Please note that in `pavucontrol` it will appear as a virtual device.
-For microphone, you first have to enable it on the settings tabs on the headset (and give permission when prompted). It will then appear as a virtual input device named WiVRn(microphone) and also needs to be assigned like for output device.
+To enable microphone, you first have to enable it on the settings tab on the VR headset (and give permission when prompted). It should appear as a virtual input device named "WiVRn(microphone)", and needs to be assigned as the input device (same way as output device).
# Building
@@ -101,19 +131,19 @@ Configuration can be done from the dashboard.
See [configuration](docs/configuration.md) for editing the configuration manually.
# Troubleshooting
-
-## My computer is not seen by the headset
+My computer is not seen by the headset
If the server list is empty in the headset app:
- Make sure your computer is connected on the same network as your headset
- Check that avahi is running with `systemctl status avahi-daemon`, if it is not, enable it with `systemctl enable --now avahi-daemon`
-- If you have a firewall, check that port 5353 (UDP) is open
+- If you have a firewall, check that port 5353 (UDP) is open
-## My headset does not connect to my computer
+My headset does not connect to my computer
+
- If you have a firewall, check that port 9757 (UDP and TCP) is open
-- The server and client must be compatible.
+- The server and client must be the same version.
-## How do I use a wired connection?
+How do I use a wired connection?
- Make sure the WiVRn Server is installed and running on your computer
- Make sure you have the WiVRn app installed on your headset
@@ -127,15 +157,15 @@ If the server list is empty in the headset app:
- `org.meumeu.wivrn.github.nighly` for Github nightlies (wirvn-apk [repository](https://github.com/WiVRn/WiVRn-APK/releases))
- `org.meumeu.wivrn.github.testing` for Github CI builds
- `org.meumeu.wivrn.local` for developer builds
-- You can now continue the pairing process as documented in the running section.
+- You can now continue the pairing process as documented in the running section.
-## How do I see server logs when using the dashboard?
+How do I see server logs when using the dashboard?
- Click Troubleshoot > Open server logs, or
- Navigate to `${XDG_STATE_HOME}/wivrn/wivrn-dashboard` (with fallback to `${HOME}/.local/state` for `${XDG_STATE_HOME}`, or
-- For flatpak, navigate to `${HOME}/.var/app/io.github.wivrn.wivrn/.local/state/wivrn/wivrn-dashboard`.
+- For flatpak, navigate to `${HOME}/.var/app/io.github.wivrn.wivrn/.local/state/wivrn/wivrn-dashboard`.
-## I have high motion latency, black borders following my view, hear corrupted audio or see a corrupted, pixelated image
+I have high motion latency, black borders following my view, hear corrupted audio or see a corrupted, pixelated image
- When connecting through USB, make sure the headset isn't connected through WiFi (switch off WiFi)
- Reset the settings using the button at the bottom of the settings tab
@@ -144,7 +174,7 @@ If the server list is empty in the headset app:
- Decrease the resolution in the WiVRn app
- Connect through USB or use a better WiFi router.
-Note: WiVRn isn't properly optimized for NVIDIA GPUs due to the lack of developers with NVIDIA hardware. Motion latency may be significantly worse at rendering resolutions higher than default.
+Note: WiVRn isn't properly optimized for NVIDIA GPUs due to the lack of developers with NVIDIA hardware. Motion latency may be significantly worse at rendering resolutions higher than default.
# Contributing
diff --git a/client/render/imgui_impl.cpp b/client/render/imgui_impl.cpp
index 520fc3c9..e8f29f8e 100644
--- a/client/render/imgui_impl.cpp
+++ b/client/render/imgui_impl.cpp
@@ -915,7 +915,7 @@ std::vector> imgui_context::end_frame()
float alpha = std::clamp(1 - distance / constants::gui::pointer_fading_distance, 0, 1);
- if (&controller == &controllers[focused_controller])
+ if (focused_controller != (size_t)-1 and &controller == &controllers[focused_controller])
alpha *= constants::gui::pointer_alpha;
else
alpha *= constants::gui::pointer_alpha_disabled;
diff --git a/client/scenes/app_launcher.cpp b/client/scenes/app_launcher.cpp
index 2015b185..ca8e2e24 100644
--- a/client/scenes/app_launcher.cpp
+++ b/client/scenes/app_launcher.cpp
@@ -116,8 +116,7 @@ app_launcher::clicked app_launcher::draw_gui(imgui_context & imgui_ctx, const st
auto res = clicked::None;
auto t0 = std::chrono::steady_clock::now();
bool app_starting = start_time != std::chrono::steady_clock::time_point{} and
- t0 - start_time < 10s and
- stream.current_state() != scenes::stream::state::streaming;
+ t0 - start_time < 10s;
auto cancel_size = ImGui::CalcTextSize(cancel.c_str());
diff --git a/client/scenes/app_launcher.h b/client/scenes/app_launcher.h
index b9ac228b..7566013d 100644
--- a/client/scenes/app_launcher.h
+++ b/client/scenes/app_launcher.h
@@ -60,6 +60,11 @@ public:
// cancel: text to display on the quit/disconnect/cancel button
clicked draw_gui(imgui_context &, const std::string & cancel);
+ void reset()
+ {
+ start_time = {};
+ }
+
void operator()(wivrn::to_headset::application_list && apps);
void operator()(wivrn::to_headset::application_icon && icon);
};
diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp
index 8ae5c059..4c76eaf7 100644
--- a/client/scenes/lobby_gui.cpp
+++ b/client/scenes/lobby_gui.cpp
@@ -673,7 +673,7 @@ void scenes::lobby::gui_settings()
// foveation
{
- const int step = 10;
+ const int step = 5;
const auto current = config.get_stream_scale();
int intval = round((1 - current) * 100 / step);
const auto slider = ImGui::SliderInt(
@@ -761,18 +761,19 @@ void scenes::lobby::gui_settings()
// Bitrate
{
+ const int step = 5;
const int mb = 1'000'000;
const auto current = config.bitrate_bps;
- auto val = int(current / mb);
+ auto val = int(current / mb / step);
const auto slider = ImGui::SliderInt(
_("Bitrate").append("##bitrate").c_str(),
&val,
1,
- config.max_bitrate() / mb,
- fmt::format(_F("{}Mbit/s"), val).c_str());
+ config.max_bitrate() / mb / step,
+ fmt::format(_F("{}Mbit/s"), val * step).c_str());
if (slider)
{
- config.bitrate_bps = val * mb;
+ config.bitrate_bps = val * mb * step;
config.save();
}
imgui_ctx->vibrate_on_hover();
diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp
index 5a595ae3..13ba27c8 100644
--- a/client/scenes/stream.cpp
+++ b/client/scenes/stream.cpp
@@ -526,6 +526,7 @@ void scenes::stream::on_unfocused()
clear_swapchains();
left_hand.reset();
right_hand.reset();
+ apps.reset();
imgui_ctx.reset();
}
diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp
index d7fe766a..fa583351 100644
--- a/client/scenes/stream_gui.cpp
+++ b/client/scenes/stream_gui.cpp
@@ -979,6 +979,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), gui_status, gui_status::application_launcher, {tab_width, 0}))
{
+ apps.reset();
network_session->send_control(from_headset::get_application_list{
.language = application::get_messages_info().language,
.country = application::get_messages_info().country,
diff --git a/client/scenes/stream_tracking.cpp b/client/scenes/stream_tracking.cpp
index 2b2288b1..82e6e429 100644
--- a/client/scenes/stream_tracking.cpp
+++ b/client/scenes/stream_tracking.cpp
@@ -366,21 +366,6 @@ void scenes::stream::tracking()
if (not std::ranges::contains(pattern, device_id::HEAD, &to_headset::tracking_control::sample::device))
pattern.push_back({.device = device_id::HEAD});
- // FIXME: eye tracking shouldn't had a special case
- // eye-tracked foveation needs eye and head pose in the same tracking packet
- if (spaces[device_id::EYE_GAZE])
- {
- size_t sz = pattern.size();
- for (size_t i = 0; i < sz; ++i)
- {
- if (pattern[i].device == device_id::HEAD)
- pattern.push_back({
- .device = device_id::EYE_GAZE,
- .prediction_ns = pattern[i].prediction_ns,
- });
- }
- }
-
if (hand_tracking)
{
if (std::ranges::contains(pattern, device_id::LEFT_HAND, &to_headset::tracking_control::sample::device))
@@ -478,12 +463,13 @@ void scenes::stream::tracking()
const auto & item = pattern[pattern_position];
auto at_time = t0 + item.prediction_ns;
+ // Don't merge items that are too far from the current one
+ if (std::abs(tracking.timestamp - at_time) > 1'000'000)
+ break;
+
switch (item.device)
{
case device_id::HEAD:
- // Don't merge items that are too far from the current one
- if (std::abs(tracking.timestamp - at_time) > 1'000'000)
- goto subpattern_end;
tracking.view_flags = session.locate_views(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO, tracking.timestamp, view_space, views);
assert(views.size() == tracking.views.size());
for (auto [i, j]: std::views::zip(views, tracking.views))
@@ -503,15 +489,13 @@ void scenes::stream::tracking()
case wivrn::device_id::LEFT_POKE:
case wivrn::device_id::RIGHT_PINCH_POSE:
case wivrn::device_id::RIGHT_POKE:
- case wivrn::device_id::EYE_GAZE:
- // Don't merge items that are too far from the current one
- if (std::abs(tracking.timestamp - at_time) > 1'000'000)
- goto subpattern_end;
locate_spaces.add_space(item.device, spaces[item.device], tracking.timestamp, tracking.device_poses);
break;
+ case wivrn::device_id::EYE_GAZE:
+ // Eye gaze uses view pose as the origin
+ tracking.device_poses.push_back(locate_space(item.device, spaces[item.device], spaces[wivrn::device_id::HEAD], tracking.timestamp));
+ break;
case wivrn::device_id::FACE:
- if (std::abs(tracking.timestamp - at_time) > 1'000'000)
- goto subpattern_end;
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](auto & ft) {
@@ -557,7 +541,6 @@ void scenes::stream::tracking()
break;
}
}
- subpattern_end:
locate_spaces.resolve(session, tracking.timestamp, tracking.device_poses);
}
catch (const std::system_error & e)
@@ -594,12 +577,9 @@ void scenes::stream::tracking()
for (const auto & i: hands)
{
- if (i.joints)
- {
- auto & packet = packets[packet_count++];
- packet.clear();
- wivrn_session::stream_socket_t::serialize(packet, i);
- }
+ auto & packet = packets[packet_count++];
+ packet.clear();
+ wivrn_session::stream_socket_t::serialize(packet, i);
}
for (const auto & i: body)
{
diff --git a/common/application.cpp b/common/application.cpp
index 6edd8854..49c506a6 100644
--- a/common/application.cpp
+++ b/common/application.cpp
@@ -357,28 +357,33 @@ void do_data_dir(std::filesystem::path dir, std::unordered_map\n"
"Language-Team: Japanese <>\n"
@@ -62,10 +62,39 @@ msgstr "「adb install」コマンドは失敗しました、コード%1"
msgid "Installation successful"
msgstr "インストール成功"
-#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
+#: dashboard/main.cpp:26
#, kde-format
-msgid "WiVRn dashboard"
-msgstr "WiVRnダッシュボード"
+msgctxt "@title"
+msgid "WiVRn"
+msgstr "WiVRn"
+
+#: dashboard/main.cpp:28
+#, kde-format
+msgid "WiVRn server"
+msgstr "WiVRnサーバー"
+
+#: dashboard/main.cpp:30
+#, kde-format
+msgid "(c) 2022-2026 WiVRn development team"
+msgstr "(c) 2022-2026 WiVRn開発チーム"
+
+#: dashboard/main.cpp:40
+#, kde-format
+msgid "Monado"
+msgstr "Monado"
+
+#: dashboard/main.cpp:41
+#, kde-format
+msgid "OpenXR runtime"
+msgstr "OpenXRランタイム"
+
+#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
+#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/HeadsetsPage.qml:183
+#: dashboard/qml/TroubleshootPage.qml:71
+#, kde-format
+msgctxt "go back to the home page"
+msgid "Back"
+msgstr "戻る"
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
#, kde-format
@@ -83,8 +112,8 @@ msgstr "最新リリースを確認中"
msgid "No APK is available for this version"
msgstr "現在バージョン用の公式APKは提供されていません"
-#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321
-#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211
+#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
+#: dashboard/qml/Main.qml:426 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337
#, kde-format
msgid "ADB is not installed"
@@ -105,13 +134,6 @@ msgstr ""
"自分でクライエントをビルドするには、マニュアルをご覧ください。"
-#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetStatsPage.qml:36
-#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/TroubleshootPage.qml:71
-#, kde-format
-msgctxt "go back to the home page"
-msgid "Back"
-msgstr "戻る"
-
#: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format
msgid "Select your headset"
@@ -137,7 +159,7 @@ msgstr "WiVRnをインストールする"
msgid "Headset statistics"
msgstr "HMDの統計情報"
-#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391
+#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#, kde-format
msgid "Headsets"
msgstr "HMD"
@@ -223,28 +245,47 @@ msgstr "ペアリングを有効化する"
msgid "Pair a new headset"
msgstr "新しいHMDをペアリングする"
-#: dashboard/qml/Main.qml:120
+#: dashboard/qml/Main.qml:12
+#, kde-format
+msgid "WiVRn dashboard"
+msgstr "WiVRnダッシュボード"
+
+#: dashboard/qml/Main.qml:51
+#, kde-format
+msgid "Quit WiVRn"
+msgstr "WiVRnを終了"
+
+#: dashboard/qml/Main.qml:52
+#, kde-format
+msgid ""
+"The WiVRn server is active.\n"
+"Closing the window will terminate it."
+msgstr ""
+"WiVRnサーバーは作動中です。\n"
+"停止して終了しますか?"
+
+#: dashboard/qml/Main.qml:142
#, kde-format
msgid "Avahi daemon is not installed"
msgstr "Avahiデーモンはインストールサれていません"
-#: dashboard/qml/Main.qml:128
+#: dashboard/qml/Main.qml:150
#, kde-format
msgid "Avahi daemon is not started"
msgstr "Avahiデーモンが起動していません"
-#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149
-#: dashboard/qml/Main.qml:201
+#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
+#: dashboard/qml/Main.qml:223
#, kde-format
msgid "Fix it"
msgstr "直す"
-#: dashboard/qml/Main.qml:143
+#: dashboard/qml/Main.qml:165
#, kde-format
msgid "Firewall may not allow port 9757"
msgstr "ファイヤーウォールでポート9757が開いていないようです"
-#: dashboard/qml/Main.qml:157
+#: dashboard/qml/Main.qml:179
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
@@ -252,12 +293,12 @@ msgstr ""
"NVIDIAの場合は、GPUドライバー・バージョン565.77以上が必要です。現バージョン:"
"%1"
-#: dashboard/qml/Main.qml:163
+#: dashboard/qml/Main.qml:185
#, kde-format
msgid "More info"
msgstr "詳細情報"
-#: dashboard/qml/Main.qml:171
+#: dashboard/qml/Main.qml:193
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -266,7 +307,7 @@ msgstr ""
"AMD GPUの場合は「Mesa (radv)」ドライバーを使ってください\n"
"AMDVLKやAMDGPU-PROなどはvaapiエンコーダーに対応していません"
-#: dashboard/qml/Main.qml:179
+#: dashboard/qml/Main.qml:201
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -275,13 +316,13 @@ msgstr ""
"OpenVR実装ライブラリーは見つかりませんでした。SteamVRゲームを実行するには、\n"
"xrizerかOpenCompositeをインストールしましょう。"
-#: dashboard/qml/Main.qml:187
+#: dashboard/qml/Main.qml:209
#, kde-format
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
msgstr ""
"SteamはSnapとしてインストールされていますが、Snapはサポートサれていません。"
-#: dashboard/qml/Main.qml:195
+#: dashboard/qml/Main.qml:217
#, kde-format
msgid ""
"Steam is installed as a flatpak but does not have sufficient permissions."
@@ -289,84 +330,118 @@ msgstr ""
"SteamはFlatpakとしてインストールされていますが、必要な権限が設定されていませ"
"ん。"
-#: dashboard/qml/Main.qml:210
+#: dashboard/qml/Main.qml:232
#, kde-format
msgid "Restart the server for configuration changes to take effect"
msgstr "設定変更を有効にするにはサーバーを再起動してください。"
-#: dashboard/qml/Main.qml:216
+#: dashboard/qml/Main.qml:238
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "今すぐ再起動する"
-#: dashboard/qml/Main.qml:241
+#: dashboard/qml/Main.qml:263
#, kde-format
msgid "Server failed to start"
msgstr "サーバーは起動できませんでした"
-#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89
+#: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#, kde-format
msgid "Open server logs"
msgstr "ログを見る"
-#: dashboard/qml/Main.qml:276
+#: dashboard/qml/Main.qml:295
+#, kde-format
+msgid "Server status"
+msgstr "サーバーステータス"
+
+#: dashboard/qml/Main.qml:301
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "作動中"
-#: dashboard/qml/Main.qml:291
+#: dashboard/qml/Main.qml:314
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "ペアリング"
-#: dashboard/qml/Main.qml:304
+#: dashboard/qml/Main.qml:334
#, kde-format
-msgid "PIN: %1"
-msgstr "暗証番号:%1"
+msgid "Headset status"
+msgstr "HMDステータス"
-#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329
+#: dashboard/qml/Main.qml:341
#, kde-format
-msgid "Connect by USB"
-msgstr "USBで接続する"
+msgctxt "label for headset name/status under server running switch"
+msgid "Headset"
+msgstr "HMD"
-#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339
+#: dashboard/qml/Main.qml:344
#, kde-format
-msgid "No headset is connected or your headset is not in developer mode"
-msgstr "HMDが接続されていないか、HMDが開発者モードになっていません"
+msgid "Not connected"
+msgstr "未接続"
-#: dashboard/qml/Main.qml:331
+#: dashboard/qml/Main.qml:348
#, kde-format
msgid "Disconnect"
msgstr "切断する"
-#: dashboard/qml/Main.qml:349
+#: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
+#: dashboard/qml/Main.qml:372
+#, kde-format
+msgctxt "label for USB status or connect button"
+msgid "USB"
+msgstr "USB"
+
+#: dashboard/qml/Main.qml:358
+#, kde-format
+msgctxt "usb connect button"
+msgid "Connect (wired)"
+msgstr "有線で接続する"
+
+#: dashboard/qml/Main.qml:375 dashboard/qml/WizardPage.qml:339
+#, kde-format
+msgid "No headset is connected or your headset is not in developer mode"
+msgstr "HMDが接続されていないか、HMDが開発者モードになっていません"
+
+#: dashboard/qml/Main.qml:396
#, kde-format
msgid "Steam information"
msgstr "ストリーム情報"
-#: dashboard/qml/Main.qml:370
+#: dashboard/qml/Main.qml:412
#, kde-format
msgid "Wizard"
msgstr "セットアップウィザード"
-#: dashboard/qml/Main.qml:377
+#: dashboard/qml/Main.qml:418
#, kde-format
msgid "Install the app"
msgstr "アプリをインストール"
-#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14
+#: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "設定"
-#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10
+#: dashboard/qml/Main.qml:443
+#, kde-format
+msgid "About"
+msgstr "WiVRnについて"
+
+#: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "問題解決"
+#: dashboard/qml/Main.qml:455
+#, kde-format
+msgid "Version %1"
+msgstr "バージョン%1"
+
#: dashboard/qml/SelectGame.qml:14
#, kde-format
msgctxt "don't start an application automatically"
@@ -657,8 +732,8 @@ msgid ""
"For game specific issues, check on vronlinux DB if there are known bugs or workarounds."
msgstr ""
-"ゲーム固有の問題については、既知のバグや回避策についてvronlinux DBを確認してください。"
+"ゲーム固有の問題については、既知のバグや回避策についてvronlinux DBを確認してください。"
#: dashboard/qml/TroubleshootPage.qml:79
#, kde-format
@@ -808,6 +883,11 @@ msgstr ""
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "USBで接続するには、「USBで接続する」ボタンをクリックしましょう。"
+#: dashboard/qml/WizardPage.qml:329
+#, kde-format
+msgid "Connect by USB"
+msgstr "USBで接続する"
+
#: dashboard/qml/WizardPage.qml:349
#, kde-format
msgid "Troubleshooting"
@@ -854,12 +934,12 @@ msgstr "完了"
msgid "Finished"
msgstr "完了しました"
-#: dashboard/wivrn_server.cpp:533
+#: dashboard/wivrn_server.cpp:540
#, kde-format
msgid "xrizer"
msgstr "xrizer"
-#: dashboard/wivrn_server.cpp:534
+#: dashboard/wivrn_server.cpp:541
#, kde-format
msgid "Open Composite"
msgstr "OpenComposite"
diff --git a/locale/ja/wivrn.po b/locale/ja/wivrn.po
index c7a452f8..82ae4b77 100644
--- a/locale/ja/wivrn.po
+++ b/locale/ja/wivrn.po
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.16\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2025-12-15 12:22+0900\n"
+"POT-Creation-Date: 2026-02-04 17:02+0900\n"
"PO-Revision-Date: 2024-06-20 10:33+0900\n"
"Last-Translator: Mitsuami Megane \n"
"Language: Japanese\n"
@@ -59,11 +59,11 @@ msgstr "{}に接続できませんでした:({}) {}"
msgid "Waiting for connection"
msgstr "接続を待っています"
-#: client/scenes/lobby.cpp:1310
+#: client/scenes/lobby.cpp:1316
msgid "Passthrough"
msgstr "パススルー"
-#: client/scenes/lobby.cpp:1322
+#: client/scenes/lobby.cpp:1328
msgid "Default environment"
msgstr "デフォルトのホーム環境"
@@ -83,13 +83,13 @@ msgid "Disabled"
msgstr "無効"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
-#: client/scenes/stream_gui.cpp:1015
+#: client/scenes/stream_gui.cpp:1009
msgid "Disconnect"
msgstr "切断する"
-#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:749
-#: client/scenes/lobby_gui_customize.cpp:840
-#: client/scenes/lobby_gui_customize.cpp:896 client/scenes/stream_gui.cpp:1011
+#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
+#: client/scenes/lobby_gui_customize.cpp:844
+#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1005
msgid "Close"
msgstr "閉じる"
@@ -126,10 +126,10 @@ msgstr "ポート番号"
msgid "TCP only"
msgstr "TCPのみを使用"
-#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:651
-#: client/scenes/stream_gui.cpp:968
+#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
+#: client/scenes/stream_gui.cpp:962
msgid "Cancel"
-msgstr "やめる"
+msgstr "キャンセル"
#: client/scenes/lobby_gui.cpp:333
msgid "Save"
@@ -172,17 +172,17 @@ msgstr "言語"
msgid "System language"
msgstr "デバイス言語"
-#: client/scenes/lobby_gui.cpp:579 client/scenes/stream_gui.cpp:417
+#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
msgid "Refresh rate"
msgstr "リフレッシュレート"
-#: client/scenes/lobby_gui.cpp:579 client/scenes/lobby_gui.cpp:581
-#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
+#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
+#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "自動"
-#: client/scenes/lobby_gui.cpp:588 client/scenes/stream_gui.cpp:427
+#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -190,118 +190,134 @@ msgstr ""
"アプリケーションのパフォーマンスを基づいて自動的に設定します。\n"
"変更時にチラツキが発生する可能性があります。"
-#: client/scenes/lobby_gui.cpp:605 client/scenes/stream_gui.cpp:445
+#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate"
msgstr "最低リフレッシュレート"
-#: client/scenes/lobby_gui.cpp:631
+#: client/scenes/lobby_gui.cpp:632
msgid "Foveation level"
msgstr "フォビエーション・レベル"
-#: client/scenes/lobby_gui.cpp:654
+#: client/scenes/lobby_gui.cpp:655
msgid "Render resolution"
msgstr "レンダー解像度"
-#: client/scenes/lobby_gui.cpp:658
+#: client/scenes/lobby_gui.cpp:659
#, c-format, c++-format
msgid "{}%% - {}x{} per eye"
msgstr "{}%% - 目あたり{}x{}"
-#: client/scenes/lobby_gui.cpp:669
+#: client/scenes/lobby_gui.cpp:670
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr ""
"{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。"
-#: client/scenes/lobby_gui.cpp:679
-msgid "Stream resolution"
-msgstr "ストリーミング解像度"
+#: client/scenes/lobby_gui.cpp:680
+msgid "Foveated encoding"
+msgstr "エンコード・フォビエーション"
-#: client/scenes/lobby_gui.cpp:683
+#: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format
msgid "{}%%"
msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697
+msgid ""
+"Higher values focus image quality where you look at,\n"
+"improving latency, power efficiency and quality."
+msgstr ""
+"高い方は、視線方向の画質を最適化し、\n"
+"応答速度、電力効率、画質を向上させます。"
+
+#: client/scenes/lobby_gui.cpp:700
+msgid ""
+"Higher values focus image quality at the center,\n"
+"improving latency, power efficiency and quality."
+msgstr ""
+"高い方は、画面の中央の画質を最適化し、\n"
+"応答速度、電力効率、画質を向上させます。"
+
+#: client/scenes/lobby_gui.cpp:709
msgctxt "Codec"
msgid "Automatic"
msgstr "自動"
-#: client/scenes/lobby_gui.cpp:701
+#: client/scenes/lobby_gui.cpp:713
msgctxt "Codec"
msgid "H.264"
msgstr "H.264"
-#: client/scenes/lobby_gui.cpp:703
+#: client/scenes/lobby_gui.cpp:715
msgctxt "Codec"
msgid "H.265"
msgstr "H.265"
-#: client/scenes/lobby_gui.cpp:705
+#: client/scenes/lobby_gui.cpp:717
msgctxt "Codec"
msgid "AV1"
msgstr "AV1"
-#: client/scenes/lobby_gui.cpp:713
+#: client/scenes/lobby_gui.cpp:725
msgid "Codec"
msgstr "コーデック"
-#: client/scenes/lobby_gui.cpp:741
+#: client/scenes/lobby_gui.cpp:753
msgid "10-bit"
msgstr "10ビット"
-#: client/scenes/lobby_gui.cpp:756
+#: client/scenes/lobby_gui.cpp:768
msgid "Bitrate"
msgstr "ビットレート"
-#: client/scenes/lobby_gui.cpp:760
+#: client/scenes/lobby_gui.cpp:772
#, c++-format
msgid "{}Mbit/s"
msgstr "{}Mbps"
-#: client/scenes/lobby_gui.cpp:771
+#: client/scenes/lobby_gui.cpp:783
msgid "High power mode"
msgstr "高電力モード"
-#: client/scenes/lobby_gui.cpp:774
+#: client/scenes/lobby_gui.cpp:786
msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "HMDの性能問題を緩和するため、電力を増加させます。"
-#: client/scenes/lobby_gui.cpp:780
+#: client/scenes/lobby_gui.cpp:792
msgid "Enable microphone"
msgstr "マイクを有効する"
-#: client/scenes/lobby_gui.cpp:789
+#: client/scenes/lobby_gui.cpp:801
msgid "Unprocessed Microphone Audio"
msgstr "未処理のマイク音声"
-#: client/scenes/lobby_gui.cpp:795
+#: client/scenes/lobby_gui.cpp:807
msgid "Force disable audio filters, such as noise cancellation"
msgstr "ノイズ除去などのフィルターを無効化する"
-#: client/scenes/lobby_gui.cpp:802
+#: client/scenes/lobby_gui.cpp:814
msgid "Enable hand tracking"
msgstr "ハンドトラッキングを有効する"
-#: client/scenes/lobby_gui.cpp:808 client/scenes/lobby_gui.cpp:820
-#: client/scenes/lobby_gui.cpp:832 client/scenes/lobby_gui.cpp:849
-#: client/scenes/lobby_gui_customize.cpp:636
+#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
+#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
+#: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset"
msgstr "デバイスはこの機能をサポートしていません"
-#: client/scenes/lobby_gui.cpp:814
+#: client/scenes/lobby_gui.cpp:825
msgid "Enable eye tracking"
msgstr "アイトラッキングを有効する"
-#: client/scenes/lobby_gui.cpp:826
+#: client/scenes/lobby_gui.cpp:836
msgid "Enable face tracking"
msgstr "顔トラッキングを有効する"
-#: client/scenes/lobby_gui.cpp:840
+#: client/scenes/lobby_gui.cpp:848
msgid "Enable body tracking"
msgstr "ボディラッキングを有効する"
-#: client/scenes/lobby_gui.cpp:854
+#: client/scenes/lobby_gui.cpp:861
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -312,11 +328,11 @@ msgstr ""
"そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ"
"とになる。"
-#: client/scenes/lobby_gui.cpp:864
+#: client/scenes/lobby_gui.cpp:871
msgid "Enable lower body tracking"
msgstr "下半身トラッキングを有効する"
-#: client/scenes/lobby_gui.cpp:870
+#: client/scenes/lobby_gui.cpp:877
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -326,11 +342,11 @@ msgstr ""
"Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを"
"有効する必要がある。"
-#: client/scenes/lobby_gui.cpp:873
+#: client/scenes/lobby_gui.cpp:880
msgid "Enable hip tracking"
msgstr "腰のトラッキングを有効する"
-#: client/scenes/lobby_gui.cpp:879
+#: client/scenes/lobby_gui.cpp:886
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -338,11 +354,11 @@ msgstr ""
"下半身トラッキングが有効な場合に使用可能。\n"
"腰トラッカーを持ってる方は無効にしましょう。"
-#: client/scenes/lobby_gui.cpp:887
+#: client/scenes/lobby_gui.cpp:895
msgid "Enable in-stream window"
msgstr "ストリーミング中の設定パネル"
-#: client/scenes/lobby_gui.cpp:890
+#: client/scenes/lobby_gui.cpp:898
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
@@ -350,15 +366,23 @@ msgstr ""
"ストリーミング中にも設定パネルを表示できるようにします。\n"
"両方のサムスティックを同時に押して切り替えることができます。"
-#: client/scenes/lobby_gui.cpp:904 client/scenes/stream_gui.cpp:479
+#: client/scenes/lobby_gui.cpp:902
+msgid "Extended configuration values"
+msgstr "設定に対する制限の緩和"
+
+#: client/scenes/lobby_gui.cpp:905
+msgid "Allows unsafe configuration values, use at your own risk."
+msgstr "不安定な状態が発生しないよう、十分にご注意ください。"
+
+#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing"
msgstr "OpenXRポストエフェクト"
-#: client/scenes/lobby_gui.cpp:908 client/scenes/stream_gui.cpp:483
+#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:477
msgid "Supersampling"
msgstr "スーパーサンプリング"
-#: client/scenes/lobby_gui.cpp:928 client/scenes/stream_gui.cpp:504
+#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:498
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -366,11 +390,11 @@ msgstr ""
"コントラストが高い部分のギザギザを低減する。\n"
"ストリームの解像度は、HMDの解像度より高い場合は有用です。"
-#: client/scenes/lobby_gui.cpp:933 client/scenes/stream_gui.cpp:509
+#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:503
msgid "Sharpening"
msgstr "シャープ"
-#: client/scenes/lobby_gui.cpp:953 client/scenes/stream_gui.cpp:530
+#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:524
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -378,129 +402,129 @@ msgstr ""
"ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n"
"ストリームの解像度は、HMDの解像度より低い場合に有用です。"
-#: client/scenes/lobby_gui.cpp:1137 client/scenes/lobby_gui.cpp:1145
-#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
+#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
+#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
msgid "CPU time"
msgstr "CPU使用時間"
-#: client/scenes/lobby_gui.cpp:1141
+#: client/scenes/lobby_gui.cpp:1156
msgid "CPU time [ms]"
msgstr "CPU使用時間、ミリ秒"
-#: client/scenes/lobby_gui.cpp:1151 client/scenes/lobby_gui.cpp:1159
-#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
+#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
+#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
msgid "GPU time"
msgstr "GPU使用時間"
-#: client/scenes/lobby_gui.cpp:1155
+#: client/scenes/lobby_gui.cpp:1170
msgid "GPU time [ms]"
msgstr "GPU使用時間、ミリ秒"
-#: client/scenes/lobby_gui.cpp:1219
+#: client/scenes/lobby_gui.cpp:1234
msgid "Enable the microphone?"
msgstr "マイクを有効にしますか?"
-#: client/scenes/lobby_gui.cpp:1224
+#: client/scenes/lobby_gui.cpp:1239
msgid "Enable eye tracking?"
msgstr "アイトラッキングを有効にしますか?"
-#: client/scenes/lobby_gui.cpp:1229
+#: client/scenes/lobby_gui.cpp:1244
msgid "Enable face tracking?"
msgstr "フェースラッキングを有効にしますか?"
-#: client/scenes/lobby_gui.cpp:1234
+#: client/scenes/lobby_gui.cpp:1249
msgid "Enable body tracking?"
msgstr "ボディトラッキングを有効にしますか?"
-#: client/scenes/lobby_gui.cpp:1242
+#: client/scenes/lobby_gui.cpp:1257
msgid "Welcome to WiVRn"
msgstr "WiVRnへようこそ!"
-#: client/scenes/lobby_gui.cpp:1270
+#: client/scenes/lobby_gui.cpp:1285
msgid "Yes"
msgstr "はい"
-#: client/scenes/lobby_gui.cpp:1277
+#: client/scenes/lobby_gui.cpp:1292
msgid "No"
msgstr "いいえ"
-#: client/scenes/lobby_gui.cpp:1296 client/scenes/lobby_gui.cpp:1942
+#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
msgid "Licenses"
msgstr "ライセンス"
-#: client/scenes/lobby_gui.cpp:1572
+#: client/scenes/lobby_gui.cpp:1587
msgid "Microphone is enabled"
msgstr "マイクは有効です"
-#: client/scenes/lobby_gui.cpp:1573
+#: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is disabled"
msgstr "マイクは無効です"
-#: client/scenes/lobby_gui.cpp:1582
+#: client/scenes/lobby_gui.cpp:1597
msgid "Hand tracking is enabled"
msgstr "ハンドトラッキングは有効です"
-#: client/scenes/lobby_gui.cpp:1583
+#: client/scenes/lobby_gui.cpp:1598
msgid "Hand tracking is disabled"
msgstr "ハンドラッキングは無効です"
-#: client/scenes/lobby_gui.cpp:1592
+#: client/scenes/lobby_gui.cpp:1607
msgid "Eye tracking is enabled"
msgstr "アイトラッキングは有効です"
-#: client/scenes/lobby_gui.cpp:1593
+#: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is disabled"
msgstr "アイトラッキングは無効です"
-#: client/scenes/lobby_gui.cpp:1603
+#: client/scenes/lobby_gui.cpp:1618
msgid "Face tracking is enabled"
msgstr "フェーストラッキングは有効です"
-#: client/scenes/lobby_gui.cpp:1604
+#: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is disabled"
msgstr "フェーストラッキングは無効です"
-#: client/scenes/lobby_gui.cpp:1618
+#: client/scenes/lobby_gui.cpp:1633
msgid "Body tracking is enabled"
msgstr "ボディトラッキングは有効です"
-#: client/scenes/lobby_gui.cpp:1619
+#: client/scenes/lobby_gui.cpp:1634
msgid "Body tracking is disabled"
msgstr "ボディトラッキングは無効です"
-#: client/scenes/lobby_gui.cpp:1635
+#: client/scenes/lobby_gui.cpp:1650
msgid "Add server"
msgstr "サーバーを追加する"
-#: client/scenes/lobby_gui.cpp:1921
+#: client/scenes/lobby_gui.cpp:1936
msgid "Server list"
msgstr "サーバー"
-#: client/scenes/lobby_gui.cpp:1924 client/scenes/stream_gui.cpp:996
+#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:990
msgid "Settings"
msgstr "設定"
-#: client/scenes/lobby_gui.cpp:1927
+#: client/scenes/lobby_gui.cpp:1942
msgid "Post-processing"
msgstr "ポストエフェクト"
-#: client/scenes/lobby_gui.cpp:1930
+#: client/scenes/lobby_gui.cpp:1945
msgid "Customize"
msgstr "カスタマイズ"
-#: client/scenes/lobby_gui.cpp:1934
+#: client/scenes/lobby_gui.cpp:1949
msgid "Debug"
msgstr "デバッグ"
-#: client/scenes/lobby_gui.cpp:1939
+#: client/scenes/lobby_gui.cpp:1954
msgid "About"
msgstr "WiVRnについて"
-#: client/scenes/lobby_gui.cpp:1945
+#: client/scenes/lobby_gui.cpp:1960
msgid "Exit"
msgstr "完了"
-#: client/scenes/lobby_gui.cpp:1962
+#: client/scenes/lobby_gui.cpp:1977
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -508,51 +532,51 @@ msgstr ""
"メイン・パネルを動かすには、グリップを握るか、\n"
"手のひらを上向きにしましょう。"
-#: client/scenes/lobby_gui.cpp:1964
+#: client/scenes/lobby_gui.cpp:1979
msgid "Press the grip button to move the main window"
msgstr "グリップを握ってパネルを動かしましょう。"
-#: client/scenes/lobby_gui_customize.cpp:208
+#: client/scenes/lobby_gui_customize.cpp:213
msgid "Locally loaded environment"
msgstr "ローカル環境"
-#: client/scenes/lobby_gui_customize.cpp:221
+#: client/scenes/lobby_gui_customize.cpp:226
#, c++-format
msgid "Locally loaded environment ({})"
msgstr "ローカル環境({})"
-#: client/scenes/lobby_gui_customize.cpp:296
+#: client/scenes/lobby_gui_customize.cpp:300
#, c++-format
msgid "Cannot load local environment: {}"
msgstr "ローカル環境ロードできません:{}"
-#: client/scenes/lobby_gui_customize.cpp:329
+#: client/scenes/lobby_gui_customize.cpp:333
#, c++-format
msgid "Cannot load environment list: {}"
msgstr "環境リストをロードできませんでした:{}"
-#: client/scenes/lobby_gui_customize.cpp:459
+#: client/scenes/lobby_gui_customize.cpp:463
#, c++-format
msgid "Author: {}"
msgstr "作者:{}"
-#: client/scenes/lobby_gui_customize.cpp:463
+#: client/scenes/lobby_gui_customize.cpp:467
#, c++-format
msgid "Size: {:.1f} MB"
msgstr "サイズ:{:.1f} MB"
-#: client/scenes/lobby_gui_customize.cpp:543
+#: client/scenes/lobby_gui_customize.cpp:547
msgid "Delete this model"
msgstr "モデルを削除しますか?"
-#: client/scenes/lobby_gui_customize.cpp:579
-#: client/scenes/lobby_gui_customize.cpp:785
+#: client/scenes/lobby_gui_customize.cpp:583
+#: client/scenes/lobby_gui_customize.cpp:789
#, c++-format
msgid "HTTP error {} when downloading {}"
msgstr "{}をダウンロード中にHTTP {}が発生しました。"
-#: client/scenes/lobby_gui_customize.cpp:587
-#: client/scenes/lobby_gui_customize.cpp:793
+#: client/scenes/lobby_gui_customize.cpp:591
+#: client/scenes/lobby_gui_customize.cpp:797
#, c++-format
msgid ""
"Curl error when downloading {}\n"
@@ -561,29 +585,29 @@ msgstr ""
"{}をダウンロード中にCurlエラーが発生しました。\n"
"{}: {}"
-#: client/scenes/lobby_gui_customize.cpp:648
+#: client/scenes/lobby_gui_customize.cpp:652
#, c++-format
msgid "Really delete {}?"
msgstr "{}を削除しますか?"
-#: client/scenes/lobby_gui_customize.cpp:652
+#: client/scenes/lobby_gui_customize.cpp:656
msgid "Delete"
msgstr "削除"
-#: client/scenes/lobby_gui_customize.cpp:733
+#: client/scenes/lobby_gui_customize.cpp:737
#, c++-format
msgid "Cannot load environment: {}"
msgstr "環境をロードできませんでした:{}"
-#: client/scenes/lobby_gui_customize.cpp:741
+#: client/scenes/lobby_gui_customize.cpp:745
msgid "Loading environment"
msgstr "ホーム環境をロード中"
-#: client/scenes/lobby_gui_customize.cpp:820
+#: client/scenes/lobby_gui_customize.cpp:824
msgid "Download more environments"
msgstr "ホーム環境をダウンロード"
-#: client/scenes/lobby_gui_customize.cpp:828
+#: client/scenes/lobby_gui_customize.cpp:832
msgid "Open local glTF model"
msgstr "glTFファイルを開く"
@@ -595,11 +619,11 @@ msgstr "フォビエーション解除"
msgid "Network"
msgstr "ネットワーク"
-#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
+#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
msgid "Download"
msgstr "ダウンロード"
-#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
+#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Upload"
msgstr "アップロード"
@@ -640,107 +664,107 @@ msgstr "表示"
msgid "Predicted"
msgstr "予測時間"
-#: client/scenes/stream_gui.cpp:344
+#: client/scenes/stream_gui.cpp:343
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "「Motion-to-photon」推定遅延 {}ミリ秒"
-#: client/scenes/stream_gui.cpp:351
+#: client/scenes/stream_gui.cpp:348
msgid "Press the grip button to move the window"
msgstr "グリップを握ってパネルを動かしましょう。"
-#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
+#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "両方のサムスティックを同時に押すことで設定表示"
-#: client/scenes/stream_gui.cpp:375
+#: client/scenes/stream_gui.cpp:372
msgid "Motion to photon latency"
msgstr "「Motion-to-photon」遅延"
-#: client/scenes/stream_gui.cpp:464
+#: client/scenes/stream_gui.cpp:458
msgid "Bitrate:"
msgstr "ビットレート:"
-#: client/scenes/stream_gui.cpp:474
+#: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate"
msgstr "クリックしてビットレートを調整"
-#: client/scenes/stream_gui.cpp:537
+#: client/scenes/stream_gui.cpp:531
msgid "Foveation center override"
msgstr "光学中心の調整"
-#: client/scenes/stream_gui.cpp:540
+#: client/scenes/stream_gui.cpp:534
msgid "Enable"
msgstr "有効"
-#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
+#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614
#, c++-format
msgid "Height {:.1f} deg"
msgstr "仰角 {:.1f}°"
-#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
+#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615
#, c++-format
msgid "Distance {:.2f} m"
msgstr "距離 {:.2f}m"
-#: client/scenes/stream_gui.cpp:550
+#: client/scenes/stream_gui.cpp:544
msgid "Default"
msgstr "デフォルト"
-#: client/scenes/stream_gui.cpp:561
+#: client/scenes/stream_gui.cpp:555
msgid "Change"
msgstr "編集"
-#: client/scenes/stream_gui.cpp:594
+#: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "右スティックでビットレートを調整しましょう"
-#: client/scenes/stream_gui.cpp:595
+#: client/scenes/stream_gui.cpp:589
msgid "Press A to go back"
msgstr "「A」を押して戻る"
-#: client/scenes/stream_gui.cpp:596
+#: client/scenes/stream_gui.cpp:590
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "ビットレート:{}Mbps"
-#: client/scenes/stream_gui.cpp:618
+#: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center"
msgstr "ジョイスティックを使って中心点を調整しましょう。"
-#: client/scenes/stream_gui.cpp:619
+#: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel"
msgstr "AかBを押してキャンセル。"
-#: client/scenes/stream_gui.cpp:677
+#: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:"
msgstr "XRアプリの実行"
-#: client/scenes/stream_gui.cpp:694
+#: client/scenes/stream_gui.cpp:688
msgid "Overlays"
msgstr "オーバーレイ"
-#: client/scenes/stream_gui.cpp:733
+#: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application"
msgstr "終了シグナルを送信する"
-#: client/scenes/stream_gui.cpp:983
+#: client/scenes/stream_gui.cpp:977
msgid "Applications"
msgstr "アプリ"
-#: client/scenes/stream_gui.cpp:986
+#: client/scenes/stream_gui.cpp:980
msgid "Start"
msgstr "実行する"
-#: client/scenes/stream_gui.cpp:999
+#: client/scenes/stream_gui.cpp:993
msgid "Stats"
msgstr "統計情報"
-#: client/scenes/stream_gui.cpp:1005
+#: client/scenes/stream_gui.cpp:999
msgid "Statistics overlay"
msgstr "統計オーバーレイ"
-#: client/scenes/stream_gui.cpp:1008
+#: client/scenes/stream_gui.cpp:1002
msgid "Compact view"
msgstr "コンパクト・モード"
diff --git a/monado-rev b/monado-rev
index f599eb9c..aa15862e 100644
--- a/monado-rev
+++ b/monado-rev
@@ -1 +1 @@
-317b480450257e2ba24643000b1a2c1505012cf7
+0877fc240d397d2a6f233cd1044d1942d046480f
diff --git a/server/driver/polynomial_interpolator.h b/server/driver/polynomial_interpolator.h
index 94504482..8e1f54dd 100644
--- a/server/driver/polynomial_interpolator.h
+++ b/server/driver/polynomial_interpolator.h
@@ -44,7 +44,7 @@ public:
struct sample
{
XrTime production_timestamp = std::numeric_limits::lowest();
- XrTime timestamp;
+ XrTime timestamp = std::numeric_limits::lowest();
std::optional y;
std::optional dy;
};
@@ -100,7 +100,24 @@ public:
}
}
- sample get_at(XrTime timestamp)
+ std::pair get_bounds() const
+ {
+ std::pair result{
+ std::numeric_limits::max(),
+ std::numeric_limits::lowest(),
+ };
+ for (const auto & sample: data)
+ {
+ if (sample.y)
+ {
+ result.first = std::min(result.first, sample.timestamp);
+ result.second = std::max(result.second, sample.timestamp);
+ }
+ }
+ return result;
+ }
+
+ sample get_at(XrTime timestamp) const
{
Eigen::Matrix A;
Eigen::Matrix b;
@@ -111,9 +128,14 @@ public:
// This allows a small buffer so that polynomial extrapolation fills the gap of networking hiccups
timestamp = std::min(timestamp, production_timestamp + (wivrn::max_extrapolation_ns * 11) / 10);
+ const sample * closest = data.data();
+
int row = 0;
for (const auto && [i, sample]: std::ranges::enumerate_view(data))
{
+ if (std::abs(closest->timestamp - timestamp) > std::abs(sample.timestamp - timestamp))
+ closest = &sample;
+
if (not sample.y)
continue;
@@ -146,14 +168,13 @@ public:
}
}
+ // Data turned invalid, return it
+ if (not closest->y)
+ return *closest;
+
// Not enough data to extrapolate
if (row < 2)
{
- auto closest = std::ranges::min_element(data, std::less{}, [&](const auto & sample) {
- if (not sample.y)
- return std::numeric_limits::max();
- return std::abs(sample.timestamp - timestamp);
- });
if (closest->y and std::abs(closest->production_timestamp - timestamp) < 1'000'000'000)
return *closest;
return {};
diff --git a/server/driver/pose_list.cpp b/server/driver/pose_list.cpp
index d4179106..a091c261 100644
--- a/server/driver/pose_list.cpp
+++ b/server/driver/pose_list.cpp
@@ -100,6 +100,11 @@ pose_list::pose_list(wivrn::device_id id) : device(id)
dumper.emplace(dump);
}
+std::pair pose_list::get_bounds() const
+{
+ return positions.get_bounds();
+}
+
void pose_list::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
{
if (source)
diff --git a/server/driver/pose_list.h b/server/driver/pose_list.h
index d64151a8..da70e720 100644
--- a/server/driver/pose_list.h
+++ b/server/driver/pose_list.h
@@ -63,6 +63,8 @@ public:
pose_list(wivrn::device_id id);
+ std::pair get_bounds() const;
+
void update_tracking(const wivrn::from_headset::tracking &, const clock_offset & offset);
void set_derived(pose_list * source, xrt_pose offset, bool force = false);
diff --git a/server/driver/tracking_control.cpp b/server/driver/tracking_control.cpp
index dbdda1b4..1cb6c3ee 100644
--- a/server/driver/tracking_control.cpp
+++ b/server/driver/tracking_control.cpp
@@ -67,6 +67,13 @@ void wivrn::tracking_control::resolve(XrDuration frame_time, XrDuration latency)
XrDuration step = frame_time;
switch (device_id(device))
{
+ // High frequency, but not extrapolation
+ case device_id::EYE_GAZE:
+ req.min_prediction = latency;
+ req.max_prediction = frame_time + latency;
+ step = 3'000'000;
+ break;
+
// High frequency polling for those
case device_id::HEAD:
case device_id::LEFT_GRIP:
@@ -77,11 +84,11 @@ void wivrn::tracking_control::resolve(XrDuration frame_time, XrDuration latency)
case device_id::RIGHT_PALM:
case device_id::LEFT_PINCH_POSE:
case device_id::RIGHT_PINCH_POSE:
- case device_id::EYE_GAZE:
step = 3'000'000;
break;
+
+ // Face tracking can't extrapolate
case device_id::FACE:
- // Face tracking can't extrapolate
res.pattern.push_back({
.device = device_id(device),
.prediction_ns = 0,
diff --git a/server/driver/wivrn_comp_target.cpp b/server/driver/wivrn_comp_target.cpp
index d07d4a02..4f68371d 100644
--- a/server/driver/wivrn_comp_target.cpp
+++ b/server/driver/wivrn_comp_target.cpp
@@ -651,6 +651,13 @@ static void comp_wivrn_flush(struct comp_target * ct)
r->StartFrameCapture(NULL, NULL);
#endif
+ if (cn->cnx.get_info().eye_gaze)
+ {
+ // FIXME: actually get the gaze data here
+ auto now = os_monotonic_get_ns();
+ cn->cnx.add_tracking_request(device_id::EYE_GAZE, cn->c->base.layer_accum.data.display_time_ns, now, now);
+ }
+
vk::CommandBuffer cmd;
// apply foveation for current frame
if (cn->c->base.frame_params.one_projection_layer_fast_path)
diff --git a/server/driver/wivrn_eye_tracker.cpp b/server/driver/wivrn_eye_tracker.cpp
index fc8b8e4c..3b332cf6 100644
--- a/server/driver/wivrn_eye_tracker.cpp
+++ b/server/driver/wivrn_eye_tracker.cpp
@@ -34,13 +34,13 @@
namespace wivrn
{
-wivrn_eye_tracker::wivrn_eye_tracker(xrt_device * hmd, wivrn_session & cnx) :
+wivrn_eye_tracker::wivrn_eye_tracker(wivrn_session & cnx) :
xrt_device{
.name = XRT_DEVICE_EYE_GAZE_INTERACTION,
.device_type = XRT_DEVICE_TYPE_EYE_TRACKER,
.str = "WiVRn Eye Tracker",
.serial = "WiVRn Eye Tracker",
- .tracking_origin = hmd->tracking_origin,
+ .tracking_origin = &origin,
.input_count = 1,
.inputs = &gaze_input,
.supported = {
@@ -50,6 +50,10 @@ wivrn_eye_tracker::wivrn_eye_tracker(xrt_device * hmd, wivrn_session & cnx) :
.get_tracked_pose = method_pointer<&wivrn_eye_tracker::get_tracked_pose>,
.destroy = [](xrt_device *) {},
},
+ origin{
+ .type = XRT_TRACKING_TYPE_ATTACHABLE,
+ .initial_offset = XRT_POSE_IDENTITY,
+ },
gaze_input{
.active = true,
.name = XRT_INPUT_GENERIC_EYE_GAZE_POSE,
@@ -68,6 +72,8 @@ xrt_result_t wivrn_eye_tracker::get_tracked_pose(xrt_input_name name, int64_t at
{
if (name == XRT_INPUT_GENERIC_EYE_GAZE_POSE)
{
+ if (auto [min, max] = gaze.get_bounds(); min <= max)
+ at_timestamp_ns = std::clamp(at_timestamp_ns, min, max);
auto [production_timestamp, relation] = gaze.get_at(at_timestamp_ns);
*out_relation = relation;
cnx.add_tracking_request(device_id::EYE_GAZE, at_timestamp_ns, production_timestamp);
diff --git a/server/driver/wivrn_eye_tracker.h b/server/driver/wivrn_eye_tracker.h
index 45927bf4..c685de28 100644
--- a/server/driver/wivrn_eye_tracker.h
+++ b/server/driver/wivrn_eye_tracker.h
@@ -24,6 +24,7 @@
#include "wivrn_packets.h"
#include "xrt/xrt_defines.h"
#include "xrt/xrt_device.h"
+#include "xrt/xrt_tracking.h"
#include
#include
@@ -34,6 +35,7 @@ class wivrn_session;
class wivrn_eye_tracker : public xrt_device
{
+ xrt_tracking_origin origin;
std::mutex mutex;
xrt_input gaze_input;
pose_list gaze;
@@ -41,7 +43,7 @@ class wivrn_eye_tracker : public xrt_device
public:
using base = xrt_device;
- wivrn_eye_tracker(xrt_device * hmd, wivrn_session &);
+ wivrn_eye_tracker(wivrn_session &);
xrt_result_t update_inputs();
void update_tracking(const from_headset::tracking &, const clock_offset &);
diff --git a/server/driver/wivrn_foveation.cpp b/server/driver/wivrn_foveation.cpp
index 6274ada4..cde6b75e 100644
--- a/server/driver/wivrn_foveation.cpp
+++ b/server/driver/wivrn_foveation.cpp
@@ -22,7 +22,6 @@
#include "wivrn_foveation.h"
#include "driver/xrt_cast.h"
-#include "math/m_api.h"
#include "utils/wivrn_vk_bundle.h"
#include "wivrn_packets.h"
#include "xrt/xrt_defines.h"
@@ -277,7 +276,7 @@ void wivrn_foveation::compute_params(
if (foveated_width < extent_w)
{
auto distance = manual_foveation.enabled ? manual_foveation.distance : convergence_distance;
- auto angle_x = convergence_angle(distance, eye_x[i], e.x);
+ auto angle_x = convergence_angle(distance, eye_x[i], -e.x);
auto center = angles_to_center(angle_x, fov.angle_left, fov.angle_right);
fill_param_2d(center, foveated_width, extent_w, params[i].x);
}
@@ -287,7 +286,7 @@ void wivrn_foveation::compute_params(
size_t extent_h = std::abs(src[i].extent.h);
if (foveated_height < extent_h)
{
- auto angle_y = e.y;
+ auto angle_y = -e.y;
if (is_zero_quat(gaze) and not manual_foveation.enabled)
{
// Natural gaze is not straight forward, adjust the angle
@@ -347,26 +346,12 @@ void wivrn_foveation::update_tracking(const from_headset::tracking & tracking, c
const uint8_t orientation_ok = from_headset::tracking::orientation_valid | from_headset::tracking::orientation_tracked;
- eye_x[0] = tracking.views[0].pose.position.x;
- eye_x[1] = tracking.views[1].pose.position.x;
-
- std::optional head;
-
- for (const auto & pose: tracking.device_poses)
+ if (tracking.view_flags & XR_VIEW_STATE_POSITION_VALID_BIT)
{
- if (pose.device != device_id::HEAD)
- continue;
-
- if ((pose.flags & orientation_ok) != orientation_ok)
- return;
-
- head = xrt_cast(pose.pose.orientation);
- break;
+ eye_x[0] = tracking.views[0].pose.position.x;
+ eye_x[1] = tracking.views[1].pose.position.x;
}
- if (!head.has_value())
- return;
-
for (const auto & pose: tracking.device_poses)
{
if (pose.device != device_id::EYE_GAZE)
@@ -375,9 +360,8 @@ void wivrn_foveation::update_tracking(const from_headset::tracking & tracking, c
if ((pose.flags & orientation_ok) != orientation_ok)
return;
- xrt_quat qgaze = xrt_cast(pose.pose.orientation);
- math_quat_unrotate(&qgaze, &head.value(), &gaze);
- break;
+ gaze = xrt_cast(pose.pose.orientation);
+ return;
}
}
@@ -399,7 +383,7 @@ static void fill_ubo(
bool flip,
size_t offset,
size_t size,
- int count)
+ [[maybe_unused]] int count)
{
assert(params.size() % 2 == 1);
const int n_ratio = (params.size() - 1) / 2;
diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp
index 217555f5..cb1bd40f 100644
--- a/server/driver/wivrn_session.cpp
+++ b/server/driver/wivrn_session.cpp
@@ -216,7 +216,8 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection
#endif
if (get_info().eye_gaze || is_forced_extension("EXT_eye_gaze_interaction"))
{
- eye_tracker = std::make_unique(&hmd, *this);
+ // The tracker space needs to be attached to the head pose once the space overseer is created
+ eye_tracker = std::make_unique(*this);
static_roles.eyes = eye_tracker.get();
xdevs[xdev_count++] = eye_tracker.get();
}
@@ -367,6 +368,22 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptrspace_overseer = *out_xspovrs;
+ if (self->eye_tracker)
+ {
+ xrt_space * head_space;
+ auto res = xrt_space_overseer_create_pose_space(self->space_overseer, &self->hmd, XRT_INPUT_GENERIC_HEAD_POSE, &head_space);
+ if (res == XRT_SUCCESS)
+ {
+ res = xrt_space_overseer_attach_device(self->space_overseer, self->eye_tracker.get(), head_space);
+ xrt_space_reference(&head_space, NULL);
+ }
+ if (res != XRT_SUCCESS)
+ {
+ U_LOG_W("failed to initialize eye tracker");
+ self->eye_tracker = nullptr;
+ }
+ }
+
auto dump_file = std::getenv("WIVRN_DUMP_TIMINGS");
if (dump_file)
{
diff --git a/server/main.cpp b/server/main.cpp
index a85ea096..f33318d8 100644
--- a/server/main.cpp
+++ b/server/main.cpp
@@ -513,7 +513,16 @@ gboolean control_received(gint fd, GIOCondition condition, gpointer user_data)
[&](const wivrn::from_headset::start_app & request) {
const auto & apps = list_applications();
if (auto it = apps.find(request.app_id); it != apps.end())
- children->start_application(it->second.exec, it->second.path);
+ {
+ try
+ {
+ children->start_application(it->second.exec, it->second.path);
+ }
+ catch (std::exception & e)
+ {
+ std::cerr << "Failed to launch application " << it->second.name.at("") << ": " << e.what() << std::endl;
+ }
+ }
},
[&](const from_monado::headset_connected &) {
stop_publishing();