Compare commits
175
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4d5a235d8 | ||
|
|
ab2ee24e90 | ||
|
|
20cf6ea2e0 | ||
|
|
3621404e71 | ||
|
|
e51d653bd7 | ||
|
|
3afed5549e | ||
|
|
6317d77dba | ||
|
|
6f50ba3979 | ||
|
|
f99fb8fa18 | ||
|
|
ab82fb5866 | ||
|
|
91a41b306e | ||
|
|
fbfda1fc40 | ||
|
|
8d531cbc53 | ||
|
|
c96d600db2 | ||
|
|
b907eb63ad | ||
|
|
7dc1daaf73 | ||
|
|
8e60a03aaf | ||
|
|
a8fa6c3961 | ||
|
|
bd4f21ab67 | ||
|
|
3f37bd7570 | ||
|
|
2e8a83eb5a | ||
|
|
6cd65de21d | ||
|
|
34a4ffcb59 | ||
|
|
8d13d910e8 | ||
|
|
5bdcf783cf | ||
|
|
1939ed027c | ||
|
|
0626bacc10 | ||
|
|
6273a54776 | ||
|
|
658d4997f2 | ||
|
|
f28d70e7b3 | ||
|
|
bc1c0b9e93 | ||
|
|
7c2057ec9e | ||
|
|
01c4f0343a | ||
|
|
aff498bc2d | ||
|
|
9a55178b41 | ||
|
|
1755c4de0b | ||
|
|
ead740a8d5 | ||
|
|
60563ef0de | ||
|
|
c31d3537d8 | ||
|
|
518d4b24d0 | ||
|
|
59cab00c52 | ||
|
|
65894401c1 | ||
|
|
231e4c1cc0 | ||
|
|
91c72de89c | ||
|
|
2264b68553 | ||
|
|
0b368aed08 | ||
|
|
7c84b55b6a | ||
|
|
3ba9fae20d | ||
|
|
7bcad7804b | ||
|
|
b5e59dabfa | ||
|
|
98bb0c56c5 | ||
|
|
9edb8fd2ae | ||
|
|
f5c1f0af1b | ||
|
|
1393ff0f11 | ||
|
|
bca2e29dd8 | ||
|
|
1e1c6c4075 | ||
|
|
ec88bbf8b0 | ||
|
|
f8ca5a9161 | ||
|
|
6a6a8ad473 | ||
|
|
5caebf6067 | ||
|
|
e9b8fddac1 | ||
|
|
c0cfcbecc7 | ||
|
|
feecb97214 | ||
|
|
fd514bda6a | ||
|
|
f5f917dfe0 | ||
|
|
2dd07da12d | ||
|
|
bc0c7c745c | ||
|
|
33e8016048 | ||
|
|
11abd8d9fe | ||
|
|
2e9c380f78 | ||
|
|
ee8d6229b3 | ||
|
|
fb3f7a1599 | ||
|
|
57ba039f51 | ||
|
|
186362f4f5 | ||
|
|
f880a987b2 | ||
|
|
1af4ae760c | ||
|
|
673d55e8a7 | ||
|
|
8c131c7ef4 | ||
|
|
e1ecca7e0a | ||
|
|
a08d35d404 | ||
|
|
114f15c4f3 | ||
|
|
5c4a094357 | ||
|
|
6a40aa46f4 | ||
|
|
59281c970b | ||
|
|
3133b55edf | ||
|
|
c12d16ef86 | ||
|
|
1f3e7d7b86 | ||
|
|
4edac2143f | ||
|
|
3e8a78002e | ||
|
|
a9907e0810 | ||
|
|
c3b4ebd446 | ||
|
|
199d2a15f8 | ||
|
|
f26bf12c38 | ||
|
|
85fb560ad1 | ||
|
|
eb3b89dc21 | ||
|
|
122011e930 | ||
|
|
015b242e27 | ||
|
|
68f6bf5e48 | ||
|
|
2063cae3ae | ||
|
|
efde4bf247 | ||
|
|
f2b5bd506a | ||
|
|
ffd5cf882a | ||
|
|
d79ee4c43b | ||
|
|
286278dde0 | ||
|
|
c1be3d08af | ||
|
|
c83956748d | ||
|
|
09031b9aa5 | ||
|
|
b8ca0b524f | ||
|
|
1d481f7b77 | ||
|
|
87d024e78b | ||
|
|
b1a325c102 | ||
|
|
5337af4c56 | ||
|
|
eb156e82a0 | ||
|
|
793b0c8d81 | ||
|
|
99b883d747 | ||
|
|
39d50479b1 | ||
|
|
0ffd998896 | ||
|
|
9ebac86b75 | ||
|
|
391f69ba17 | ||
|
|
ffe02e6b46 | ||
|
|
59e3d41305 | ||
|
|
dee36472ef | ||
|
|
24847eb88f | ||
|
|
234ce61e23 | ||
|
|
dcf44dbf9b | ||
|
|
23d7067985 | ||
|
|
46b6f39a41 | ||
|
|
f5393d4fae | ||
|
|
6656547e6b | ||
|
|
7b23715310 | ||
|
|
4b7ebda75d | ||
|
|
78ee60620a | ||
|
|
12ecede0e7 | ||
|
|
b3fe3b23a3 | ||
|
|
a971949c9b | ||
|
|
77b44fb217 | ||
|
|
4e296d780a | ||
|
|
6e4f69b327 | ||
|
|
775f386db6 | ||
|
|
09e787493c | ||
|
|
c7e2a61cda | ||
|
|
c9f8e6a542 | ||
|
|
2696fa3b24 | ||
|
|
5d0b87afce | ||
|
|
b383aa4c20 | ||
|
|
a67673327b | ||
|
|
c4265d80a5 | ||
|
|
dd874eea4b | ||
|
|
b9c1320823 | ||
|
|
833e405060 | ||
|
|
e6c8488283 | ||
|
|
505de3d625 | ||
|
|
631025a513 | ||
|
|
a0bddec054 | ||
|
|
c0dc193247 | ||
|
|
aa3a1808f8 | ||
|
|
07bc8c9bac | ||
|
|
2375775a9c | ||
|
|
e23b571d7e | ||
|
|
7e014a7a33 | ||
|
|
c4e6cd623e | ||
|
|
6553036a73 | ||
|
|
a4201481aa | ||
|
|
209acc793d | ||
|
|
f77e6e669c | ||
|
|
16076a05c8 | ||
|
|
3c91e4eca8 | ||
|
|
1635bdabce | ||
|
|
4908f50a00 | ||
|
|
442e09dcfc | ||
|
|
855539fab0 | ||
|
|
ba39b4da0b | ||
|
|
13ff9231f0 | ||
|
|
1696512385 | ||
|
|
4604b061d7 |
+1
-1
@@ -106,6 +106,6 @@ SpacesInAngles: false
|
||||
SpacesInCStyleCastParentheses: false
|
||||
SpacesInParentheses: false
|
||||
SpacesInSquareBrackets: false
|
||||
Standard: Cpp11
|
||||
Standard: Latest
|
||||
TabWidth: 8
|
||||
UseTab: ForIndentation
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
# Disable hand tracking
|
||||
set left hand_tracking_active false
|
||||
set right hand_tracking_active false
|
||||
|
||||
# Reset positions
|
||||
set head position 0.0 1.5 0.2
|
||||
set head rotation 0.0 0.0 0.0 1.0
|
||||
set left position -0.2 1.3 -0.3
|
||||
set left rotation 0.4 0 0 0.9
|
||||
set right position 0.2 1.3 -0.3
|
||||
set right rotation 0.4 0 0 0.9
|
||||
|
||||
# Server list
|
||||
set right direction -1.8 1.55 -1
|
||||
sleep 1
|
||||
set right trigger_value 1
|
||||
sleep 1
|
||||
set right trigger_value 0
|
||||
sleep 1
|
||||
exec grim -g "0,0 2560x1440" ${LANG}/screenshot-01-list.png
|
||||
|
||||
|
||||
# Connect to the first server
|
||||
set right direction 0.2 1.42 -1
|
||||
sleep 1
|
||||
set right trigger_value 1
|
||||
sleep 1
|
||||
set right trigger_value 0
|
||||
sleep 5
|
||||
exec grim -g "0,0 2560x1440" ${LANG}/screenshot-02-connect.png
|
||||
|
||||
# Cancel
|
||||
set right direction -0.3 1.25 -1
|
||||
sleep 1
|
||||
set right trigger_value 1
|
||||
sleep 1
|
||||
set right trigger_value 0
|
||||
sleep 1
|
||||
|
||||
|
||||
# Add server
|
||||
set right direction -1.45 1.55 -1
|
||||
sleep 1
|
||||
set right trigger_value 1
|
||||
sleep 1
|
||||
set right trigger_value 0
|
||||
sleep 1
|
||||
set right rotation 0.4 0 0 0.9
|
||||
|
||||
set head position 0.0 1.5 0.5
|
||||
set left position -0.2 1.4 0.2
|
||||
set left direction -0.1 -0.3 -1
|
||||
set right position 0.2 1.4 0.2
|
||||
set right direction -0.1 -0.3 -1
|
||||
|
||||
sleep 1
|
||||
exec grim -g "0,0 2560x1440" ${LANG}/screenshot-03-add-server.png
|
||||
set head position 0.0 1.5 0.2
|
||||
set left position -0.2 1.3 -0.3
|
||||
set left rotation 0.4 0 0 0.9
|
||||
set right position 0.2 1.3 -0.3
|
||||
set right rotation 0.4 0 0 0.9
|
||||
|
||||
|
||||
# Cancel
|
||||
set right direction -2.2 1.05 -1
|
||||
sleep 1
|
||||
set right trigger_value 1
|
||||
sleep 1
|
||||
set right trigger_value 0
|
||||
sleep 1
|
||||
|
||||
|
||||
# Settings
|
||||
set right direction -1.9 1.5 -1
|
||||
sleep 1
|
||||
set right trigger_value 1
|
||||
sleep 1
|
||||
set right trigger_value 0
|
||||
sleep 1
|
||||
set right rotation 0.4 0 0 0.9
|
||||
sleep 1
|
||||
exec grim -g "0,0 2560x1440" ${LANG}/screenshot-04-settings.png
|
||||
|
||||
# Post-processing
|
||||
set right direction -1.95 1.45 -1
|
||||
sleep 1
|
||||
set right trigger_value 1
|
||||
sleep 1
|
||||
set right trigger_value 0
|
||||
sleep 1
|
||||
set right rotation 0.4 0 0 0.9
|
||||
sleep 1
|
||||
exec grim -g "0,0 2560x1440" ${LANG}/screenshot-07-post-processing.png
|
||||
|
||||
# About
|
||||
set right direction -2.4 0.45 -1
|
||||
sleep 1
|
||||
set right trigger_value 1
|
||||
sleep 1
|
||||
set right trigger_value 0
|
||||
sleep 1
|
||||
set right rotation 0.4 0 0 0.9
|
||||
sleep 1
|
||||
exec grim -g "0,0 2560x1440" ${LANG}/screenshot-05-about.png
|
||||
|
||||
# Licences
|
||||
set right direction -2.4 0.32 -1
|
||||
sleep 1
|
||||
set right trigger_value 1
|
||||
sleep 1
|
||||
set right trigger_value 0
|
||||
sleep 1
|
||||
exec grim -g "0,0 2560x1440" ${LANG}/screenshot-06-licence.png
|
||||
@@ -10,12 +10,11 @@ env:
|
||||
jobs:
|
||||
build-android-only:
|
||||
name: Android
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ vars.APK_ONLY != '' }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
hmd: ['Standard']
|
||||
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
|
||||
|
||||
steps:
|
||||
@@ -33,13 +32,6 @@ jobs:
|
||||
vulkan-components: Glslang, SPIRV-Tools
|
||||
vulkan-use-cache: true
|
||||
|
||||
- name: set up JDK
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: gradle
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install glslang-tools librsvg2-bin gettext npm
|
||||
@@ -68,10 +60,8 @@ jobs:
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
sudo rm /usr/local/bin/cmake
|
||||
"${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager" --install "cmake;3.30.3"
|
||||
chmod +x gradlew
|
||||
./gradlew -Psuffix=".github.nightly" -Pwivrn_css=images/wivrn-nightly.css -Pwivrn_app_name="WiVRn Nightly" -Pwivrn_compress_glb=ON assemble${{ matrix.hmd }}${{ matrix.buildtype }}
|
||||
./gradlew -Psuffix=".github.nightly" -Pwivrn_css=images/wivrn-nightly.css -Pwivrn_app_name="WiVRn Nightly" -Pwivrn_compress_glb=ON assemble${{ matrix.buildtype }}
|
||||
|
||||
- name: Prepare before archiving artifacts
|
||||
run: |
|
||||
@@ -84,7 +74,7 @@ jobs:
|
||||
- name: Archive APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: apk-${{ matrix.hmd }}-${{ (github.event_name == 'pull_request' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
||||
name: apk-${{ (github.event_name == 'pull_request' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
||||
path: apk/*.apk
|
||||
retention-days: 7
|
||||
|
||||
@@ -92,7 +82,7 @@ jobs:
|
||||
if: ${{ matrix.buildtype != 'Release' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: symbols-${{ matrix.hmd }}-${{ matrix.buildtype }}
|
||||
name: symbols-${{ matrix.buildtype }}
|
||||
path: debug/**/*.so
|
||||
retention-days: 7
|
||||
|
||||
|
||||
+98
-201
@@ -5,40 +5,68 @@ on:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
BUILD_TYPE: Release
|
||||
SERVER_DEPS: libx264-dev libavcodec-dev libavutil-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev nlohmann-json3-dev librsvg2-dev libdrm-dev libglib2.0-dev-bin libpipewire-0.3-dev libpulse-dev libcli11-dev libnotify-dev libarchive-dev libudev-dev
|
||||
|
||||
jobs:
|
||||
build-server:
|
||||
name: Linux server
|
||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
||||
# You can convert this to a matrix build if you need cross-platform coverage.
|
||||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||
build-linux:
|
||||
name: Linux
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ vars.APK_ONLY == '' }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
cmake_preset: ['server', 'server-no-systemd', 'server-no-system-boost']
|
||||
config:
|
||||
- preset: 'client'
|
||||
packages: libboost-all-dev libharfbuzz-dev libfreetype-dev libavcodec-dev libavutil-dev libswscale-dev librsvg2-bin gettext libcurl4-openssl-dev libfontconfig-dev
|
||||
# dashboard requires a more recent Ubuntu, have it out of this job
|
||||
- preset: 'dissector-no-system-boost'
|
||||
packages: libboost-all-dev wireshark-dev
|
||||
- preset: 'server'
|
||||
packages: libboost-all-dev libsystemd-dev
|
||||
- preset: 'server-no-systemd'
|
||||
packages: libboost-all-dev
|
||||
- preset: 'server-no-system-boost'
|
||||
packages: libsystemd-dev
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Apt dependencies
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
|
||||
with:
|
||||
fetch-depth: 0
|
||||
packages: ccache ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}}
|
||||
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
create-symlink: true
|
||||
key: linux-${{matrix.config.preset}}
|
||||
job-summary: ""
|
||||
restore-keys: linux-
|
||||
append-timestamp: false
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
key: cmake-linux-${{matrix.config.preset}}
|
||||
path: |
|
||||
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.*
|
||||
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip
|
||||
${{github.workspace}}/cmake-fetch/*.tar.*
|
||||
restore-keys: cmake-linux-
|
||||
|
||||
- name: Install dependencies
|
||||
run: >
|
||||
sudo apt-get update && sudo apt-get install libvulkan-dev libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev libboost-all-dev librsvg2-bin libssl-dev libnotify-dev librsvg2-dev libarchive-dev
|
||||
if: ${{ matrix.config.preset == 'client' }}
|
||||
run: |
|
||||
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.2/KTX-Software-4.4.2-Linux-x86_64.deb
|
||||
sudo dpkg --install KTX-Software-4.4.2-Linux-x86_64.deb
|
||||
npm install --global @gltf-transform/cli@4.1.1
|
||||
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944
|
||||
uses: humbletim/setup-vulkan-sdk@v1.2.1
|
||||
with:
|
||||
vulkan-query-version: 1.3.296.0
|
||||
vulkan-components: Vulkan-Headers, Glslang, SPIRV-Tools
|
||||
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Reflect, SPIRV-Tools
|
||||
vulkan-use-cache: true
|
||||
|
||||
- name: Configure CMake
|
||||
@@ -47,20 +75,23 @@ jobs:
|
||||
run: >
|
||||
cmake -B ${{github.workspace}}/build
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
--preset ${{ matrix.cmake_preset }}
|
||||
-DFETCHCONTENT_BASE_DIR=${{github.workspace}}/cmake-fetch
|
||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
||||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
--preset ${{ matrix.config.preset }}
|
||||
-DWIVRN_USE_SYSTEM_OPENXR=OFF
|
||||
|
||||
- name: Package build dependencies
|
||||
if: ${{ matrix.cmake_preset == 'server' }}
|
||||
if: ${{ matrix.config.preset == 'server' }}
|
||||
# For easier packaging, build dependencies are made available as a separate archive
|
||||
run: (cd ${{github.workspace}}/build/_deps/ ; tar --create --xz *-src) > ${{github.workspace}}/server-build-deps.tar.xz
|
||||
run: (cd ${{github.workspace}}/cmake-fetch ; tar --create --xz *-src) > ${{github.workspace}}/server-build-deps.tar.xz
|
||||
|
||||
- name: Build
|
||||
# Build your program with the given configuration
|
||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||
|
||||
- name: Publish build dependencies
|
||||
if: ${{ matrix.cmake_preset == 'server' }}
|
||||
if: ${{ matrix.config.preset == 'server' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: server-build-deps
|
||||
@@ -68,7 +99,7 @@ jobs:
|
||||
|
||||
- name: Release build dependencies
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/') && matrix.cmake_preset == 'server'
|
||||
if: startsWith(github.ref, 'refs/tags/') && matrix.config.preset == 'server'
|
||||
with:
|
||||
tag_name: ${{ inputs.ref }}
|
||||
generate_release_notes: true
|
||||
@@ -76,26 +107,38 @@ jobs:
|
||||
files: server-build-deps.tar.xz
|
||||
|
||||
build-dashboard:
|
||||
name: Linux dashboard
|
||||
#FIXME: merge with the matrixed build once Ubuntu gets updated
|
||||
name: Linux Dashboard
|
||||
runs-on: ubuntu-24.04
|
||||
container: ubuntu:plucky
|
||||
if: ${{ vars.APK_ONLY == '' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: >
|
||||
apt-get update && apt-get install --yes libvulkan-dev libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev qt6-base-dev qt6-tools-dev libcap-dev pkexec libboost-all-dev librsvg2-bin libssl-dev libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git qcoro-qt6-dev librsvg2-dev libarchive-dev libglm-dev glslang-tools
|
||||
# runtime: qml6-module-qtqml-workerscript qml6-module-qtquick-dialogs
|
||||
- name: Prepare
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
key: cmake-linux-dashboard
|
||||
path: |
|
||||
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.*
|
||||
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip
|
||||
${{github.workspace}}/cmake-fetch/*.tar.*
|
||||
restore-keys: cmake-linux-
|
||||
|
||||
- name: Configure CMake
|
||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||
run: >
|
||||
cmake -B ${{github.workspace}}/build
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DFETCHCONTENT_BASE_DIR=${{github.workspace}}/cmake-fetch
|
||||
--preset dashboard
|
||||
-DWIVRN_USE_SYSTEM_OPENXR=OFF
|
||||
|
||||
- name: Build
|
||||
# Build your program with the given configuration
|
||||
@@ -106,7 +149,7 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ vars.APK_ONLY == '' }}
|
||||
container:
|
||||
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8
|
||||
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.9
|
||||
options: --privileged
|
||||
|
||||
steps:
|
||||
@@ -158,167 +201,13 @@ jobs:
|
||||
- run: nix flake check
|
||||
- run: nix build --print-build-logs
|
||||
|
||||
build-test-client:
|
||||
name: Linux client
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ vars.APK_ONLY == '' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
create-symlink: true
|
||||
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944
|
||||
with:
|
||||
vulkan-query-version: 1.3.296.0
|
||||
vulkan-components: Vulkan-Headers, Glslang, SPIRV-Tools
|
||||
vulkan-use-cache: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install libvulkan-dev libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev libxcb-glx0-dev gettext libfontconfig-dev libboost-all-dev librsvg2-bin libssl-dev sway grim mesa-vulkan-drivers wayland-protocols fonts-noto-cjk fonts-roboto libcurl4-openssl-dev
|
||||
|
||||
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.0/KTX-Software-4.4.0-Linux-x86_64.deb
|
||||
sudo dpkg --install KTX-Software-4.4.0-Linux-x86_64.deb
|
||||
npm install --global @gltf-transform/cli@4.1.1
|
||||
|
||||
- name: install server dependencies
|
||||
run: >
|
||||
sudo apt-get update && sudo apt-get install libavahi-glib-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev libcap-dev pkexec libnotify-dev librsvg2-dev libarchive-dev
|
||||
|
||||
- name: Configure CMake
|
||||
run: >
|
||||
cmake -B ${{github.workspace}}/build
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DWIVRN_USE_SYSTEM_OPENXR=OFF
|
||||
--preset everything
|
||||
-DWIVRN_BUILD_DASHBOARD=OFF
|
||||
-DWIVRN_BUILD_DISSECTOR=OFF
|
||||
|
||||
- name: Build
|
||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||
|
||||
- name: Build Monado
|
||||
# Disable XRT_FEATURE_OPENXR_VISIBILITY_MASK because of https://gitlab.freedesktop.org/monado/monado/-/issues/480
|
||||
run: |
|
||||
mkdir monado
|
||||
curl https://gitlab.freedesktop.org/Meumeu/monado/-/archive/5bdb51697685320e3f5d494210f25fb2967c9fc3/monado-main.tar.gz | tar -xz -C monado --strip-components=1
|
||||
patch --directory=${{github.workspace}}/monado --strip=1 < ${{github.workspace}}/patches/monado-ci/0001-remote-resolution.patch
|
||||
|
||||
DRIVERS=$(grep -oE "XRT_BUILD_DRIVER_[A-Z0-9_]*" monado/CMakeLists.txt | sort -u | grep -v XRT_BUILD_DRIVER_REMOTE | sed 's/\(.*\)/-D\1=OFF/')
|
||||
cmake monado -B ${{github.workspace}}/build-monado -DCMAKE_BUILD_TYPE=Release -DXRT_FEATURE_SERVICE_SYSTEMD=OFF -DXRT_FEATURE_SERVICE=OFF -DXRT_BUILD_DRIVER_REMOTE=ON -DXRT_MODULE_COMPOSITOR_MAIN=ON -DXRT_HAVE_WAYLAND=ON $DRIVERS -DXRT_MODULE_MONADO_REMOTECTL=ON -DBUILD_TESTING=OFF -DXRT_FEATURE_OPENXR_VISIBILITY_MASK=OFF
|
||||
|
||||
cmake --build ${{github.workspace}}/build-monado
|
||||
|
||||
- name: Take screenshots
|
||||
continue-on-error: true
|
||||
env:
|
||||
WLR_BACKENDS: headless
|
||||
WLR_RENDERER: pixman
|
||||
WLR_LIBINPUT_NO_DEVICES: 1
|
||||
XR_RUNTIME_JSON: ${{github.workspace}}/build-monado/openxr_monado-dev.json
|
||||
P_OVERRIDE_ACTIVE_CONFIG: remote
|
||||
WIVRN_CONTROLLER: meta-quest-touch-plus
|
||||
WIVRN_GRIP_LEFT_OFFSET: '0 0 0 0 45 0'
|
||||
WIVRN_GRIP_RIGHT_OFFSET: '0 0 0 0 45 0'
|
||||
XRT_COMPOSITOR_SCALE_PERCENTAGE: '100'
|
||||
run: |
|
||||
echo "xwayland disable" > sway-config
|
||||
echo -e "output HEADLESS-1 {\n mode 2560x1440@60Hz\n}" >> sway-config
|
||||
sway -c sway-config &
|
||||
sleep 10
|
||||
export WAYLAND_DISPLAY=$(cd "${XDG_RUNTIME_DIR}" && ls -tr wayland* | tail -1)
|
||||
|
||||
mkdir -p ~/.config/fontconfig
|
||||
cp ${{github.workspace}}/.github/fonts.conf ~/.config/fontconfig/fonts.conf
|
||||
|
||||
${{github.workspace}}/build/server/wivrn-server --no-encrypt --no-publish-service &
|
||||
WIVRN_SERVER_PID=$!
|
||||
|
||||
mkdir -p ~/.config/wivrn
|
||||
echo '{"servers": [{"autoconnect": false, "manual": true, "pretty_name": "Deep Thought", "hostname": "localhost", "port": 9757, "tcp_only": false, "cookie": ""}], "first_run": false}' > ~/.config/wivrn/client.json.in
|
||||
|
||||
for LANG in en $(basename -a ${{github.workspace}}/locale/*)
|
||||
do
|
||||
mkdir ${LANG}
|
||||
|
||||
if [ ${LANG} = fr ]
|
||||
then
|
||||
cat ~/.config/wivrn/client.json.in | jq .virtual_keyboard_layout=\"AZERTY\" > ~/.config/wivrn/client.json
|
||||
else
|
||||
cat ~/.config/wivrn/client.json.in | jq .virtual_keyboard_layout=\"QWERTY\" > ~/.config/wivrn/client.json
|
||||
fi
|
||||
|
||||
${{github.workspace}}/build/bin/wivrn &
|
||||
WIVRN_PID=$!
|
||||
sleep 10
|
||||
${{github.workspace}}/build-monado/src/xrt/targets/remotectl/monado-remotectl 127.0.0.1 4242 < ${{github.workspace}}/.github/screenshot-script.txt
|
||||
killall wivrn
|
||||
wait $WIVRN_PID || true
|
||||
done
|
||||
|
||||
killall wivrn-server
|
||||
wait $WIVRN_SERVER_PID || true
|
||||
|
||||
- name: Upload screenshots
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Screenshots
|
||||
path: "*/screenshot-*.png"
|
||||
|
||||
build-dissector:
|
||||
name: Wireshark dissector
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ vars.APK_ONLY == '' }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
# Ubuntu 24.04 has boost 1.83, the dissector requires 1.84
|
||||
# cmake_preset: ['dissector', 'dissector-no-system-boost']
|
||||
cmake_preset: ['dissector-no-system-boost']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944
|
||||
with:
|
||||
vulkan-query-version: 1.3.296.0
|
||||
vulkan-components: Vulkan-Headers, Glslang, SPIRV-Tools
|
||||
vulkan-use-cache: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: >
|
||||
sudo apt-get update && sudo apt-get install libvulkan-dev libopenxr-dev wireshark wireshark-dev libssl-dev
|
||||
|
||||
- name: Configure CMake
|
||||
run: >
|
||||
cmake -B ${{github.workspace}}/build
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
--preset ${{ matrix.cmake_preset }}
|
||||
-DWIVRN_USE_SYSTEM_OPENXR=OFF
|
||||
|
||||
- name: Build
|
||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||
|
||||
build-android:
|
||||
name: Android
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ vars.APK_ONLY == '' }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
hmd: ['Standard']
|
||||
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus']
|
||||
|
||||
steps:
|
||||
@@ -327,18 +216,21 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944
|
||||
uses: humbletim/setup-vulkan-sdk@v1.2.1
|
||||
with:
|
||||
vulkan-query-version: 1.3.296.0
|
||||
vulkan-components: Glslang, SPIRV-Tools
|
||||
vulkan-use-cache: true
|
||||
|
||||
- name: set up JDK
|
||||
uses: actions/setup-java@v4
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: gradle
|
||||
key: cmake-android-${{matrix.buildtype}}
|
||||
path: |
|
||||
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.*
|
||||
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip
|
||||
${{github.workspace}}/cmake-fetch/*.tar.*
|
||||
${{github.workspace}}/cmake-fetch/*.zip
|
||||
restore-keys: cmake-android-
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -373,7 +265,7 @@ jobs:
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
VERSION=$(git describe --tags --always)
|
||||
VERSION=$(git describe --tags --always | sed "s/^v\([0-9]\)/\1/")
|
||||
if [ ${{ matrix.buildtype }} = 'Oculus' ]
|
||||
then
|
||||
SUFFIX=""
|
||||
@@ -400,14 +292,19 @@ jobs:
|
||||
fi
|
||||
fi
|
||||
|
||||
sudo rm /usr/local/bin/cmake
|
||||
"${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager" --install "cmake;3.30.3"
|
||||
|
||||
echo Setting version $VERSION and version code $VERSION_CODE in manifest
|
||||
echo Using stylesheet $CSS and name $APPNAME
|
||||
|
||||
chmod +x gradlew
|
||||
./gradlew -Pwivrn_version=$VERSION -Pwivrn_versionCode=$VERSION_CODE -Psuffix=$SUFFIX -Pwivrn_css=$CSS -Pwivrn_app_name="$APPNAME" -Pwivrn_compress_glb=ON assemble${{ matrix.hmd }}${{ matrix.buildtype }}
|
||||
./gradlew \
|
||||
-Pwivrn_version=$VERSION \
|
||||
-Pwivrn_versionCode=$VERSION_CODE \
|
||||
-Psuffix=$SUFFIX \
|
||||
-Pwivrn_css=$CSS \
|
||||
-Pwivrn_app_name="$APPNAME" \
|
||||
-Pwivrn_compress_glb=ON \
|
||||
-Pfetchcontent_base_dir=${{github.workspace}}/cmake-fetch \
|
||||
assemble${{ matrix.buildtype }}
|
||||
|
||||
- name: Upload build dir
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -430,7 +327,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ matrix.buildtype != 'Oculus' }}
|
||||
with:
|
||||
name: apk-${{ matrix.hmd }}-${{ (steps.secret-check.outputs.available == 'false' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
||||
name: apk-${{ (steps.secret-check.outputs.available == 'false' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
||||
path: apk/*.apk
|
||||
retention-days: 30
|
||||
|
||||
@@ -438,7 +335,7 @@ jobs:
|
||||
if: ${{ matrix.buildtype != 'Release' && matrix.buildtype != 'Oculus' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: symbols-${{ matrix.hmd }}-${{ matrix.buildtype }}
|
||||
name: symbols-${{ matrix.buildtype }}
|
||||
path: debug/**/*.so
|
||||
retention-days: 30
|
||||
|
||||
@@ -459,7 +356,7 @@ jobs:
|
||||
IS_DRAFT=
|
||||
fi
|
||||
|
||||
./ovr-platform-util upload-quest-build --app-id 7959676140827574 --token $OCULUS_TOKEN --apk apk/WiVRn-standard-oculus.apk --channel $CHANNEL --age-group TEENS_AND_ADULTS $IS_DRAFT --debug_symbols_dir debug/ --debug-symbols-pattern '*.so'
|
||||
./ovr-platform-util upload-quest-build --app-id 7959676140827574 --token $OCULUS_TOKEN --apk apk/WiVRn-oculus.apk --channel $CHANNEL --age-group TEENS_AND_ADULTS $IS_DRAFT --debug_symbols_dir debug/ --debug-symbols-pattern '*.so'
|
||||
|
||||
build-ubuntu:
|
||||
name: Build Ubuntu package
|
||||
@@ -475,7 +372,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt update
|
||||
apt install --yes libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev libcap-dev pkexec libboost-all-dev librsvg2-bin dpkg-dev pkg-config debhelper-compat build-essential lintian cmake libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git wget libssl-dev qcoro-qt6-dev librsvg2-dev libarchive-dev npm
|
||||
apt install --yes libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev pkexec libboost-all-dev librsvg2-bin dpkg-dev pkg-config debhelper-compat build-essential lintian cmake libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git wget libssl-dev qcoro-qt6-dev librsvg2-dev libarchive-dev npm
|
||||
|
||||
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb
|
||||
sudo dpkg --install KTX-Software-4.3.2-Linux-x86_64.deb
|
||||
@@ -537,7 +434,7 @@ jobs:
|
||||
release:
|
||||
name: Create release
|
||||
runs-on: ubuntu-22.04
|
||||
needs: [build-server, build-android, build-test-client, build-dissector, build-server-flatpak, build-ubuntu, build-dashboard]
|
||||
needs: [build-linux, build-android, build-server-flatpak, build-ubuntu]
|
||||
if: success() && startsWith(github.ref, 'refs/tags/')
|
||||
|
||||
steps:
|
||||
@@ -623,8 +520,8 @@ jobs:
|
||||
sync_fork_downstream:
|
||||
name: Sync fork downstream
|
||||
runs-on: ubuntu-24.04
|
||||
needs: [build-server, build-android]
|
||||
if: ${{ vars.APK_ONLY == '' }} && github.branch == 'master'
|
||||
needs: [build-linux, build-android]
|
||||
if: ${{ vars.APK_ONLY == '' && github.ref == 'refs/heads/master' }}
|
||||
steps:
|
||||
- name: Check for DOWNSTREAM_GITHUB_TOKEN
|
||||
id: downstream-secret-check
|
||||
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run clang-format style check for C/C++/Protobuf programs.
|
||||
uses: jidicula/clang-format-action@v4.13.0
|
||||
uses: jidicula/clang-format-action@2c659fea724e981e94741c0e7db663982cd7d3f4
|
||||
with:
|
||||
clang-format-version: '18'
|
||||
clang-format-version: '21'
|
||||
check-path: ${{ matrix.path }}
|
||||
|
||||
@@ -47,6 +47,9 @@
|
||||
<uses-permission android:name="com.oculus.permission.FACE_TRACKING" />
|
||||
<uses-permission android:name="com.picovr.permission.FACE_TRACKING" />
|
||||
<uses-permission android:name="com.oculus.permission.BODY_TRACKING" />
|
||||
<uses-permission android:name="android.permission.EYE_TRACKING_FINE" />
|
||||
<uses-permission android:name="android.permission.FACE_TRACKING" />
|
||||
<uses-permission android:name="android.permission.HAND_TRACKING" />
|
||||
|
||||
<!-- Required for XR_FB_render_model -->
|
||||
<uses-feature android:name="com.oculus.feature.RENDER_MODEL" android:required="false" />
|
||||
@@ -62,6 +65,12 @@
|
||||
<uses-feature android:name="wave.feature.lipexpression" android:required="false" />
|
||||
<uses-feature android:name="wave.feature.tracker" android:required="false" />
|
||||
|
||||
<!-- See https://developer.android.com/develop/xr/get-started -->
|
||||
<uses-feature android:name="android.software.xr.api.openxr" android:version="0x00010000" android:required="true" />
|
||||
<uses-feature android:name="android.hardware.xr.input.controller" android:required="false" />
|
||||
<uses-feature android:name="android.hardware.xr.input.hand_tracking" android:required="false" />
|
||||
<uses-feature android:name="android.hardware.xr.input.eye_tracking" android:required="false" />
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
android:hasCode="true"
|
||||
@@ -71,6 +80,9 @@
|
||||
|
||||
<profileable android:shell="true" />
|
||||
|
||||
<!-- https://developer.android.com/develop/xr/get-started#uses-native-library_openxr -->
|
||||
<uses-native-library android:name="libopenxr.google.so" android:required="false" />
|
||||
|
||||
<meta-data android:name="pvr.app.type" android:value="vr" />
|
||||
<meta-data android:name="pvr.sdk.version" android:value="OpenXR" />
|
||||
<meta-data android:name="picovr.software.eye_tracking" android:value="true" />
|
||||
@@ -91,6 +103,14 @@
|
||||
<!-- https://developers.meta.com/horizon/documentation/native/android/mobile-passthrough-loading-screens -->
|
||||
<meta-data android:name="com.oculus.ossplash.background" android:value="passthrough-contextual"/>
|
||||
|
||||
<!-- https://developer.android.com/develop/xr/get-started#xr_activity_start_mode_full_space_unmanaged -->
|
||||
<property
|
||||
android:name="android.window.PROPERTY_XR_ACTIVITY_START_MODE"
|
||||
android:value="XR_ACTIVITY_START_MODE_FULL_SPACE_UNMANAGED" />
|
||||
<property
|
||||
android:name="android.window.PROPERTY_XR_BOUNDARY_TYPE_RECOMMENDED"
|
||||
android:value="XR_BOUNDARY_TYPE_LARGE" />
|
||||
|
||||
<!-- The activity is the built-in NativeActivity framework class. -->
|
||||
<!-- launchMode is set to singleTask because there should never be multiple copies of the app running. -->
|
||||
<!-- Theme.Black.NoTitleBar.Fullscreen gives solid black instead of a (bad stereoscopic) gradient on app transition. -->
|
||||
|
||||
+27
-30
@@ -26,9 +26,11 @@ include(GNUInstallDirs)
|
||||
option(WIVRN_USE_SYSTEM_FREETYPE "Use system FreeType" ON)
|
||||
option(WIVRN_USE_SYSTEM_BOOST "Use system Boost headers" ON)
|
||||
option(WIVRN_USE_SYSTEM_OPENXR "Use system OpenXR headers" ON)
|
||||
option(WIVRN_USE_SYSTEM_LIBKTX "Use system KTX-Software library" ON)
|
||||
option(WIVRN_USE_SYSTEMD "Use libsystemd" ON)
|
||||
option(WIVRN_COMPRESS_GLB "Compress textures in GLB files with gltf-transform" OFF)
|
||||
option(WIVRN_USE_ANDROID_VALIDATION_LAYER "Download the android version of the Vulkan validation layer" OFF)
|
||||
option(WIVRN_USE_ANDROID_BIN_LIBKTX "Download the prebuilt libktx for android" OFF)
|
||||
option(WIVRN_BUILD_CLIENT "Build WiVRn client" OFF)
|
||||
option(WIVRN_BUILD_SERVER "Build WiVRn server" ON)
|
||||
option(WIVRN_BUILD_SERVER_LIBRARY "Build OpenXR library for WiVRn server" ${WIVRN_BUILD_SERVER})
|
||||
@@ -55,7 +57,6 @@ option(WIVRN_FEATURE_RENDERDOC "Support renderdoc" OFF)
|
||||
set(WIVRN_FEATURE_SOLARXR OFF) # Will be added back when merged in upstream Monado
|
||||
option(WIVRN_FEATURE_STEAMVR_LIGHTHOUSE "Enable SteamVR Lighthouse driver" OFF)
|
||||
|
||||
option(WIVRN_CHECK_CAPSYSNICE "Check if CAP_SYS_NICE is available at startup" ON)
|
||||
set(WIVRN_CSS "${CMAKE_SOURCE_DIR}/images/wivrn-local.css" CACHE STRING "Stylesheet to use to render SVGs" )
|
||||
|
||||
option(WIVRN_SHOW_IMGUI_DEMO_WINDOW "Show the Dear ImGui demo window in the client" OFF)
|
||||
@@ -112,7 +113,7 @@ if (WIVRN_BUILD_SERVER)
|
||||
endif()
|
||||
|
||||
if (WIVRN_USE_VAAPI)
|
||||
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter)
|
||||
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil)
|
||||
pkg_check_modules(LIBDRM REQUIRED IMPORTED_TARGET libdrm)
|
||||
endif()
|
||||
|
||||
@@ -171,21 +172,17 @@ if (WIVRN_BUILD_DASHBOARD)
|
||||
find_package(QCoro6 REQUIRED COMPONENTS Core Network Qml)
|
||||
qcoro_enable_coroutines()
|
||||
|
||||
if (WIVRN_CHECK_CAPSYSNICE)
|
||||
pkg_check_modules(libcap REQUIRED IMPORTED_TARGET libcap)
|
||||
endif()
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
endif()
|
||||
|
||||
if (WIVRN_BUILD_CLIENT OR WIVRN_BUILD_DASHBOARD)
|
||||
find_program(RSVG_CONVERT rsvg-convert REQUIRED)
|
||||
find_package(Gettext REQUIRED)
|
||||
endif()
|
||||
|
||||
if (WIVRN_BUILD_CLIENT)
|
||||
find_program(RSVG_CONVERT rsvg-convert REQUIRED)
|
||||
find_program(TOKTX toktx REQUIRED)
|
||||
|
||||
if (WIVRN_COMPRESS_GLB)
|
||||
@@ -198,13 +195,16 @@ if (WIVRN_BUILD_CLIENT)
|
||||
endif()
|
||||
|
||||
if (WIVRN_BUILD_CLIENT AND NOT ANDROID)
|
||||
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter)
|
||||
pkg_check_modules(LIBAV_CLIENT REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale)
|
||||
find_package(Fontconfig REQUIRED)
|
||||
|
||||
if (WIVRN_USE_SYSTEM_OPENXR)
|
||||
find_package(OpenXR 1.1.48 REQUIRED)
|
||||
endif()
|
||||
|
||||
if (WIVRN_USE_SYSTEM_LIBKTX)
|
||||
find_package(Ktx REQUIRED)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
@@ -229,52 +229,49 @@ endif()
|
||||
# Common dependencies
|
||||
FetchContent_Declare(boostpfr EXCLUDE_FROM_ALL SYSTEM URL https://github.com/boostorg/pfr/archive/refs/tags/2.2.0.tar.gz
|
||||
URL_HASH SHA256=6f490ec1383de5855dcf801c23f0a967f888eb6e1440b6ca0bf36c12d4ae7ac7)
|
||||
FetchContent_Declare(boost EXCLUDE_FROM_ALL SYSTEM URL https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz
|
||||
URL_HASH SHA256=2e64e5d79a738d0fa6fb546c6e5c2bd28f88d268a2a080546f74e5ff98f29d0e)
|
||||
FetchContent_Declare(boost EXCLUDE_FROM_ALL SYSTEM URL https://github.com/boostorg/boost/releases/download/boost-1.89.0/boost-1.89.0-cmake.tar.xz
|
||||
URL_HASH SHA256=67acec02d0d118b5de9eb441f5fb707b3a1cdd884be00ca24b9a73c995511f74)
|
||||
|
||||
# Client dependencies
|
||||
FetchContent_Declare(simdjson EXCLUDE_FROM_ALL SYSTEM URL https://github.com/simdjson/simdjson/archive/refs/tags/v3.10.1.tar.gz
|
||||
URL_HASH SHA256=1e8f881cb2c0f626c56cd3665832f1e97b9d4ffc648ad9e1067c134862bba060)
|
||||
FetchContent_Declare(simdjson EXCLUDE_FROM_ALL SYSTEM URL https://github.com/simdjson/simdjson/archive/refs/tags/v4.2.2.tar.gz
|
||||
URL_HASH SHA256=3efae22cb41f83299fe0b2e8a187af543d3dda93abbb910586f897df670f9eaa)
|
||||
FetchContent_Declare(fastgltf EXCLUDE_FROM_ALL SYSTEM URL https://github.com/spnda/fastgltf/archive/refs/tags/v0.9.0.tar.gz
|
||||
URL_HASH SHA256=0bb564e127b14c22f062db50f89381dd2e0a20dbaf4987ca138a4ae8728712f9)
|
||||
FetchContent_Declare(glm EXCLUDE_FROM_ALL SYSTEM URL https://github.com/g-truc/glm/archive/refs/tags/1.0.1.tar.gz
|
||||
URL_HASH SHA256=9f3174561fd26904b23f0db5e560971cbf9b3cbda0b280f04d5c379d03bf234c)
|
||||
FetchContent_Declare(glm EXCLUDE_FROM_ALL SYSTEM URL https://github.com/g-truc/glm/releases/download/1.0.2/glm-1.0.2.zip
|
||||
URL_HASH SHA256=a41adf423315e35489c1e67689c7bb74c7edd4d207a477b7b19c45cd440c2f67)
|
||||
FetchContent_Declare(openxr_loader EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/OpenXR-SDK/archive/refs/tags/release-1.1.48.tar.gz
|
||||
URL_HASH SHA256=c9372992dcdfac643e28796e41d4dbd36c4cdf0388d01fa89245628edae9d411)
|
||||
FetchContent_Declare(spdlog EXCLUDE_FROM_ALL SYSTEM URL https://github.com/gabime/spdlog/archive/refs/tags/v1.15.3.tar.gz
|
||||
URL_HASH SHA256=15a04e69c222eb6c01094b5c7ff8a249b36bb22788d72519646fb85feb267e67)
|
||||
FetchContent_Declare(spdlog EXCLUDE_FROM_ALL SYSTEM URL https://github.com/gabime/spdlog/archive/refs/tags/v1.16.0.tar.gz
|
||||
URL_HASH SHA256=8741753e488a78dd0d0024c980e1fb5b5c85888447e309d9cb9d949bdb52aa3e)
|
||||
FetchContent_Declare(stb EXCLUDE_FROM_ALL SYSTEM URL https://github.com/nothings/stb/archive/013ac3beddff3dbffafd5177e7972067cd2b5083.zip
|
||||
URL_HASH SHA256=b7f476902bbef1b30f8ecc2d9d95c459c32302c8b559d09b589b5955463b7af8)
|
||||
file(GLOB LIBKTX_PATCHES CONFIGURE_DEPENDS patches/libktx/*)
|
||||
set(KTX_GIT_VERSION_FULL "v4.4.0")
|
||||
FetchContent_Declare(libktx EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/${KTX_GIT_VERSION_FULL}.tar.gz
|
||||
URL_HASH SHA256=3585d76edcdcbe3a671479686f8c81c1c10339f419e4b02a9a6f19cc6e4e0612
|
||||
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${LIBKTX_PATCHES}
|
||||
set(KTX_VERSION "4.4.2")
|
||||
set(KTX_VERSION_FULL "v${KTX_VERSION}")
|
||||
FetchContent_Declare(libktx EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/${KTX_VERSION_FULL}.tar.gz
|
||||
URL_HASH SHA256=9412cb45045a503005acd47d98f9e8b47154634a50b4df21e17a1dfa8971d323
|
||||
)
|
||||
FetchContent_Declare(implot EXCLUDE_FROM_ALL SYSTEM URL https://github.com/epezent/implot/archive/3da8bd34299965d3b0ab124df743fe3e076fa222.zip
|
||||
URL_HASH SHA256=e9b439a94aa6f09fcf12ed9c2cd784efe5e99e96242122aa683e690b29f7a59f)
|
||||
file(GLOB IMGUI_PATCHES CONFIGURE_DEPENDS patches/imgui/*)
|
||||
FetchContent_Declare(imgui EXCLUDE_FROM_ALL SYSTEM URL https://github.com/ocornut/imgui/archive/refs/tags/v1.92.3.tar.gz
|
||||
URL_HASH SHA256=9212ee7c4718b1466a5d99e64bce3ef1965704afea4ba651f8d978d0791b7c7c
|
||||
FetchContent_Declare(imgui EXCLUDE_FROM_ALL SYSTEM URL https://github.com/ocornut/imgui/archive/refs/tags/v1.92.4.tar.gz
|
||||
URL_HASH SHA256=0e175d4d941112532549b418ced0bd546abe9024ecb9b5f431f8a67a2197b0ba
|
||||
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${IMGUI_PATCHES}
|
||||
)
|
||||
FetchContent_Declare(uni-algo EXCLUDE_FROM_ALL SYSTEM URL https://github.com/uni-algo/uni-algo/archive/v1.2.0.tar.gz
|
||||
URL_HASH SHA256=f2a1539cd8635bc6088d05144a73ecfe7b4d74ee0361fabed6f87f9f19e74ca9)
|
||||
FetchContent_Declare(entt EXCLUDE_FROM_ALL SYSTEM URL https://github.com/skypjack/entt/archive/refs/tags/v3.15.0.tar.gz
|
||||
URL_HASH SHA256=01466fcbf77618a79b62891510c0bbf25ac2804af5751c84982b413852234d66)
|
||||
FetchContent_Declare(curl EXCLUDE_FROM_ALL SYSTEM URL https://github.com/curl/curl/releases/download/curl-8_15_0/curl-8.15.0.tar.xz
|
||||
URL_HASH SHA256=6cd0a8a5b126ddfda61c94dc2c3fc53481ba7a35461cf7c5ab66aa9d6775b609)
|
||||
FetchContent_Declare(spirv-reflect EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/SPIRV-Reflect/archive/refs/tags/vulkan-sdk-1.4.321.0.tar.gz
|
||||
URL_HASH SHA256=254ed36128e7abe8fb12ef804319d0790e059093c116e9fe55d4003880515f85)
|
||||
FetchContent_Declare(curl EXCLUDE_FROM_ALL SYSTEM URL https://github.com/curl/curl/releases/download/curl-8_17_0/curl-8.17.0.tar.xz
|
||||
URL_HASH SHA256=955f6e729ad6b3566260e8fef68620e76ba3c31acf0a18524416a185acf77992)
|
||||
FetchContent_Declare(spirv-reflect EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/SPIRV-Reflect/archive/refs/tags/vulkan-sdk-1.4.328.1.tar.gz
|
||||
URL_HASH SHA256=77f4b5b5630d960d7c17e39ddd5bf2e7dd62e6d8da24259ed14ca5b59783ea35)
|
||||
|
||||
file(GLOB MONADO_PATCHES CONFIGURE_DEPENDS patches/monado/*)
|
||||
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS monado-rev)
|
||||
file(STRINGS monado-rev MONADO_REV)
|
||||
# Server dependencies
|
||||
FetchContent_Declare(monado
|
||||
GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado.git
|
||||
# The flatpak manifest is updated automatically
|
||||
GIT_TAG ${MONADO_REV}
|
||||
URL https://gitlab.freedesktop.org/monado/monado/-/archive/${MONADO_REV}/monado-${MONADO_REV}.tar.gz
|
||||
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${MONADO_PATCHES}
|
||||
EXCLUDE_FROM_ALL
|
||||
)
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
"inherits": "everything",
|
||||
"binaryDir": "${sourceDir}/build-no-systemd",
|
||||
"cacheVariables": {
|
||||
"WIVRN_BUILD_WIVRNCTL": "OFF",
|
||||
"WIVRN_USE_SYSTEMD": "OFF"
|
||||
}
|
||||
},
|
||||
@@ -108,6 +109,7 @@
|
||||
"inherits": "server",
|
||||
"binaryDir": "${sourceDir}/build-server-no-systemd",
|
||||
"cacheVariables": {
|
||||
"WIVRN_BUILD_WIVRNCTL": "OFF",
|
||||
"WIVRN_USE_SYSTEMD": "OFF"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -49,7 +49,7 @@ systemctl enable --now avahi-daemon
|
||||
- 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**".
|
||||
|
||||
You can now start an OpenXR application on your computer. For Steam games, you will also need to set the launch options to be able to use WiVRn:
|
||||
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.
|
||||
- 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.
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+14
-48
@@ -4,7 +4,7 @@ buildscript {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.12.1'
|
||||
classpath 'com.android.tools.build:gradle:8.13.0'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ tasks.register("generatePngs", GeneratePngsTask) {
|
||||
|
||||
android {
|
||||
namespace = "org.meumeu.wivrn"
|
||||
ndkVersion = "28.1.13356709"
|
||||
ndkVersion = "28.2.13676358"
|
||||
|
||||
lint {
|
||||
disable += "ExpiredTargetSdkVersion"
|
||||
@@ -107,7 +107,7 @@ android {
|
||||
// for Vulkan, need at least 24
|
||||
// for AImage_getHardwareBuffer, API 26
|
||||
minSdkVersion 29
|
||||
compileSdkVersion 32
|
||||
compileSdkVersion 34
|
||||
targetSdkVersion 32 // for Oculus Store
|
||||
|
||||
versionName = project.hasProperty('wivrn_version') ? wivrn_version : "1.0"
|
||||
@@ -115,18 +115,22 @@ android {
|
||||
def showImguiDemo = project.hasProperty('wivrn_show_imgui_demo') ? wivrn_show_imgui_demo : 'OFF'
|
||||
def showDebugMenu = project.hasProperty('wivrn_show_debug_menu') ? wivrn_show_debug_menu : 'OFF'
|
||||
def compressGlb = project.hasProperty('wivrn_compress_glb') ? wivrn_compress_glb : 'OFF'
|
||||
def fetchcontentBaseDir = project.hasProperty('fetchcontent_base_dir') ? ['-DFETCHCONTENT_BASE_DIR=' + fetchcontent_base_dir] : []
|
||||
|
||||
externalNativeBuild {
|
||||
def css = project.hasProperty('wivrn_css') ? project.wivrn_css: "images/wivrn-local.css"
|
||||
|
||||
cmake {
|
||||
arguments '-DANDROID_TOOLCHAIN=clang',
|
||||
arguments = ['-DANDROID_TOOLCHAIN=clang',
|
||||
'-DANDROID_STL=c++_static',
|
||||
'-DCMAKE_ANDROID_NDK_VERSION=' + ndkVersion,
|
||||
'-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON',
|
||||
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
||||
'-DCMAKE_ANDROID_ASSETS_DIRECTORIES=' + layout.buildDirectory.dir("assets").get().asFile,
|
||||
'-DCMAKE_ANDROID_LIB_DIRECTORIES=' + layout.buildDirectory.dir("libs").get().asFile,
|
||||
'-DWIVRN_USE_SYSTEM_BOOST=OFF',
|
||||
'-DWIVRN_USE_SYSTEM_FREETYPE=OFF',
|
||||
'-DWIVRN_USE_ANDROID_BIN_LIBKTX=ON',
|
||||
'-DWIVRN_BUILD_CLIENT=ON',
|
||||
'-DWIVRN_BUILD_SERVER=OFF',
|
||||
'-DWIVRN_BUILD_SERVER_LIBRARY=OFF',
|
||||
@@ -136,9 +140,12 @@ android {
|
||||
'-DWIVRN_SHOW_IMGUI_DEMO_WINDOW=' + showImguiDemo,
|
||||
'-DWIVRN_CLIENT_DEBUG_MENU=' + showDebugMenu,
|
||||
'-DWIVRN_CSS=' + css,
|
||||
'-DWIVRN_COMPRESS_GLB=' + compressGlb
|
||||
'-DWIVRN_COMPRESS_GLB=' + compressGlb] +
|
||||
fetchcontentBaseDir
|
||||
resValue "string", "app_name", project.hasProperty('wivrn_app_name') ? project.wivrn_app_name : "WiVRn Local"
|
||||
abiFilters 'arm64-v8a'//, 'x86_64'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,32 +208,19 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
flavorDimensions "device"
|
||||
|
||||
productFlavors {
|
||||
standard {
|
||||
dimension "device"
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
abiFilters 'arm64-v8a'//, 'x86_64'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
java.srcDirs = ['client/java']
|
||||
res.srcDirs = [ 'resources', layout.buildDirectory.dir('generated_resources') ]
|
||||
|
||||
assets.srcDirs 'assets'
|
||||
assets.srcDirs = ['assets', layout.buildDirectory.dir("assets")]
|
||||
}
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
version = '3.30.3'
|
||||
version = '3.31.5'
|
||||
path 'CMakeLists.txt'
|
||||
}
|
||||
}
|
||||
@@ -237,32 +231,4 @@ android {
|
||||
// It probably works with merge${variant.name.capitalize()}Assets too
|
||||
tasks["generate${variant.name.capitalize()}Assets"].dependsOn "externalNativeBuild${variant.name.capitalize()}"
|
||||
}
|
||||
|
||||
productFlavors.all { variant ->
|
||||
sourceSets {
|
||||
"${variant.name}" {
|
||||
assets.srcDirs layout.buildDirectory.dir("assets${variant.name.capitalize()}")
|
||||
}
|
||||
}
|
||||
|
||||
externalNativeBuild{
|
||||
cmake {
|
||||
arguments '-DCMAKE_ANDROID_ASSETS_DIRECTORIES=' + layout.buildDirectory.dir("assets${variant.name.capitalize()}").get().asFile
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes.all { variant ->
|
||||
sourceSets {
|
||||
"${variant.name}" {
|
||||
jniLibs.srcDirs layout.buildDirectory.dir("libs${variant.name.capitalize()}")
|
||||
}
|
||||
}
|
||||
|
||||
externalNativeBuild{
|
||||
cmake {
|
||||
arguments '-DCMAKE_ANDROID_LIB_DIRECTORIES=' + layout.buildDirectory.dir("libs${variant.name.capitalize()}").get().asFile
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+26
-9
@@ -11,7 +11,23 @@ set(SPIRV_REFLECT_EXECUTABLE OFF)
|
||||
set(SPIRV_REFLECT_STATIC_LIB ON)
|
||||
set(SPIRV_REFLECT_INSTALL OFF)
|
||||
|
||||
FetchContent_MakeAvailable(simdjson spdlog glm fastgltf imgui stb implot uni-algo entt libktx spirv-reflect)
|
||||
FetchContent_MakeAvailable(simdjson spdlog glm fastgltf imgui stb implot uni-algo entt spirv-reflect)
|
||||
if(ANDROID AND WIVRN_USE_ANDROID_BIN_LIBKTX)
|
||||
if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/KTX-Software-${KTX_VERSION}-Android.zip)
|
||||
file(DOWNLOAD
|
||||
https://github.com/KhronosGroup/KTX-Software/releases/download/${KTX_VERSION_FULL}/KTX-Software-${KTX_VERSION}-Android.zip
|
||||
${FETCHCONTENT_BASE_DIR}/KTX-Software-${KTX_VERSION}-Android.zip
|
||||
EXPECTED_HASH SHA256=9f84a395f37a185e2e21e77cfd3893e67271b616edf5feb39125f09ab4c06b29
|
||||
)
|
||||
endif()
|
||||
file(ARCHIVE_EXTRACT INPUT ${FETCHCONTENT_BASE_DIR}/KTX-Software-${KTX_VERSION}-Android.zip DESTINATION ${FETCHCONTENT_BASE_DIR})
|
||||
add_library(ktx INTERFACE)
|
||||
target_link_libraries(ktx INTERFACE ${FETCHCONTENT_BASE_DIR}/KTX-Software-${KTX_VERSION}-Android/${ANDROID_ABI}/lib/libktx.so)
|
||||
target_include_directories(ktx INTERFACE ${FETCHCONTENT_BASE_DIR}/KTX-Software-${KTX_VERSION}-Android/${ANDROID_ABI}/include)
|
||||
elseif(WIVRN_USE_SYSTEM_LIBKTX AND NOT ANDROID)
|
||||
else()
|
||||
FetchContent_MakeAvailable(libktx)
|
||||
endif()
|
||||
|
||||
include(FreetypeHarfbuzz)
|
||||
include(CompileGLSL)
|
||||
@@ -65,7 +81,7 @@ else()
|
||||
target_link_libraries(wivrn openxr_loader)
|
||||
endif()
|
||||
|
||||
target_link_libraries(wivrn PkgConfig::LIBAV Fontconfig::Fontconfig CURL::libcurl)
|
||||
target_link_libraries(wivrn PkgConfig::LIBAV_CLIENT Fontconfig::Fontconfig CURL::libcurl)
|
||||
|
||||
file(GLOB PLATFORM_SOURCE CONFIGURE_DEPENDS
|
||||
"decoder/ffmpeg/*.cpp")
|
||||
@@ -150,7 +166,7 @@ target_compile_definitions(wivrn-imgui PUBLIC IMGUI_ENABLE_FREETYPE)
|
||||
# target_compile_definitions(wivrn-imgui PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS) # incompatible with implot
|
||||
# target_compile_definitions(wivrn-imgui PUBLIC IMGUI_ENABLE_FREETYPE_LUNASVG)
|
||||
target_compile_features(wivrn-imgui PRIVATE cxx_std_23)
|
||||
target_link_libraries(wivrn-imgui FreetypeHarfbuzz)
|
||||
target_link_libraries(wivrn-imgui FreetypeHarfbuzz Vulkan::Vulkan)
|
||||
|
||||
target_link_libraries(wivrn wivrn-imgui)
|
||||
|
||||
@@ -172,21 +188,22 @@ endif()
|
||||
if(USE_ANDROID_VALIDATION_LAYER)
|
||||
set(VVL_VERSION "1.4.321.0")
|
||||
|
||||
if(NOT EXISTS ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip)
|
||||
if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip)
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip SYMBOLIC)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip ${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip SYMBOLIC)
|
||||
else()
|
||||
file(DOWNLOAD https://github.com/KhronosGroup/Vulkan-ValidationLayers/releases/download/vulkan-sdk-${VVL_VERSION}/android-binaries-${VVL_VERSION}.zip ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip
|
||||
EXPECTED_HASH SHA256=75f2881ba7af0507c8cec13b4bf6c95556c6333485cdb8be41f608fccf762128)
|
||||
file(DOWNLOAD https://github.com/KhronosGroup/Vulkan-ValidationLayers/releases/download/vulkan-sdk-${VVL_VERSION}/android-binaries-${VVL_VERSION}.zip
|
||||
${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip
|
||||
EXPECTED_HASH SHA256=75f2881ba7af0507c8cec13b4bf6c95556c6333485cdb8be41f608fccf762128)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(VVL_ZIPFILE ${CMAKE_CURRENT_SOURCE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip)
|
||||
|
||||
file(ARCHIVE_EXTRACT INPUT ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip DESTINATION ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayer)
|
||||
file(ARCHIVE_EXTRACT INPUT ${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip DESTINATION ${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayer)
|
||||
|
||||
file(COPY
|
||||
${CMAKE_BINARY_DIR}/Vulkan-ValidationLayer/android-binaries-${VVL_VERSION}/${CMAKE_ANDROID_ARCH_ABI}
|
||||
${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayer/android-binaries-${VVL_VERSION}/${CMAKE_ANDROID_ARCH_ABI}
|
||||
DESTINATION ${CMAKE_ANDROID_LIB_DIRECTORIES})
|
||||
else()
|
||||
# silence "Manually-specified variables were not used by the project" warning
|
||||
|
||||
@@ -0,0 +1,427 @@
|
||||
#include "hid.h"
|
||||
|
||||
#include "scene.h"
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#define NUM_KEYCODES 226
|
||||
/// Maps Android KeyCodes to Linux key event codes
|
||||
static const int KEYCODE_TO_VK[NUM_KEYCODES] = {
|
||||
0, // KEYCODE_UNKNOWN
|
||||
0, // KEYCODE_SOFT_LEFT
|
||||
0, // KEYCODE_SOFT_RIGHT
|
||||
0, // KEYCODE_HOME
|
||||
0, // KEYCODE_BACK
|
||||
0, // KEYCODE_CALL
|
||||
0, // KEYCODE_ENDCALL
|
||||
KEY_0, // KEYCODE_0
|
||||
KEY_1, // KEYCODE_1
|
||||
KEY_2, // KEYCODE_2
|
||||
KEY_3, // KEYCODE_3
|
||||
KEY_4, // KEYCODE_4
|
||||
KEY_5, // KEYCODE_5
|
||||
KEY_6, // KEYCODE_6
|
||||
KEY_7, // KEYCODE_7
|
||||
KEY_8, // KEYCODE_8
|
||||
KEY_9, // KEYCODE_9
|
||||
0, // KEYCODE_STAR
|
||||
0, // KEYCODE_POUND
|
||||
KEY_UP, // KEYCODE_DPAD_UP
|
||||
KEY_DOWN, // KEYCODE_DPAD_DOWN
|
||||
KEY_LEFT, // KEYCODE_DPAD_LEFT
|
||||
KEY_RIGHT, // KEYCODE_DPAD_RIGHT
|
||||
0, // KEYCODE_DPAD_CENTER
|
||||
|
||||
// there's no way to discern between BT keyboard & device buttons using NDK,
|
||||
// so having these mapped consumes all events from the HMD volume rocker.
|
||||
// alternatively, move the handling to stream.cpp
|
||||
0, // KEYCODE_VOLUME_UP // KEY_VOLUMEUP
|
||||
0, // KEYCODE_VOLUME_DOWN // KEY_VOLUMEDOWN
|
||||
|
||||
0, // KEYCODE_POWER - device power button, do not consume
|
||||
0, // KEYCODE_CAMERA
|
||||
0, // KEYCODE_CLEAR
|
||||
KEY_A, // KEYCODE_A
|
||||
KEY_B, // KEYCODE_B
|
||||
KEY_C, // KEYCODE_C
|
||||
KEY_D, // KEYCODE_D
|
||||
KEY_E, // KEYCODE_E
|
||||
KEY_F, // KEYCODE_F
|
||||
KEY_G, // KEYCODE_G
|
||||
KEY_H, // KEYCODE_H
|
||||
KEY_I, // KEYCODE_I
|
||||
KEY_J, // KEYCODE_J
|
||||
KEY_K, // KEYCODE_K
|
||||
KEY_L, // KEYCODE_L
|
||||
KEY_M, // KEYCODE_M
|
||||
KEY_N, // KEYCODE_N
|
||||
KEY_O, // KEYCODE_O
|
||||
KEY_P, // KEYCODE_P
|
||||
KEY_Q, // KEYCODE_Q
|
||||
KEY_R, // KEYCODE_R
|
||||
KEY_S, // KEYCODE_S
|
||||
KEY_T, // KEYCODE_T
|
||||
KEY_U, // KEYCODE_U
|
||||
KEY_V, // KEYCODE_V
|
||||
KEY_W, // KEYCODE_W
|
||||
KEY_X, // KEYCODE_X
|
||||
KEY_Y, // KEYCODE_Y
|
||||
KEY_Z, // KEYCODE_Z
|
||||
KEY_COMMA, // KEYCODE_COMMA
|
||||
KEY_DOT, // KEYCODE_PERIOD
|
||||
KEY_LEFTALT, // KEYCODE_ALT_LEFT
|
||||
KEY_RIGHTALT, // KEYCODE_ALT_RIGHT
|
||||
KEY_LEFTSHIFT, // KEYCODE_SHIFT_LEFT
|
||||
KEY_RIGHTSHIFT, // KEYCODE_SHIFT_RIGHT
|
||||
KEY_TAB, // KEYCODE_TAB
|
||||
KEY_SPACE, // KEYCODE_SPACE
|
||||
0, // KEYCODE_SYM
|
||||
KEY_WWW, // KEYCODE_EXPLORER
|
||||
KEY_MAIL, // KEYCODE_ENVELOPE
|
||||
KEY_ENTER, // KEYCODE_ENTER
|
||||
KEY_BACKSPACE, // KEYCODE_DEL
|
||||
KEY_GRAVE, // KEYCODE_GRAVE
|
||||
KEY_MINUS, // KEYCODE_MINUS
|
||||
KEY_EQUAL, // KEYCODE_EQUALS
|
||||
KEY_LEFTBRACE, // KEYCODE_LEFT_BRACKET
|
||||
KEY_RIGHTBRACE, // KEYCODE_RIGHT_BRACKET
|
||||
KEY_BACKSLASH, // KEYCODE_BACKSLASH
|
||||
KEY_SEMICOLON, // KEYCODE_SEMICOLON
|
||||
KEY_APOSTROPHE, // KEYCODE_APOSTROPHE
|
||||
KEY_SLASH, // KEYCODE_SLASH
|
||||
0, // KEYCODE_AT
|
||||
0, // KEYCODE_NUM
|
||||
0, // KEYCODE_HEADSETHOOK
|
||||
0, // KEYCODE_FOCUS
|
||||
KEY_EQUAL, // KEYCODE_PLUS
|
||||
KEY_MENU, // KEYCODE_MENU
|
||||
0, // KEYCODE_NOTIFICATION
|
||||
KEY_SEARCH, // KEYCODE_SEARCH
|
||||
KEY_PLAYPAUSE, // KEYCODE_MEDIA_PLAY_PAUSE
|
||||
KEY_STOPCD, // KEYCODE_MEDIA_STOP
|
||||
KEY_NEXTSONG, // KEYCODE_MEDIA_NEXT
|
||||
KEY_PREVIOUSSONG, // KEYCODE_MEDIA_PREVIOUS
|
||||
KEY_REWIND, // KEYCODE_MEDIA_REWIND
|
||||
KEY_FASTFORWARD, // KEYCODE_MEDIA_FAST_FORWARD
|
||||
KEY_MUTE, // KEYCODE_MUTE
|
||||
KEY_PAGEUP, // KEYCODE_PAGE_UP
|
||||
KEY_PAGEDOWN, // KEYCODE_PAGE_DOWN
|
||||
0, // KEYCODE_PICTSYMBOLS
|
||||
0, // KEYCODE_SWITCH_CHARSET
|
||||
0, // KEYCODE_BUTTON_A
|
||||
0, // KEYCODE_BUTTON_B
|
||||
0, // KEYCODE_BUTTON_C
|
||||
0, // KEYCODE_BUTTON_X
|
||||
0, // KEYCODE_BUTTON_Y
|
||||
0, // KEYCODE_BUTTON_Z
|
||||
0, // KEYCODE_BUTTON_L1
|
||||
0, // KEYCODE_BUTTON_R1
|
||||
0, // KEYCODE_BUTTON_L2
|
||||
0, // KEYCODE_BUTTON_R2
|
||||
0, // KEYCODE_BUTTON_THUMBL
|
||||
0, // KEYCODE_BUTTON_THUMBR
|
||||
0, // KEYCODE_BUTTON_START
|
||||
0, // KEYCODE_BUTTON_SELECT
|
||||
0, // KEYCODE_BUTTON_MODE
|
||||
KEY_ESC, // KEYCODE_ESCAPE
|
||||
KEY_DELETE, // KEYCODE_FORWARD_DEL
|
||||
KEY_LEFTCTRL, // KEYCODE_CTRL_LEFT
|
||||
KEY_RIGHTCTRL, // KEYCODE_CTRL_RIGHT
|
||||
KEY_CAPSLOCK, // KEYCODE_CAPS_LOCK
|
||||
KEY_SCROLLLOCK, // KEYCODE_SCROLL_LOCK
|
||||
KEY_LEFTMETA, // KEYCODE_META_LEFT
|
||||
KEY_RIGHTMETA, // KEYCODE_META_RIGHT
|
||||
0, // KEYCODE_FUNCTION
|
||||
KEY_SYSRQ, // KEYCODE_SYSRQ
|
||||
KEY_PAUSE, // KEYCODE_BREAK
|
||||
KEY_HOME, // KEYCODE_MOVE_HOME
|
||||
KEY_END, // KEYCODE_MOVE_END
|
||||
KEY_INSERT, // KEYCODE_INSERT
|
||||
KEY_FORWARD, // KEYCODE_FORWARD
|
||||
KEY_PLAYCD, // KEYCODE_MEDIA_PLAY
|
||||
KEY_PAUSECD, // KEYCODE_MEDIA_PAUSE
|
||||
KEY_CLOSECD, // KEYCODE_MEDIA_CLOSE
|
||||
KEY_EJECTCD, // KEYCODE_MEDIA_EJECT
|
||||
KEY_RECORD, // KEYCODE_MEDIA_RECORD
|
||||
KEY_F1, // KEYCODE_F1
|
||||
KEY_F2, // KEYCODE_F2
|
||||
KEY_F3, // KEYCODE_F3
|
||||
KEY_F4, // KEYCODE_F4
|
||||
KEY_F5, // KEYCODE_F5
|
||||
KEY_F6, // KEYCODE_F6
|
||||
KEY_F7, // KEYCODE_F7
|
||||
KEY_F8, // KEYCODE_F8
|
||||
KEY_F9, // KEYCODE_F9
|
||||
KEY_F10, // KEYCODE_F10
|
||||
KEY_F11, // KEYCODE_F11
|
||||
KEY_F12, // KEYCODE_F12
|
||||
KEY_NUMLOCK, // KEYCODE_NUM_LOCK
|
||||
KEY_KP0, // KEYCODE_NUMPAD_0
|
||||
KEY_KP1, // KEYCODE_NUMPAD_1
|
||||
KEY_KP2, // KEYCODE_NUMPAD_2
|
||||
KEY_KP3, // KEYCODE_NUMPAD_3
|
||||
KEY_KP4, // KEYCODE_NUMPAD_4
|
||||
KEY_KP5, // KEYCODE_NUMPAD_5
|
||||
KEY_KP6, // KEYCODE_NUMPAD_6
|
||||
KEY_KP7, // KEYCODE_NUMPAD_7
|
||||
KEY_KP8, // KEYCODE_NUMPAD_8
|
||||
KEY_KP9, // KEYCODE_NUMPAD_9
|
||||
KEY_KPSLASH, // KEYCODE_NUMPAD_DIVIDE
|
||||
KEY_KPASTERISK, // KEYCODE_NUMPAD_MULTIPLY
|
||||
KEY_KPMINUS, // KEYCODE_NUMPAD_SUBTRACT
|
||||
KEY_KPPLUS, // KEYCODE_NUMPAD_ADD
|
||||
KEY_KPDOT, // KEYCODE_NUMPAD_DOT
|
||||
KEY_KPCOMMA, // KEYCODE_NUMPAD_COMMA
|
||||
KEY_KPENTER, // KEYCODE_NUMPAD_ENTER
|
||||
KEY_KPEQUAL, // KEYCODE_NUMPAD_EQUALS
|
||||
KEY_KPLEFTPAREN, // KEYCODE_NUMPAD_LEFT_PAREN
|
||||
KEY_KPRIGHTPAREN, // KEYCODE_NUMPAD_RIGHT_PAREN
|
||||
KEY_MUTE, // KEYCODE_VOLUME_MUTE
|
||||
0, // KEYCODE_INFO
|
||||
0, // KEYCODE_CHANNEL_UP
|
||||
0, // KEYCODE_CHANNEL_DOWN
|
||||
0, // KEYCODE_ZOOM_IN
|
||||
0, // KEYCODE_ZOOM_OUT
|
||||
0, // KEYCODE_TV
|
||||
0, // KEYCODE_WINDOW
|
||||
0, // KEYCODE_GUIDE
|
||||
0, // KEYCODE_DVR
|
||||
KEY_BOOKMARKS, // KEYCODE_BOOKMARK
|
||||
0, // KEYCODE_CAPTIONS
|
||||
0, // KEYCODE_SETTINGS
|
||||
0, // KEYCODE_TV_POWER
|
||||
0, // KEYCODE_TV_INPUT
|
||||
0, // KEYCODE_STB_POWER
|
||||
0, // KEYCODE_STB_INPUT
|
||||
0, // KEYCODE_AVR_POWER
|
||||
0, // KEYCODE_AVR_INPUT
|
||||
0, // KEYCODE_PROG_RED
|
||||
0, // KEYCODE_PROG_GREEN
|
||||
0, // KEYCODE_PROG_YELLOW
|
||||
0, // KEYCODE_PROG_BLUE
|
||||
0, // KEYCODE_APP_SWITCH
|
||||
0, // KEYCODE_BUTTON_1
|
||||
0, // KEYCODE_BUTTON_2
|
||||
0, // KEYCODE_BUTTON_3
|
||||
0, // KEYCODE_BUTTON_4
|
||||
0, // KEYCODE_BUTTON_5
|
||||
0, // KEYCODE_BUTTON_6
|
||||
0, // KEYCODE_BUTTON_7
|
||||
0, // KEYCODE_BUTTON_8
|
||||
0, // KEYCODE_BUTTON_9
|
||||
0, // KEYCODE_BUTTON_10
|
||||
0, // KEYCODE_BUTTON_11
|
||||
0, // KEYCODE_BUTTON_12
|
||||
0, // KEYCODE_BUTTON_13
|
||||
0, // KEYCODE_BUTTON_14
|
||||
0, // KEYCODE_BUTTON_15
|
||||
0, // KEYCODE_BUTTON_16
|
||||
KEY_LANGUAGE, // KEYCODE_LANGUAGE_SWITCH
|
||||
0, // KEYCODE_MANNER_MODE
|
||||
0, // KEYCODE_3D_MODE
|
||||
0, // KEYCODE_CONTACTS
|
||||
KEY_CALENDAR, // KEYCODE_CALENDAR
|
||||
0, // KEYCODE_MUSIC
|
||||
KEY_CALC, // KEYCODE_CALCULATOR
|
||||
KEY_ZENKAKUHANKAKU, // KEYCODE_ZENKAKU_HANKAKU
|
||||
0, // KEYCODE_EISU
|
||||
KEY_MUHENKAN, // KEYCODE_MUHENKAN
|
||||
KEY_HENKAN, // KEYCODE_HENKAN
|
||||
KEY_KATAKANAHIRAGANA, // KEYCODE_KATAKANA_HIRAGANA
|
||||
KEY_YEN, // KEYCODE_YEN
|
||||
KEY_RO, // KEYCODE_RO
|
||||
KEY_KATAKANAHIRAGANA, // KEYCODE_KANA
|
||||
KEY_ASSISTANT, // KEYCODE_ASSIST
|
||||
KEY_BRIGHTNESSDOWN, // KEYCODE_BRIGHTNESS_DOWN
|
||||
KEY_BRIGHTNESSUP, // KEYCODE_BRIGHTNESS_UP
|
||||
0, // KEYCODE_MEDIA_AUDIO_TRACK
|
||||
KEY_SLEEP, // KEYCODE_SLEEP
|
||||
KEY_WAKEUP, // KEYCODE_WAKEUP
|
||||
};
|
||||
|
||||
uint8_t key_code_to_vk(int16_t key_code)
|
||||
{
|
||||
if (key_code < 0 || key_code >= NUM_KEYCODES)
|
||||
return 0;
|
||||
return KEYCODE_TO_VK[key_code];
|
||||
}
|
||||
|
||||
bool android_hid::input_handler::handle_input(scene * current_scene, AInputEvent * event)
|
||||
{
|
||||
const int32_t type = AInputEvent_getType(event);
|
||||
const int32_t src = AInputEvent_getSource(event);
|
||||
const int32_t dev = AInputEvent_getDeviceId(event);
|
||||
|
||||
if (type == AINPUT_EVENT_TYPE_KEY)
|
||||
{
|
||||
int32_t flags = AKeyEvent_getFlags(event);
|
||||
if ((flags & AKEY_EVENT_FLAG_SOFT_KEYBOARD) != 0)
|
||||
return false; // ignore soft keyboards
|
||||
|
||||
if ((src & AINPUT_SOURCE_KEYBOARD) == 0)
|
||||
return false; // event is not from keyboard
|
||||
|
||||
int32_t keycode = AKeyEvent_getKeyCode(event);
|
||||
int32_t action = AKeyEvent_getAction(event);
|
||||
|
||||
bool pressed;
|
||||
switch (action)
|
||||
{
|
||||
case AKEY_EVENT_ACTION_DOWN:
|
||||
pressed = true;
|
||||
break;
|
||||
case AKEY_EVENT_ACTION_UP:
|
||||
pressed = false;
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
uint8_t vk = key_code_to_vk(keycode);
|
||||
if (vk == 0)
|
||||
return false;
|
||||
|
||||
if (pressed)
|
||||
return current_scene->on_input_key_down(vk);
|
||||
else
|
||||
return current_scene->on_input_key_up(vk);
|
||||
}
|
||||
|
||||
if (type == AINPUT_EVENT_TYPE_MOTION)
|
||||
{
|
||||
// don't care about absolute mouse due to mapping difficulties
|
||||
if ((src & AINPUT_SOURCE_MOUSE_RELATIVE) == 0)
|
||||
return false;
|
||||
|
||||
int32_t actionMasked = AMotionEvent_getAction(event) & AMOTION_EVENT_ACTION_MASK;
|
||||
switch (actionMasked)
|
||||
{
|
||||
case AMOTION_EVENT_ACTION_HOVER_MOVE: // mouse move with no buttons pressed
|
||||
case AMOTION_EVENT_ACTION_MOVE: { // mouse move with buttons pressed
|
||||
float x = AMotionEvent_getX(event, 0);
|
||||
float y = AMotionEvent_getY(event, 0);
|
||||
return current_scene->on_input_mouse_move(x, y);
|
||||
}
|
||||
case AMOTION_EVENT_ACTION_BUTTON_PRESS:
|
||||
case AMOTION_EVENT_ACTION_BUTTON_RELEASE: {
|
||||
uint32_t buttons = (uint32_t)AMotionEvent_getButtonState(event);
|
||||
auto button_diff = buttons ^ buttons_before;
|
||||
bool ret_val = false;
|
||||
|
||||
for (uint8_t i = 0; i < 3; ++i)
|
||||
{
|
||||
auto i_shifted = (1u << i);
|
||||
if ((button_diff & i_shifted) != 0)
|
||||
{
|
||||
if ((buttons & i_shifted) != 0)
|
||||
ret_val = current_scene->on_input_button_down(i);
|
||||
else
|
||||
ret_val = current_scene->on_input_button_up(i);
|
||||
}
|
||||
}
|
||||
|
||||
buttons_before = buttons;
|
||||
return ret_val;
|
||||
}
|
||||
case AMOTION_EVENT_ACTION_SCROLL: {
|
||||
float h = AMotionEvent_getAxisValue(event, AMOTION_EVENT_AXIS_HSCROLL, 0);
|
||||
float v = AMotionEvent_getAxisValue(event, AMOTION_EVENT_AXIS_VSCROLL, 0);
|
||||
return current_scene->on_input_scroll(h, v);
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool try_clear_exception(JNIEnv * env, const char * where)
|
||||
{
|
||||
if (env->ExceptionCheck())
|
||||
{
|
||||
spdlog::error("[pointer_capture] Exception at {}", where);
|
||||
env->ExceptionDescribe(); // logs to logcat
|
||||
env->ExceptionClear();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void make_decor_view_call(ANativeActivity * activity, const char * method_name)
|
||||
{
|
||||
if (!activity || !activity->vm || !activity->env || !activity->clazz)
|
||||
{
|
||||
spdlog::error("[pointer_capture] Invalid ANativeActivity* or missing VM/Activity");
|
||||
return;
|
||||
}
|
||||
|
||||
JNIEnv * env = activity->env;
|
||||
jobject act = activity->clazz;
|
||||
jclass clsActivity = env->GetObjectClass(act);
|
||||
jclass clsWindow = 0;
|
||||
jobject window = 0;
|
||||
jclass clsView = 0;
|
||||
jobject decor = 0;
|
||||
|
||||
do
|
||||
{
|
||||
if (try_clear_exception(env, "GetObjectClass(Activity)") || not clsActivity)
|
||||
break; // goto cleanup
|
||||
|
||||
jmethodID midGetWindow = env->GetMethodID(clsActivity, "getWindow", "()Landroid/view/Window;");
|
||||
if (try_clear_exception(env, "Activity.getWindow() method lookup") || not midGetWindow)
|
||||
break; // goto cleanup
|
||||
|
||||
window = env->CallObjectMethod(act, midGetWindow);
|
||||
if (try_clear_exception(env, "Activity.getWindow() call") || not window)
|
||||
break; // goto cleanup
|
||||
|
||||
clsWindow = env->GetObjectClass(window);
|
||||
if (try_clear_exception(env, "GetObjectClass(Window)") || not clsWindow)
|
||||
break; // goto cleanup
|
||||
|
||||
jmethodID midGetDecor = env->GetMethodID(clsWindow, "getDecorView", "()Landroid/view/View;");
|
||||
if (try_clear_exception(env, "Window.getDecorView() method lookup") || not midGetDecor)
|
||||
break; // goto cleanup
|
||||
|
||||
decor = env->CallObjectMethod(window, midGetDecor);
|
||||
if (try_clear_exception(env, "Window.getDecorView() call") || not decor)
|
||||
break; // goto cleanup
|
||||
|
||||
clsView = env->GetObjectClass(decor);
|
||||
if (try_clear_exception(env, "GetObjectClass(DecorView)") || not clsView)
|
||||
break; // goto cleanup
|
||||
|
||||
jmethodID midAction = env->GetMethodID(clsView, method_name, "()V");
|
||||
if (try_clear_exception(env, "View method lookup") || not midAction)
|
||||
break; // goto cleanup
|
||||
|
||||
env->CallVoidMethod(decor, midAction);
|
||||
if (try_clear_exception(env, "View method call"))
|
||||
break; // goto cleanup
|
||||
|
||||
spdlog::info("[pointer_capture] {}() invoked successfully", method_name);
|
||||
} while (false);
|
||||
|
||||
// cleanup
|
||||
if (clsView)
|
||||
env->DeleteLocalRef(clsView);
|
||||
if (decor)
|
||||
env->DeleteLocalRef(decor);
|
||||
if (clsWindow)
|
||||
env->DeleteLocalRef(clsWindow);
|
||||
if (window)
|
||||
env->DeleteLocalRef(window);
|
||||
if (clsActivity)
|
||||
env->DeleteLocalRef(clsActivity);
|
||||
}
|
||||
|
||||
void android_hid::request_pointer_capture(ANativeActivity * activity)
|
||||
{
|
||||
make_decor_view_call(activity, "requestPointerCapture");
|
||||
}
|
||||
|
||||
void android_hid::release_pointer_capture(ANativeActivity * activity)
|
||||
{
|
||||
make_decor_view_call(activity, "releasePointerCapture");
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include "scene.h"
|
||||
#include <android_native_app_glue.h>
|
||||
#include <cstdint>
|
||||
#include <linux/input-event-codes.h>
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
|
||||
namespace android_hid
|
||||
{
|
||||
|
||||
void request_pointer_capture(ANativeActivity * activity);
|
||||
void release_pointer_capture(ANativeActivity * activity);
|
||||
|
||||
class input_handler
|
||||
{
|
||||
uint32_t buttons_before = 0;
|
||||
|
||||
public:
|
||||
bool handle_input(scene * current_scene, AInputEvent * event);
|
||||
};
|
||||
|
||||
} // namespace android_hid
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "jnipp.h"
|
||||
|
||||
namespace jni::details
|
||||
{
|
||||
void handle_java_exception()
|
||||
{
|
||||
auto & env = jni_thread::env();
|
||||
if (auto exc = env.ExceptionOccurred())
|
||||
{
|
||||
env.ExceptionClear();
|
||||
|
||||
std::string str = object<"java/lang/Object">{exc}.call<jni::string>("toString");
|
||||
|
||||
throw std::runtime_error("Java exception " + str);
|
||||
}
|
||||
}
|
||||
} // namespace jni::details
|
||||
+40
-4
@@ -25,6 +25,7 @@
|
||||
#include <tuple>
|
||||
|
||||
#include <jni.h>
|
||||
#include <type_traits>
|
||||
|
||||
namespace jni
|
||||
{
|
||||
@@ -171,6 +172,9 @@ struct type_map<int>
|
||||
|
||||
template <typename T>
|
||||
using type_map_t = type_map<T>::type;
|
||||
|
||||
void handle_java_exception();
|
||||
|
||||
} // namespace details
|
||||
|
||||
struct klass
|
||||
@@ -215,7 +219,17 @@ struct klass
|
||||
assert(method_id);
|
||||
auto handles = details::handle(std::forward<Args>(args)...);
|
||||
return R(std::apply([&](auto &... t) {
|
||||
return (env.*R1::call_static_method)(*this, method_id, t...);
|
||||
if constexpr (std::is_void_v<R>)
|
||||
{
|
||||
(env.*R1::call_static_method)(*this, method_id, t...);
|
||||
details::handle_java_exception();
|
||||
}
|
||||
else
|
||||
{
|
||||
auto res = (env.*R1::call_static_method)(*this, method_id, t...);
|
||||
details::handle_java_exception();
|
||||
return res;
|
||||
}
|
||||
},
|
||||
handles));
|
||||
}
|
||||
@@ -283,7 +297,17 @@ struct object
|
||||
assert(method_id);
|
||||
auto handles = details::handle(std::forward<Args>(args)...);
|
||||
return R(std::apply([&](auto &... t) {
|
||||
return (env.*R1::call_method)(*this, method_id, t...);
|
||||
if constexpr (std::is_void_v<R>)
|
||||
{
|
||||
(env.*R1::call_method)(*this, method_id, t...);
|
||||
details::handle_java_exception();
|
||||
}
|
||||
else
|
||||
{
|
||||
auto res = (env.*R1::call_method)(*this, method_id, t...);
|
||||
details::handle_java_exception();
|
||||
return res;
|
||||
}
|
||||
},
|
||||
handles));
|
||||
}
|
||||
@@ -296,7 +320,17 @@ struct object
|
||||
assert(method_id);
|
||||
auto handles = details::handle(std::forward<Args>(args)...);
|
||||
return R(std::apply([&](auto &... t) {
|
||||
return (env.*R1::call_method)(*this, method_id, t...);
|
||||
if constexpr (std::is_void_v<R>)
|
||||
{
|
||||
(env.*R1::call_method)(*this, method_id, t...);
|
||||
details::handle_java_exception();
|
||||
}
|
||||
else
|
||||
{
|
||||
auto res = (env.*R1::call_method)(*this, method_id, t...);
|
||||
details::handle_java_exception();
|
||||
return res;
|
||||
}
|
||||
},
|
||||
handles));
|
||||
}
|
||||
@@ -327,7 +361,9 @@ static object<Type> new_object(Args &&... args)
|
||||
assert(method_id);
|
||||
auto handles = details::handle(std::forward<Args>(args)...);
|
||||
return object<Type>(std::apply([&](auto &... t) {
|
||||
return env.NewObject(klass, method_id, t...);
|
||||
auto res = env.NewObject(klass, method_id, t...);
|
||||
details::handle_java_exception();
|
||||
return res;
|
||||
},
|
||||
handles));
|
||||
}
|
||||
|
||||
+91
-59
@@ -24,6 +24,7 @@
|
||||
#include "scene.h"
|
||||
#include "spdlog/common.h"
|
||||
#include "spdlog/spdlog.h"
|
||||
#include "utils/class_from_member.h"
|
||||
#include "utils/contains.h"
|
||||
#include "utils/files.h"
|
||||
#include "utils/i18n.h"
|
||||
@@ -70,7 +71,7 @@ using namespace std::chrono_literals;
|
||||
struct interaction_profile
|
||||
{
|
||||
std::string profile_name;
|
||||
std::vector<std::string> required_extensions;
|
||||
std::vector<const char *> required_extensions;
|
||||
XrVersion min_version = XR_MAKE_VERSION(1, 0, 0);
|
||||
std::vector<std::string> input_sources;
|
||||
bool available;
|
||||
@@ -761,6 +762,7 @@ void application::initialize_vulkan()
|
||||
vk_device_extensions.push_back(VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME);
|
||||
vk_device_extensions.push_back(VK_KHR_SAMPLER_YCBCR_CONVERSION_EXTENSION_NAME);
|
||||
vk_device_extensions.push_back(VK_KHR_MULTIVIEW_EXTENSION_NAME);
|
||||
optional_device_extensions.emplace(VK_EXT_INDEX_TYPE_UINT8_EXTENSION_NAME);
|
||||
optional_device_extensions.emplace(VK_IMG_FILTER_CUBIC_EXTENSION_NAME);
|
||||
optional_device_extensions.emplace(VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME);
|
||||
optional_device_extensions.emplace(VK_EXT_FRAGMENT_DENSITY_MAP_EXTENSION_NAME);
|
||||
@@ -884,24 +886,30 @@ void application::initialize_vulkan()
|
||||
vk::PhysicalDeviceSamplerYcbcrConversionFeaturesKHR{
|
||||
.samplerYcbcrConversion = true,
|
||||
},
|
||||
vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR{
|
||||
.timelineSemaphore = true,
|
||||
},
|
||||
vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR{},
|
||||
vk::PhysicalDeviceMultiviewFeaturesKHR{
|
||||
.multiview = true,
|
||||
},
|
||||
vk::PhysicalDeviceIndexTypeUint8FeaturesEXT{}};
|
||||
|
||||
auto check_feature_flag = [&](auto feature_flag, const char * extension_name) -> bool {
|
||||
using FeatureStruct = class_from_member_t<decltype(feature_flag)>;
|
||||
|
||||
if (utils::contains(vk_device_extensions, extension_name) and
|
||||
vk_physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, FeatureStruct>().template get<FeatureStruct>().*feature_flag)
|
||||
{
|
||||
device_create_info.get<FeatureStruct>().*feature_flag = true;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
device_create_info.unlink<FeatureStruct>();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
if (utils::contains(vk_device_extensions, VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME))
|
||||
{
|
||||
auto [_, feat] = vk_physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR>();
|
||||
auto & create_feat = device_create_info.get<vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR>();
|
||||
create_feat.timelineSemaphore = feat.timelineSemaphore;
|
||||
}
|
||||
else
|
||||
{
|
||||
device_create_info.unlink<vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR>();
|
||||
}
|
||||
check_feature_flag(&vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR::timelineSemaphore, VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME);
|
||||
check_feature_flag(&vk::PhysicalDeviceIndexTypeUint8FeaturesEXT::indexTypeUint8, VK_EXT_INDEX_TYPE_UINT8_EXTENSION_NAME);
|
||||
|
||||
vk_device = xr_system_id.create_device(vk_physical_device, device_create_info.get());
|
||||
*vk_queue.lock() = vk_device.getQueue(vk_queue_family_index, 0);
|
||||
@@ -1191,61 +1199,66 @@ void application::initialize()
|
||||
{
|
||||
// LogLayersAndExtensions
|
||||
assert(!xr_instance);
|
||||
std::vector<std::string> xr_extensions;
|
||||
|
||||
// Required extensions
|
||||
xr_extensions.push_back(XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME);
|
||||
std::vector<const char *> xr_extensions{
|
||||
// Required extensions
|
||||
XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME,
|
||||
};
|
||||
|
||||
// Optional extensions
|
||||
std::vector<std::string> opt_extensions;
|
||||
opt_extensions.push_back(XR_KHR_LOCATE_SPACES_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_KHR_MAINTENANCE1_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_EXT_HAND_TRACKING_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_EXT_HAND_INTERACTION_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_PASSTHROUGH_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_HTC_PASSTHROUGH_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_HTC_FACIAL_TRACKING_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_HTC_PATH_ENUMERATION_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_HTC_VIVE_XR_TRACKER_INTERACTION_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_FACE_TRACKING2_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_BODY_TRACKING_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_META_BODY_TRACKING_FULL_BODY_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_META_BODY_TRACKING_FIDELITY_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_BD_BODY_TRACKING_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_EXT_PALM_POSE_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_EXT_USER_PRESENCE_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_KHR_VISIBILITY_MASK_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_FOVEATION_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_FOVEATION_VULKAN_EXTENSION_NAME);
|
||||
std::vector<const char *> opt_extensions{
|
||||
XR_KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME,
|
||||
XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME,
|
||||
XR_KHR_LOCATE_SPACES_EXTENSION_NAME,
|
||||
XR_KHR_MAINTENANCE1_EXTENSION_NAME,
|
||||
XR_KHR_VISIBILITY_MASK_EXTENSION_NAME,
|
||||
|
||||
XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME,
|
||||
XR_EXT_HAND_INTERACTION_EXTENSION_NAME,
|
||||
XR_EXT_HAND_TRACKING_EXTENSION_NAME,
|
||||
XR_EXT_PALM_POSE_EXTENSION_NAME,
|
||||
XR_EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME,
|
||||
XR_EXT_USER_PRESENCE_EXTENSION_NAME,
|
||||
|
||||
XR_BD_BODY_TRACKING_EXTENSION_NAME,
|
||||
|
||||
XR_FB_BODY_TRACKING_EXTENSION_NAME,
|
||||
XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME,
|
||||
XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME,
|
||||
XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME,
|
||||
XR_FB_FACE_TRACKING2_EXTENSION_NAME,
|
||||
// Disable foveation, doesn't seem useful
|
||||
// XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME,
|
||||
// XR_FB_FOVEATION_EXTENSION_NAME,
|
||||
// XR_FB_FOVEATION_VULKAN_EXTENSION_NAME,
|
||||
XR_FB_PASSTHROUGH_EXTENSION_NAME,
|
||||
XR_FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME,
|
||||
|
||||
XR_HTC_PASSTHROUGH_EXTENSION_NAME,
|
||||
XR_HTC_PATH_ENUMERATION_EXTENSION_NAME,
|
||||
XR_HTC_FACIAL_TRACKING_EXTENSION_NAME,
|
||||
XR_HTC_VIVE_XR_TRACKER_INTERACTION_EXTENSION_NAME,
|
||||
|
||||
XR_META_BODY_TRACKING_FIDELITY_EXTENSION_NAME,
|
||||
XR_META_BODY_TRACKING_FULL_BODY_EXTENSION_NAME,
|
||||
};
|
||||
|
||||
for (const auto & i: interaction_profiles)
|
||||
opt_extensions.insert(opt_extensions.end(), i.required_extensions.begin(), i.required_extensions.end());
|
||||
|
||||
for (const auto & i: xr::instance::extensions())
|
||||
for (const auto & ext: xr::instance::extensions())
|
||||
{
|
||||
if (utils::contains(opt_extensions, i.extensionName))
|
||||
xr_extensions.push_back(i.extensionName);
|
||||
}
|
||||
|
||||
std::vector<const char *> extensions;
|
||||
for (const auto & i: xr_extensions)
|
||||
{
|
||||
extensions.push_back(i.c_str());
|
||||
auto it = std::find_if(opt_extensions.begin(),
|
||||
opt_extensions.end(),
|
||||
[&ext](const char * i) { return strcmp(i, ext.extensionName) == 0; });
|
||||
if (it != opt_extensions.end())
|
||||
xr_extensions.push_back(*it);
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
xr_instance =
|
||||
xr::instance(app_info.name, app_info.native_app->activity->vm, app_info.native_app->activity->clazz, extensions);
|
||||
xr::instance(app_info.name, app_info.native_app->activity->vm, app_info.native_app->activity->clazz, xr_extensions);
|
||||
#else
|
||||
xr_instance = xr::instance(app_info.name, extensions);
|
||||
xr_instance = xr::instance(app_info.name, xr_extensions);
|
||||
#endif
|
||||
|
||||
spdlog::info("Created OpenXR instance, runtime {}, version {}, API version {}",
|
||||
@@ -1499,6 +1512,26 @@ application::application(application_info info) :
|
||||
}
|
||||
};
|
||||
|
||||
// capture pointer to receive relative mouse events
|
||||
app_info.native_app->activity->callbacks->onWindowFocusChanged = [](ANativeActivity * activity, int has_focus) {
|
||||
if (has_focus)
|
||||
android_hid::request_pointer_capture(activity);
|
||||
else
|
||||
android_hid::release_pointer_capture(activity);
|
||||
};
|
||||
|
||||
app_info.native_app->onInputEvent = [](android_app * app, AInputEvent * event) {
|
||||
auto app_instance = static_cast<application *>(app->userData);
|
||||
|
||||
std::unique_lock _{app_instance->scene_stack_lock};
|
||||
if (!app_instance->scene_stack.empty())
|
||||
{
|
||||
auto scene = app_instance->scene_stack.back();
|
||||
return app_instance->input_handler.handle_input(scene.get(), event) ? 1 : 0;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
|
||||
wifi = wifi_lock::make_wifi_lock(app_info.native_app->activity->clazz);
|
||||
|
||||
// Initialize the loader for this platform
|
||||
@@ -1674,8 +1707,7 @@ void application::run()
|
||||
#else
|
||||
void application::run()
|
||||
{
|
||||
struct sigaction act
|
||||
{};
|
||||
struct sigaction act{};
|
||||
act.sa_handler = [](int) {
|
||||
instance().exit_requested = true;
|
||||
};
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#include "android/hid.h"
|
||||
#include <android_native_app_glue.h>
|
||||
#endif
|
||||
|
||||
@@ -81,6 +82,8 @@ class application : public singleton<application>
|
||||
#ifdef __ANDROID__
|
||||
ANativeWindow * native_window = nullptr;
|
||||
bool resumed = false;
|
||||
|
||||
android_hid::input_handler input_handler{};
|
||||
#endif
|
||||
|
||||
static inline const char engine_name[] = "No engine";
|
||||
|
||||
@@ -101,7 +101,7 @@ configuration::configuration(xr::system & system)
|
||||
try
|
||||
{
|
||||
simdjson::dom::parser parser;
|
||||
simdjson::dom::element root = parser.load(application::get_config_path() / "client.json");
|
||||
simdjson::dom::element root = parser.load((application::get_config_path() / "client.json").native());
|
||||
for (simdjson::dom::object i: simdjson::dom::array(root["servers"]))
|
||||
{
|
||||
server_data data{
|
||||
@@ -175,6 +175,9 @@ configuration::configuration(xr::system & system)
|
||||
|
||||
if (auto val = root["environment_model"]; val.is_string())
|
||||
environment_model = (std::string_view)val.get_string();
|
||||
|
||||
if (auto val = root["high_power_mode"]; val.is_bool())
|
||||
high_power_mode = val.get_bool();
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
@@ -184,7 +187,7 @@ configuration::configuration(xr::system & system)
|
||||
servers.clear();
|
||||
preferred_refresh_rate.reset();
|
||||
minimum_refresh_rate.reset();
|
||||
resolution_scale = 1.4;
|
||||
resolution_scale = 1.0;
|
||||
openxr_post_processing = {};
|
||||
passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color;
|
||||
}
|
||||
@@ -263,5 +266,6 @@ void configuration::save()
|
||||
json << ",\"first_run\":" << std::boolalpha << first_run;
|
||||
json << ",\"locale\":" << json_string(locale);
|
||||
json << ",\"environment_model\":" << json_string(environment_model);
|
||||
json << ",\"high_power_mode\":" << std::boolalpha << high_power_mode;
|
||||
json << "}";
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
std::map<std::string, server_data> servers;
|
||||
std::optional<float> preferred_refresh_rate;
|
||||
std::optional<float> minimum_refresh_rate;
|
||||
float resolution_scale = 1.4;
|
||||
float resolution_scale = 1.0;
|
||||
bool passthrough_enabled = false;
|
||||
bool mic_unprocessed_audio = false;
|
||||
|
||||
@@ -74,6 +74,8 @@ public:
|
||||
float override_foveation_pitch = 10 * M_PI / 180;
|
||||
float override_foveation_distance = 3;
|
||||
|
||||
bool high_power_mode = false;
|
||||
|
||||
bool first_run = true;
|
||||
|
||||
std::string locale;
|
||||
|
||||
+20
-8
@@ -18,6 +18,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <glm/glm.hpp>
|
||||
#include <imgui.h>
|
||||
@@ -26,7 +27,7 @@
|
||||
namespace constants::gui
|
||||
{
|
||||
// Minimum distance between a GUI layer and a fingertip/controller to register a click
|
||||
constexpr float min_pointer_distance = -0.1;
|
||||
constexpr float min_controller_distance = -0.02;
|
||||
|
||||
// Font to use (desktop only)
|
||||
constexpr const char font_name[] = "Noto Sans";
|
||||
@@ -41,9 +42,12 @@ constexpr float scroll_ratio = 10;
|
||||
// Threshold on the trigger value to register a click
|
||||
constexpr float trigger_click_thd = 0.8;
|
||||
|
||||
// Thresholds on the distance between the fingertip and GUI layers
|
||||
constexpr float fingertip_distance_hovering_thd = 0.15;
|
||||
constexpr float fingertip_distance_touching_thd = 0.0;
|
||||
// Thresholds on the distance between the fingertip and GUI layers (positive: in front of the GUI, negative: behind the GUI)
|
||||
constexpr float palm_distance_close_thd_lo = 0.18; // Distance to switch between touch and aim interaction
|
||||
constexpr float palm_distance_close_thd_hi = 0.22; // Distance to switch between touch and aim interaction
|
||||
constexpr float fingertip_distance_touching_thd_hi = -0.01; // Distance to register a click
|
||||
constexpr float fingertip_distance_touching_thd_lo = -0.15; // Distance to register a click
|
||||
constexpr float fingertip_distance_stick_thd = -0.02; // Max distance where the fingertip is moved to be on the GUI
|
||||
|
||||
// Minimum scroll value to enable a controller
|
||||
constexpr float scroll_value_thd = 0.01;
|
||||
@@ -67,7 +71,14 @@ constexpr uint32_t pointer_color_border = 0xff000000;
|
||||
namespace constants::lobby
|
||||
{
|
||||
// Position and orientation of the GUI layers
|
||||
constexpr float gui_pitch = -0.2;
|
||||
constexpr auto gui_pitches = std::to_array<std::pair<float, float>>({
|
||||
{-90, -90},
|
||||
{-50, -90},
|
||||
{-30, -12},
|
||||
{30, -12},
|
||||
{50, 78},
|
||||
{90, 78},
|
||||
});
|
||||
constexpr float keyboard_pitch = -0.6;
|
||||
constexpr glm::vec3 popup_position = {0, 0, 0.05};
|
||||
constexpr glm::vec3 keyboard_position = {0, -0.3, 0.1};
|
||||
@@ -76,7 +87,8 @@ constexpr glm::vec3 keyboard_position = {0, -0.3, 0.1};
|
||||
constexpr float near_plane = 0.02;
|
||||
|
||||
// Recenter gesture thresholds
|
||||
constexpr float recenter_cosangle_min = 0.8;
|
||||
constexpr float recenter_cos_palm_angle_min = 0.7;
|
||||
constexpr float recenter_cos_fingertip_angle_max = 0.3;
|
||||
constexpr float recenter_distance_up = 0.3;
|
||||
constexpr float recenter_distance_front = 0.2;
|
||||
|
||||
@@ -107,8 +119,8 @@ constexpr float fade_delay = 3;
|
||||
constexpr float fade_duration = 0.25;
|
||||
|
||||
// Dimming for the streamed video when the GUI is interactable
|
||||
constexpr float dimming_scale = 0.7;
|
||||
constexpr float dimming_bias = 0.15;
|
||||
constexpr float dimming_scale = 0.4;
|
||||
constexpr float dimming_bias = 0.01;
|
||||
} // namespace constants::stream
|
||||
|
||||
namespace constants::style
|
||||
|
||||
@@ -103,6 +103,11 @@ static model guess_model_()
|
||||
if (model == "VIVE XR Series")
|
||||
return model::htc_vive_xr_elite;
|
||||
}
|
||||
if (manufacturer == "samsung")
|
||||
{
|
||||
if (model == "SM-I610")
|
||||
return model::samsung_galaxy_xr;
|
||||
}
|
||||
|
||||
spdlog::info("Unknown model, manufacturer={}, model={}, device={}", manufacturer, model, device);
|
||||
#endif
|
||||
@@ -165,6 +170,8 @@ XrViewConfigurationView override_view(XrViewConfigurationView view, model m)
|
||||
return scale_view(view, 2448);
|
||||
case model::htc_vive_xr_elite:
|
||||
return scale_view(view, 1920);
|
||||
case model::samsung_galaxy_xr:
|
||||
return scale_view(view, 3552);
|
||||
case model::lynx_r1:
|
||||
case model::unknown:
|
||||
return view;
|
||||
@@ -191,6 +198,7 @@ bool need_srgb_conversion(model m)
|
||||
case model::htc_vive_focus_3:
|
||||
case model::htc_vive_focus_vision:
|
||||
case model::htc_vive_xr_elite:
|
||||
case model::samsung_galaxy_xr:
|
||||
case model::unknown:
|
||||
return true;
|
||||
}
|
||||
@@ -204,6 +212,27 @@ const char * permission_name(feature f)
|
||||
case feature::microphone:
|
||||
return "android.permission.RECORD_AUDIO";
|
||||
case feature::hand_tracking:
|
||||
switch (guess_model())
|
||||
{
|
||||
case model::samsung_galaxy_xr:
|
||||
return "android.permission.HAND_TRACKING";
|
||||
case model::oculus_quest:
|
||||
case model::oculus_quest_2:
|
||||
case model::meta_quest_pro:
|
||||
case model::meta_quest_3:
|
||||
case model::meta_quest_3s:
|
||||
case model::pico_neo_3:
|
||||
case model::pico_4:
|
||||
case model::pico_4s:
|
||||
case model::pico_4_pro:
|
||||
case model::pico_4_enterprise:
|
||||
case model::htc_vive_focus_3:
|
||||
case model::htc_vive_focus_vision:
|
||||
case model::htc_vive_xr_elite:
|
||||
case model::lynx_r1:
|
||||
case model::unknown:
|
||||
break;
|
||||
}
|
||||
return nullptr;
|
||||
case feature::eye_gaze:
|
||||
switch (guess_model())
|
||||
@@ -220,6 +249,8 @@ const char * permission_name(feature f)
|
||||
case model::pico_4_pro:
|
||||
case model::pico_4_enterprise:
|
||||
return "com.picovr.permission.EYE_TRACKING";
|
||||
case model::samsung_galaxy_xr:
|
||||
return "android.permission.EYE_TRACKING_FINE";
|
||||
case model::htc_vive_focus_3:
|
||||
case model::htc_vive_focus_vision:
|
||||
case model::htc_vive_xr_elite:
|
||||
@@ -243,6 +274,8 @@ const char * permission_name(feature f)
|
||||
case model::pico_4_pro:
|
||||
case model::pico_4_enterprise:
|
||||
return "com.picovr.permission.FACE_TRACKING";
|
||||
case model::samsung_galaxy_xr:
|
||||
return "android.permission.FACE_TRACKING";
|
||||
case model::htc_vive_focus_3:
|
||||
case model::htc_vive_focus_vision:
|
||||
case model::htc_vive_xr_elite:
|
||||
@@ -294,6 +327,7 @@ std::string controller_name()
|
||||
case model::htc_vive_focus_vision:
|
||||
case model::htc_vive_xr_elite:
|
||||
return "htc-vive-focus-3";
|
||||
case model::samsung_galaxy_xr:
|
||||
case model::lynx_r1:
|
||||
case model::unknown:
|
||||
return "generic-trigger-squeeze";
|
||||
|
||||
@@ -41,6 +41,7 @@ enum class model
|
||||
htc_vive_xr_elite,
|
||||
htc_vive_focus_vision,
|
||||
lynx_r1,
|
||||
samsung_galaxy_xr,
|
||||
unknown
|
||||
};
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ glm::quat cubic_spline(const glm::quat & a, const glm::quat & vb, const glm::qua
|
||||
td * (t3 - t2) * va);
|
||||
}
|
||||
|
||||
template <auto components::node::*Field>
|
||||
template <auto components::node::* Field>
|
||||
void apply_track(entt::registry & scene, const components::animation_track_impl<Field> & track, float current_time)
|
||||
{
|
||||
entt::entity target = track.target;
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "application.h"
|
||||
#include "utils/alignment.h"
|
||||
#include "utils/contains.h"
|
||||
#include "vk/allocation.h"
|
||||
#include <fastgltf/tools.hpp>
|
||||
#include <fastgltf/types.hpp>
|
||||
@@ -29,6 +31,8 @@ class gpu_buffer
|
||||
{
|
||||
std::vector<std::byte> bytes;
|
||||
vk::PhysicalDeviceLimits limits;
|
||||
vk::PhysicalDeviceIndexTypeUint8FeaturesEXT feat_uint8;
|
||||
|
||||
fastgltf::Asset & asset;
|
||||
vk::BufferUsageFlags usage;
|
||||
|
||||
@@ -58,8 +62,15 @@ class gpu_buffer
|
||||
}
|
||||
|
||||
public:
|
||||
gpu_buffer(vk::PhysicalDeviceProperties properties, fastgltf::Asset & asset) :
|
||||
limits(properties.limits), asset(asset), usage(0) {}
|
||||
gpu_buffer(vk::raii::PhysicalDevice physical_device, fastgltf::Asset & asset) :
|
||||
asset(asset),
|
||||
usage(0)
|
||||
{
|
||||
limits = physical_device.getProperties().limits;
|
||||
|
||||
if (utils::contains(application::instance().get_vk_device_extensions(), VK_EXT_INDEX_TYPE_UINT8_EXTENSION_NAME))
|
||||
std::tie(std::ignore, feat_uint8) = physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceIndexTypeUint8FeaturesEXT>();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
size_t add_uniform(const T & data_to_add)
|
||||
@@ -79,7 +90,7 @@ public:
|
||||
return add(alignment, data_to_add);
|
||||
}
|
||||
|
||||
size_t add_indices(const fastgltf::Accessor & accessor)
|
||||
std::pair<size_t, vk::IndexType> add_indices(const fastgltf::Accessor & accessor)
|
||||
{
|
||||
usage |= vk::BufferUsageFlagBits::eIndexBuffer;
|
||||
|
||||
@@ -90,7 +101,11 @@ public:
|
||||
std::vector<uint8_t> indices(accessor.count);
|
||||
using index_t = std::remove_cvref_t<decltype(*indices.data())>;
|
||||
fastgltf::copyFromAccessor<index_t>(asset, accessor, indices.data());
|
||||
return add(4, indices);
|
||||
|
||||
if (feat_uint8.indexTypeUint8)
|
||||
return {add(4, indices), vk::IndexType::eUint8EXT};
|
||||
else
|
||||
return {add(4, std::vector<uint16_t>{indices.begin(), indices.end()}), vk::IndexType::eUint16};
|
||||
}
|
||||
|
||||
case fastgltf::ComponentType::Short:
|
||||
@@ -98,7 +113,7 @@ public:
|
||||
std::vector<uint16_t> indices(accessor.count);
|
||||
using index_t = std::remove_cvref_t<decltype(*indices.data())>;
|
||||
fastgltf::copyFromAccessor<index_t>(asset, accessor, indices.data());
|
||||
return add(4, indices);
|
||||
return {add(4, indices), vk::IndexType::eUint16};
|
||||
}
|
||||
|
||||
case fastgltf::ComponentType::Int:
|
||||
@@ -106,7 +121,7 @@ public:
|
||||
std::vector<uint32_t> indices(accessor.count);
|
||||
using index_t = std::remove_cvref_t<decltype(*indices.data())>;
|
||||
fastgltf::copyFromAccessor<index_t>(asset, accessor, indices.data());
|
||||
return add(4, indices);
|
||||
return {add(4, indices), vk::IndexType::eUint32};
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
@@ -23,13 +23,11 @@
|
||||
#include "utils/thread_safe.h"
|
||||
#include "vk/allocation.h"
|
||||
#include "vk/vk_allocator.h"
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
#include <ktx.h>
|
||||
#include <ktxvulkan.h>
|
||||
#include <memory>
|
||||
#include <span>
|
||||
#include <spdlog/fmt/chrono.h>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <stdexcept>
|
||||
#include <tuple>
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "image_writer.h"
|
||||
|
||||
#include "utils/thread_safe.h"
|
||||
#include <cassert>
|
||||
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#include "stb_image_write.h"
|
||||
|
||||
void write_image(
|
||||
vk::raii::Device & device,
|
||||
thread_safe<vk::raii::Queue> & queue,
|
||||
uint32_t queue_family_index,
|
||||
const std::filesystem::path & path,
|
||||
vk::Image image,
|
||||
const vk::ImageCreateInfo & info)
|
||||
{
|
||||
assert(info.usage & vk::ImageUsageFlagBits::eTransferSrc);
|
||||
assert(info.extent.depth == 1);
|
||||
assert(info.format == vk::Format::eR8G8B8A8Srgb);
|
||||
|
||||
buffer_allocation output_buffer{
|
||||
device,
|
||||
vk::BufferCreateInfo{
|
||||
.size = info.extent.height * info.extent.width * 4,
|
||||
.usage = vk::BufferUsageFlagBits::eTransferDst,
|
||||
},
|
||||
VmaAllocationCreateInfo{
|
||||
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT,
|
||||
.usage = VmaMemoryUsage::VMA_MEMORY_USAGE_AUTO,
|
||||
},
|
||||
"Saved image buffer"};
|
||||
|
||||
vk::raii::CommandPool cp{
|
||||
device,
|
||||
vk::CommandPoolCreateInfo{
|
||||
.queueFamilyIndex = queue_family_index,
|
||||
}};
|
||||
|
||||
vk::raii::CommandBuffer command_buffer = std::move(device.allocateCommandBuffers(
|
||||
{
|
||||
.commandPool = *cp,
|
||||
.level = vk::CommandBufferLevel::ePrimary,
|
||||
.commandBufferCount = 1,
|
||||
})[0]);
|
||||
|
||||
vk::raii::Fence fence = device.createFence({});
|
||||
|
||||
command_buffer.begin(vk::CommandBufferBeginInfo{});
|
||||
|
||||
command_buffer.pipelineBarrier(
|
||||
vk::PipelineStageFlagBits::eColorAttachmentOutput,
|
||||
vk::PipelineStageFlagBits::eTransfer,
|
||||
vk::DependencyFlags{},
|
||||
{},
|
||||
{},
|
||||
vk::ImageMemoryBarrier{
|
||||
.srcAccessMask = vk::AccessFlagBits::eColorAttachmentWrite,
|
||||
.dstAccessMask = vk::AccessFlagBits::eTransferRead,
|
||||
.oldLayout = vk::ImageLayout::eColorAttachmentOptimal,
|
||||
.newLayout = vk::ImageLayout::eTransferSrcOptimal,
|
||||
.image = image,
|
||||
.subresourceRange = {
|
||||
.aspectMask = vk::ImageAspectFlagBits::eColor,
|
||||
.baseMipLevel = 0,
|
||||
.levelCount = 1,
|
||||
.baseArrayLayer = 0,
|
||||
.layerCount = 1,
|
||||
},
|
||||
});
|
||||
|
||||
command_buffer.copyImageToBuffer(
|
||||
image,
|
||||
vk::ImageLayout::eTransferSrcOptimal,
|
||||
output_buffer,
|
||||
vk::BufferImageCopy{
|
||||
.bufferOffset = 0,
|
||||
.bufferRowLength = 0,
|
||||
.bufferImageHeight = 0,
|
||||
.imageSubresource = {
|
||||
.aspectMask = vk::ImageAspectFlagBits::eColor,
|
||||
.mipLevel = 0,
|
||||
.baseArrayLayer = 0,
|
||||
.layerCount = 1,
|
||||
},
|
||||
.imageOffset = {0, 0, 0},
|
||||
.imageExtent = info.extent,
|
||||
});
|
||||
|
||||
command_buffer.end();
|
||||
queue.lock()->submit(vk::SubmitInfo{
|
||||
.commandBufferCount = 1,
|
||||
.pCommandBuffers = &*command_buffer,
|
||||
},
|
||||
*fence);
|
||||
|
||||
if (auto result = device.waitForFences(*fence, true, 1'000'000'000); result == vk::Result::eSuccess)
|
||||
stbi_write_png(path.c_str(), info.extent.width, info.extent.height, 4, output_buffer.data(), 0);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "utils/thread_safe.h"
|
||||
#include "vk/allocation.h"
|
||||
#include <filesystem>
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
void write_image(
|
||||
vk::raii::Device & device,
|
||||
thread_safe<vk::raii::Queue> & queue,
|
||||
uint32_t queue_family_index,
|
||||
const std::filesystem::path & path,
|
||||
vk::Image image,
|
||||
const vk::ImageCreateInfo & info);
|
||||
|
||||
inline void write_image(
|
||||
vk::raii::Device & device,
|
||||
thread_safe<vk::raii::Queue> & queue,
|
||||
uint32_t queue_family_index,
|
||||
const std::filesystem::path & path,
|
||||
const image_allocation & image)
|
||||
{
|
||||
write_image(device, queue, queue_family_index, path, (vk::Image)image, image.info());
|
||||
}
|
||||
+162
-78
@@ -146,7 +146,7 @@ static bool in_viewport(const imgui_context::viewport & viewport, ImVec2 positio
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool window_intersects_viewport(ImGuiWindow * window, imgui_context::viewport & viewport)
|
||||
static bool window_intersects_viewport(ImGuiWindow * window, const imgui_context::viewport & viewport)
|
||||
{
|
||||
ImRect w{window->Pos.x, window->Pos.y, window->Pos.x + window->Size.x, window->Pos.y + window->Size.y};
|
||||
ImRect v(viewport.vp_origin.x, viewport.vp_origin.y, viewport.vp_origin.x + viewport.vp_size.x, viewport.vp_origin.y + viewport.vp_size.y);
|
||||
@@ -210,9 +210,6 @@ imgui_textures::imgui_textures(
|
||||
|
||||
std::vector<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(const imgui_context::controller_state & in) const
|
||||
{
|
||||
if (!in.active)
|
||||
return {};
|
||||
|
||||
std::vector<std::pair<ImVec2, float>> intersections;
|
||||
|
||||
for (const auto & i: layers_)
|
||||
@@ -237,7 +234,10 @@ std::vector<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(cons
|
||||
// => ray_start.z + distance × ray_dir.z = 0
|
||||
float distance = -ray_start.z / ray_dir.z;
|
||||
|
||||
if (distance < constants::gui::min_pointer_distance)
|
||||
if (distance < constants::gui::min_controller_distance and in.source == ImGuiMouseSource_VRController)
|
||||
continue;
|
||||
|
||||
if (distance < constants::gui::fingertip_distance_touching_thd_lo and in.source == ImGuiMouseSource_VRHandTracking)
|
||||
continue;
|
||||
|
||||
coord.x = ray_start.x + distance * ray_dir.x;
|
||||
@@ -372,9 +372,11 @@ imgui_context::imgui_context(
|
||||
.MinImageCount = 2,
|
||||
.ImageCount = (uint32_t)swapchain.images().size(), // used to cycle between VkBuffers in ImGui_ImplVulkan_RenderDrawData
|
||||
.PipelineCache = *application::get_pipeline_cache(),
|
||||
.RenderPass = *renderpass,
|
||||
.Subpass = 0,
|
||||
.MSAASamples = VK_SAMPLE_COUNT_1_BIT,
|
||||
.PipelineInfoMain = {
|
||||
.RenderPass = *renderpass,
|
||||
.Subpass = 0,
|
||||
.MSAASamples = VK_SAMPLE_COUNT_1_BIT,
|
||||
},
|
||||
.Allocator = nullptr,
|
||||
.CheckVkResultFn = check_vk_result,
|
||||
};
|
||||
@@ -552,97 +554,129 @@ std::vector<imgui_context::controller_state> imgui_context::read_controllers_sta
|
||||
size_t new_focused_controller = focused_controller;
|
||||
|
||||
std::vector<controller_state> new_states;
|
||||
new_states.resize(controllers.size());
|
||||
if (not controllers_enabled)
|
||||
return new_states;
|
||||
|
||||
aim_interaction = {1, 1};
|
||||
|
||||
// Get the hand/controller state from OpenXR
|
||||
for (auto && [index, controller]: utils::enumerate(controllers))
|
||||
for (const auto & [controller, state, current_aim_interaction]: std::ranges::zip_view(controllers, new_states, aim_interaction))
|
||||
{
|
||||
auto & [ctrl, state] = controller;
|
||||
|
||||
controller_state & new_state = new_states.emplace_back();
|
||||
|
||||
if (not controllers_enabled)
|
||||
continue;
|
||||
const auto & ctrl = controller.first;
|
||||
std::pair<std::optional<ImVec2>, float> index_tip_position{{}, std::numeric_limits<float>::infinity()};
|
||||
std::pair<std::optional<ImVec2>, float> palm_position{{}, std::numeric_limits<float>::infinity()};
|
||||
std::pair<std::optional<ImVec2>, float> controller_position{{}, std::numeric_limits<float>::infinity()};
|
||||
|
||||
// First hands, so we can set aim_interaction
|
||||
current_aim_interaction = 1;
|
||||
if (ctrl.hand)
|
||||
{
|
||||
if (auto joints = ctrl.hand->locate(world, display_time))
|
||||
{
|
||||
XrHandJointLocationEXT & index_tip = (*joints)[XR_HAND_JOINT_INDEX_TIP_EXT].first;
|
||||
if (index_tip.locationFlags & XR_SPACE_LOCATION_POSITION_TRACKED_BIT)
|
||||
XrHandJointLocationEXT & palm = (*joints)[XR_HAND_JOINT_PALM_EXT].first;
|
||||
|
||||
if (index_tip.locationFlags & XR_SPACE_LOCATION_POSITION_VALID_BIT)
|
||||
{
|
||||
new_state.aim_position = {
|
||||
index_tip.pose.position.x,
|
||||
index_tip.pose.position.y,
|
||||
index_tip.pose.position.z};
|
||||
// aim_orientation is ignored by ray_plane_intersection() for hands
|
||||
|
||||
new_state.active = true;
|
||||
new_state.source = ImGuiMouseSource_VRHandTracking;
|
||||
index_tip_position = compute_pointer_position(controller_state{
|
||||
.aim_position = {
|
||||
index_tip.pose.position.x,
|
||||
index_tip.pose.position.y,
|
||||
index_tip.pose.position.z,
|
||||
},
|
||||
// aim_orientation is ignored by ray_plane_intersection() for hands
|
||||
.source = ImGuiMouseSource_VRHandTracking,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
continue;
|
||||
if (palm.locationFlags & XR_SPACE_LOCATION_POSITION_VALID_BIT)
|
||||
{
|
||||
palm_position = compute_pointer_position(controller_state{
|
||||
.aim_position = {
|
||||
palm.pose.position.x,
|
||||
palm.pose.position.y,
|
||||
palm.pose.position.z,
|
||||
},
|
||||
.source = ImGuiMouseSource_VRHandTracking,
|
||||
});
|
||||
}
|
||||
|
||||
if (index_tip_position.second < constants::gui::fingertip_distance_touching_thd_hi and
|
||||
index_tip_position.second > constants::gui::fingertip_distance_touching_thd_lo)
|
||||
state.fingertip_touching = true;
|
||||
|
||||
if (palm_position.second < constants::gui::palm_distance_close_thd_lo)
|
||||
current_aim_interaction = 0;
|
||||
else if (palm_position.second > constants::gui::palm_distance_close_thd_hi)
|
||||
current_aim_interaction = 1;
|
||||
else
|
||||
current_aim_interaction =
|
||||
(palm_position.second - constants::gui::palm_distance_close_thd_lo) /
|
||||
(constants::gui::palm_distance_close_thd_hi - constants::gui::palm_distance_close_thd_lo);
|
||||
}
|
||||
}
|
||||
|
||||
new_state.source = ImGuiMouseSource_VRController;
|
||||
|
||||
// Then controllers
|
||||
if (auto location = application::locate_controller(ctrl.aim, world, display_time))
|
||||
{
|
||||
new_state.active = true;
|
||||
new_state.aim_position = location->first + glm::mat3_cast(location->second * ctrl.offset.second) * ctrl.offset.first;
|
||||
new_state.aim_orientation = location->second * ctrl.offset.second;
|
||||
controller_position = compute_pointer_position(controller_state{
|
||||
.aim_position = location->first + glm::mat3_cast(location->second * ctrl.offset.second) * ctrl.offset.first,
|
||||
.aim_orientation = location->second * ctrl.offset.second,
|
||||
.source = ImGuiMouseSource_VRController,
|
||||
});
|
||||
|
||||
if (ctrl.trigger)
|
||||
if (current_aim_interaction == 1)
|
||||
{
|
||||
auto trigger = application::read_action_float(ctrl.trigger).value_or(std::pair{0, 0});
|
||||
new_state.trigger_value = trigger.second;
|
||||
if (ctrl.trigger)
|
||||
{
|
||||
auto trigger = application::read_action_float(ctrl.trigger).value_or(std::pair{0, 0});
|
||||
state.trigger_value = trigger.second;
|
||||
|
||||
// TODO tunable
|
||||
/*if (new_state.trigger_value < 0.5)
|
||||
new_state.trigger_clicked = false;
|
||||
else */
|
||||
if (new_state.trigger_value > constants::gui::trigger_click_thd)
|
||||
new_state.trigger_clicked = true;
|
||||
}
|
||||
// TODO tunable
|
||||
/*if (new_state.trigger_value < 0.5)
|
||||
new_state.trigger_clicked = false;
|
||||
else */
|
||||
if (state.trigger_value > constants::gui::trigger_click_thd)
|
||||
state.trigger_clicked = true;
|
||||
}
|
||||
|
||||
if (ctrl.scroll)
|
||||
{
|
||||
if (auto act = application::read_action_vec2(ctrl.scroll); act)
|
||||
new_state.scroll_value = {-act->second.x * scroll_scale, act->second.y * scroll_scale};
|
||||
else
|
||||
new_state.scroll_value = {0, 0};
|
||||
if (ctrl.scroll)
|
||||
{
|
||||
if (auto act = application::read_action_vec2(ctrl.scroll); act)
|
||||
state.scroll_value = {-act->second.x * scroll_scale, act->second.y * scroll_scale};
|
||||
else
|
||||
state.scroll_value = {0, 0};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Compute the position in imgui frame according to the currently displayed windows (from the last frame)
|
||||
for (auto & state: new_states)
|
||||
{
|
||||
compute_pointer_position(state);
|
||||
|
||||
if (state.source == ImGuiMouseSource_VRHandTracking)
|
||||
if (current_aim_interaction == 0)
|
||||
state.pointer_position = index_tip_position.first;
|
||||
else if (current_aim_interaction == 1)
|
||||
state.pointer_position = controller_position.first;
|
||||
else
|
||||
{
|
||||
if (state.hover_distance < constants::gui::fingertip_distance_hovering_thd)
|
||||
state.fingertip_hovering = true;
|
||||
|
||||
if (state.hover_distance < constants::gui::fingertip_distance_touching_thd)
|
||||
state.fingertip_touching = true;
|
||||
assert(index_tip_position.first);
|
||||
assert(controller_position.first);
|
||||
state.pointer_position = *index_tip_position.first + (*controller_position.first - *index_tip_position.first) * current_aim_interaction;
|
||||
}
|
||||
|
||||
if (current_aim_interaction < 1)
|
||||
state.source = ImGuiMouseSource_VRHandTracking;
|
||||
else
|
||||
state.source = ImGuiMouseSource_VRController;
|
||||
}
|
||||
|
||||
return new_states;
|
||||
}
|
||||
|
||||
void imgui_context::compute_pointer_position(imgui_context::controller_state & state)
|
||||
std::pair<std::optional<ImVec2>, float> imgui_context::compute_pointer_position(const imgui_context::controller_state & state) const
|
||||
{
|
||||
auto intersections = ray_plane_intersection(state);
|
||||
|
||||
if (intersections.empty())
|
||||
{
|
||||
state.hover_distance = std::numeric_limits<float>::infinity();
|
||||
state.pointer_position = std::nullopt;
|
||||
return;
|
||||
}
|
||||
return {std::nullopt, std::numeric_limits<float>::infinity()};
|
||||
|
||||
if (ImGuiWindow * modal_popup = ImGui::GetTopMostAndVisiblePopupModal())
|
||||
{
|
||||
@@ -657,17 +691,12 @@ void imgui_context::compute_pointer_position(imgui_context::controller_state & s
|
||||
for (auto [position, distance]: intersections)
|
||||
{
|
||||
if (in_viewport(i, position))
|
||||
{
|
||||
state.hover_distance = distance;
|
||||
state.pointer_position = position;
|
||||
return;
|
||||
}
|
||||
return {position, distance};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
state.hover_distance = std::numeric_limits<float>::infinity();
|
||||
state.pointer_position = std::nullopt;
|
||||
return {std::nullopt, std::numeric_limits<float>::infinity()};
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -680,16 +709,12 @@ void imgui_context::compute_pointer_position(imgui_context::controller_state & s
|
||||
continue;
|
||||
|
||||
if (in_window(window, position))
|
||||
{
|
||||
state.hover_distance = distance;
|
||||
state.pointer_position = position;
|
||||
return;
|
||||
}
|
||||
return {position, distance};
|
||||
}
|
||||
}
|
||||
|
||||
// If the pointer isn't in any window, take the farthest one
|
||||
std::tie(state.pointer_position, state.hover_distance) = intersections.back();
|
||||
return intersections.back();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -727,6 +752,13 @@ size_t imgui_context::choose_focused_controller(const std::vector<controller_sta
|
||||
return index;
|
||||
}
|
||||
|
||||
// scrolling?
|
||||
for (auto && [index, state]: utils::enumerate(new_states))
|
||||
{
|
||||
if (glm::length(state.scroll_value) > constants::gui::scroll_value_thd)
|
||||
return index;
|
||||
}
|
||||
|
||||
// Else, keep the last controller active
|
||||
return focused_controller;
|
||||
}
|
||||
@@ -1005,6 +1037,58 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
|
||||
return quads;
|
||||
}
|
||||
|
||||
std::vector<imgui_context::viewport> imgui_context::windows()
|
||||
{
|
||||
std::vector<imgui_context::viewport> w;
|
||||
|
||||
ImGuiWindow * modal_popup = ImGui::GetTopMostAndVisiblePopupModal();
|
||||
|
||||
for (const imgui_context::viewport & layer: layers_)
|
||||
{
|
||||
if (layer.space != xr::spaces::world)
|
||||
continue;
|
||||
|
||||
ImRect v(layer.vp_origin.x, layer.vp_origin.y, layer.vp_origin.x + layer.vp_size.x, layer.vp_origin.y + layer.vp_size.y);
|
||||
|
||||
for (ImGuiWindow * window: context->Windows)
|
||||
{
|
||||
if (not window->Active or window->Hidden /*or window->ParentWindowInBeginStack != nullptr*/)
|
||||
continue;
|
||||
|
||||
if (modal_popup != nullptr and window != modal_popup and not layer.always_show_cursor)
|
||||
continue;
|
||||
|
||||
if (not window_intersects_viewport(window, layer))
|
||||
continue;
|
||||
|
||||
// The window intersects the viewport: compute the window position in the real world
|
||||
ImVec2 max = ImMin(v.Max, window->Pos + window->Size);
|
||||
ImVec2 min = ImMax(v.Min, window->Pos);
|
||||
ImVec2 center = (min + max) / 2;
|
||||
|
||||
w.push_back(viewport{
|
||||
.space = layer.space,
|
||||
.position = layer.position +
|
||||
glm::mat3_cast(layer.orientation) *
|
||||
glm::vec3(
|
||||
((center.x - layer.vp_origin.x) / layer.vp_size.x - 0.5) * layer.size.x,
|
||||
(-(center.y - layer.vp_origin.y) / layer.vp_size.y + 0.5) * layer.size.y,
|
||||
0),
|
||||
.orientation = layer.orientation,
|
||||
.size = {
|
||||
(max.x - min.x) * layer.size.x / layer.vp_size.x,
|
||||
(max.y - min.y) * layer.size.y / layer.vp_size.y,
|
||||
},
|
||||
.vp_origin = {min.x, min.y},
|
||||
.vp_size = {max.x - min.x, max.y - min.y},
|
||||
.always_show_cursor = layer.always_show_cursor,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return w;
|
||||
}
|
||||
|
||||
void imgui_context::vibrate_on_hover()
|
||||
{
|
||||
if (ImGui::IsItemHovered())
|
||||
|
||||
@@ -108,8 +108,6 @@ public:
|
||||
|
||||
struct controller_state
|
||||
{
|
||||
bool active = false;
|
||||
|
||||
glm::vec3 aim_position = {0, 0, 0};
|
||||
glm::quat aim_orientation = {1, 0, 0, 0};
|
||||
|
||||
@@ -117,11 +115,10 @@ public:
|
||||
glm::vec2 scroll_value = {0, 0};
|
||||
|
||||
std::optional<ImVec2> pointer_position;
|
||||
float hover_distance = 1e10;
|
||||
// float hover_distance = 1e10;
|
||||
|
||||
bool squeeze_clicked = false;
|
||||
bool trigger_clicked = false;
|
||||
bool fingertip_hovering = false;
|
||||
bool fingertip_touching = false;
|
||||
ImGuiMouseSource source = ImGuiMouseSource_Mouse;
|
||||
};
|
||||
@@ -186,6 +183,8 @@ private:
|
||||
bool button_pressed = false;
|
||||
bool fingertip_touching = false;
|
||||
|
||||
std::array<float, 2> aim_interaction = {1, 1}; // left, right, floating point to fade the cursor position between poking and hand interaction
|
||||
|
||||
ImGuiID hovered_item = 0; // Hovered item in the current frame, reset at the beginning of the frame
|
||||
ImGuiID hovered_item_prev = 0; // Hovered item at the previous frame
|
||||
|
||||
@@ -216,6 +215,8 @@ public:
|
||||
return layers_;
|
||||
}
|
||||
|
||||
std::vector<viewport> windows();
|
||||
|
||||
viewport & layer(ImVec2 position);
|
||||
|
||||
void new_frame(XrTime display_time);
|
||||
@@ -227,7 +228,7 @@ public:
|
||||
}
|
||||
|
||||
std::vector<std::pair<ImVec2, float>> ray_plane_intersection(const controller_state & in) const;
|
||||
void compute_pointer_position(controller_state & state);
|
||||
[[nodiscard]] std::pair<std::optional<ImVec2>, float> compute_pointer_position(const controller_state & state) const;
|
||||
|
||||
// Convert position from viewport coordinates to real-world
|
||||
glm::vec3 rw_from_vp(const ImVec2 & position);
|
||||
@@ -240,6 +241,10 @@ public:
|
||||
void set_hovered_item();
|
||||
void set_controllers_enabled(bool value);
|
||||
void tooltip(std::string_view text);
|
||||
std::array<bool, 2> is_aim_interaction() const
|
||||
{
|
||||
return {aim_interaction[0] == 1, aim_interaction[1] == 1};
|
||||
}
|
||||
};
|
||||
|
||||
void ScrollWhenDragging();
|
||||
|
||||
@@ -55,6 +55,14 @@ struct texture
|
||||
|
||||
struct material
|
||||
{
|
||||
struct alignas(16) texture_info
|
||||
{
|
||||
alignas(4) uint32_t texcoord = 0;
|
||||
alignas(4) float rotation = 0;
|
||||
alignas(8) glm::vec2 offset = {0, 0};
|
||||
alignas(8) glm::vec2 scale = {1, 1};
|
||||
};
|
||||
|
||||
struct gpu_data
|
||||
{
|
||||
glm::vec4 base_color_factor = glm::vec4(1, 1, 1, 1);
|
||||
@@ -65,13 +73,11 @@ struct material
|
||||
float normal_scale = 1;
|
||||
float alpha_cutoff = 0.5;
|
||||
|
||||
uint32_t base_color_texcoord = 0;
|
||||
uint32_t metallic_roughness_texcoord = 0;
|
||||
uint32_t occlusion_texcoord = 0;
|
||||
uint32_t emissive_texcoord = 0;
|
||||
uint32_t normal_texcoord = 0;
|
||||
|
||||
// TODO: add fastgltf::TextureTransform?
|
||||
texture_info base_color;
|
||||
texture_info metallic_roughness;
|
||||
texture_info occlusion;
|
||||
texture_info emissive;
|
||||
texture_info normal;
|
||||
};
|
||||
|
||||
std::shared_ptr<texture> base_color_texture;
|
||||
@@ -174,7 +180,7 @@ struct animation_track_base
|
||||
interpolation_t interpolation;
|
||||
};
|
||||
|
||||
template <auto node::*Field>
|
||||
template <auto node::* Field>
|
||||
struct animation_track_impl : animation_track_base
|
||||
{
|
||||
static const constexpr auto field = Field;
|
||||
|
||||
@@ -18,10 +18,12 @@
|
||||
|
||||
#include "scene_loader.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "gpu_buffer.h"
|
||||
#include "image_loader.h"
|
||||
#include "render/scene_components.h"
|
||||
#include "render/vertex_layout.h"
|
||||
#include "utils/contains.h"
|
||||
#include "utils/files.h"
|
||||
#include "utils/json_string.h"
|
||||
#include "utils/mapped_file.h"
|
||||
@@ -166,6 +168,11 @@ glm::vec3 convert(const fastgltf::math::nvec3 & v)
|
||||
return {v[0], v[1], v[2]};
|
||||
}
|
||||
|
||||
glm::vec2 convert(const fastgltf::math::nvec2 & v)
|
||||
{
|
||||
return {v[0], v[1]};
|
||||
}
|
||||
|
||||
components::animation_track_base::interpolation_t convert(fastgltf::AnimationInterpolation interpolation)
|
||||
{
|
||||
switch (interpolation)
|
||||
@@ -441,7 +448,9 @@ struct : std::error_category
|
||||
|
||||
fastgltf::Asset load_gltf_asset(fastgltf::GltfDataBuffer & buffer, const std::filesystem::path & directory)
|
||||
{
|
||||
fastgltf::Parser parser(fastgltf::Extensions::KHR_texture_basisu);
|
||||
fastgltf::Parser parser(
|
||||
fastgltf::Extensions::KHR_texture_basisu |
|
||||
fastgltf::Extensions::KHR_texture_transform);
|
||||
|
||||
auto gltf_options =
|
||||
fastgltf::Options::DontRequireValidAssetMember |
|
||||
@@ -750,37 +759,37 @@ public:
|
||||
material_data.roughness_factor = gltf_material.pbrData.roughnessFactor;
|
||||
material_data.alpha_cutoff = gltf_material.alphaCutoff;
|
||||
|
||||
if (gltf_material.pbrData.baseColorTexture)
|
||||
{
|
||||
material.base_color_texture = textures.at(gltf_material.pbrData.baseColorTexture->textureIndex);
|
||||
material_data.base_color_texcoord = gltf_material.pbrData.baseColorTexture->texCoordIndex;
|
||||
}
|
||||
auto f = [&](const auto & texture_info,
|
||||
std::shared_ptr<renderer::texture> & texture,
|
||||
renderer::material::texture_info & info) {
|
||||
if (not texture_info)
|
||||
return;
|
||||
|
||||
if (gltf_material.pbrData.metallicRoughnessTexture)
|
||||
{
|
||||
material.metallic_roughness_texture = textures.at(gltf_material.pbrData.metallicRoughnessTexture->textureIndex);
|
||||
material_data.metallic_roughness_texcoord = gltf_material.pbrData.metallicRoughnessTexture->texCoordIndex;
|
||||
}
|
||||
texture = textures.at(texture_info->textureIndex);
|
||||
info.texcoord = texture_info->texCoordIndex;
|
||||
|
||||
if (auto & xform = texture_info->transform)
|
||||
{
|
||||
if (xform->texCoordIndex)
|
||||
info.texcoord = *xform->texCoordIndex;
|
||||
|
||||
info.rotation = xform->rotation;
|
||||
info.offset = convert(xform->uvOffset);
|
||||
info.scale = convert(xform->uvScale);
|
||||
}
|
||||
};
|
||||
|
||||
f(gltf_material.pbrData.baseColorTexture, material.base_color_texture, material_data.base_color);
|
||||
f(gltf_material.pbrData.metallicRoughnessTexture, material.metallic_roughness_texture, material_data.metallic_roughness);
|
||||
f(gltf_material.occlusionTexture, material.occlusion_texture, material_data.occlusion);
|
||||
f(gltf_material.emissiveTexture, material.emissive_texture, material_data.emissive);
|
||||
f(gltf_material.normalTexture, material.normal_texture, material_data.normal);
|
||||
|
||||
if (gltf_material.occlusionTexture)
|
||||
{
|
||||
material.occlusion_texture = textures.at(gltf_material.occlusionTexture->textureIndex);
|
||||
material_data.occlusion_texcoord = gltf_material.occlusionTexture->texCoordIndex;
|
||||
material_data.occlusion_strength = gltf_material.occlusionTexture->strength;
|
||||
}
|
||||
|
||||
if (gltf_material.emissiveTexture)
|
||||
{
|
||||
material.emissive_texture = textures.at(gltf_material.emissiveTexture->textureIndex);
|
||||
material_data.emissive_texcoord = gltf_material.emissiveTexture->texCoordIndex;
|
||||
}
|
||||
|
||||
if (gltf_material.normalTexture)
|
||||
{
|
||||
material.normal_texture = textures.at(gltf_material.normalTexture->textureIndex);
|
||||
material_data.normal_texcoord = gltf_material.normalTexture->texCoordIndex;
|
||||
material_data.normal_scale = gltf_material.normalTexture->scale;
|
||||
}
|
||||
|
||||
material.offset = staging_buffer.add_uniform(material_data);
|
||||
}
|
||||
@@ -808,30 +817,8 @@ public:
|
||||
fastgltf::Accessor & indices_accessor = gltf.accessors.at(*gltf_primitive.indicesAccessor);
|
||||
|
||||
primitive_ref.indexed = true;
|
||||
primitive_ref.index_offset = staging_buffer.add_indices(indices_accessor);
|
||||
std::tie(primitive_ref.index_offset, primitive_ref.index_type) = staging_buffer.add_indices(indices_accessor);
|
||||
primitive_ref.index_count = indices_accessor.count;
|
||||
|
||||
switch (indices_accessor.componentType)
|
||||
{
|
||||
case fastgltf::ComponentType::Byte:
|
||||
case fastgltf::ComponentType::UnsignedByte:
|
||||
primitive_ref.index_type = vk::IndexType::eUint8EXT;
|
||||
break;
|
||||
|
||||
case fastgltf::ComponentType::Short:
|
||||
case fastgltf::ComponentType::UnsignedShort:
|
||||
primitive_ref.index_type = vk::IndexType::eUint16;
|
||||
break;
|
||||
|
||||
case fastgltf::ComponentType::Int:
|
||||
case fastgltf::ComponentType::UnsignedInt:
|
||||
primitive_ref.index_type = vk::IndexType::eUint32;
|
||||
break;
|
||||
|
||||
default:
|
||||
throw std::runtime_error("Invalid index type");
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
primitive_ref.indexed = false;
|
||||
@@ -1089,8 +1076,6 @@ std::shared_ptr<entt::registry> scene_loader::operator()(
|
||||
const std::filesystem::path & gltf_texture_cache,
|
||||
std::function<void(float)> progress_cb)
|
||||
{
|
||||
vk::PhysicalDeviceProperties physical_device_properties = physical_device.getProperties();
|
||||
|
||||
auto data_buffer = fastgltf::GltfDataBuffer::FromBytes(data.data(), data.size());
|
||||
if (auto error = data_buffer.error(); error != fastgltf::Error::None)
|
||||
throw std::system_error((int)error, fastgltf_error_category);
|
||||
@@ -1108,7 +1093,7 @@ std::shared_ptr<entt::registry> scene_loader::operator()(
|
||||
// Load all buffers from URIs
|
||||
ctx.load_all_buffers();
|
||||
|
||||
gpu_buffer staging_buffer(physical_device_properties, asset);
|
||||
gpu_buffer staging_buffer(physical_device, asset);
|
||||
|
||||
// Load all textures
|
||||
auto textures = ctx.load_all_textures(gltf_texture_cache, progress_cb);
|
||||
|
||||
@@ -138,7 +138,7 @@ std::shared_ptr<renderer::texture> scene_renderer::create_default_texture(image_
|
||||
return std::make_shared<renderer::texture>(image_view, renderer::sampler_info{});
|
||||
}
|
||||
|
||||
std::shared_ptr<renderer::material> scene_renderer::create_default_material(vk::raii::CommandPool & cb_pool)
|
||||
std::shared_ptr<renderer::material> scene_renderer::create_default_material()
|
||||
{
|
||||
image_loader loader(device, physical_device, queue, queue_family_index);
|
||||
|
||||
@@ -261,7 +261,7 @@ static std::array layout_bindings_0{
|
||||
.binding = 8,
|
||||
.descriptorType = vk::DescriptorType::eUniformBuffer,
|
||||
.descriptorCount = 1,
|
||||
.stageFlags = vk::ShaderStageFlagBits::eFragment,
|
||||
.stageFlags = vk::ShaderStageFlagBits::eVertex | vk::ShaderStageFlagBits::eFragment,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -285,7 +285,7 @@ scene_renderer::scene_renderer(
|
||||
layout_0(create_descriptor_set_layout(layout_bindings_0, vk::DescriptorSetLayoutCreateFlagBits::ePushDescriptorKHR))
|
||||
{
|
||||
// Create the default material
|
||||
default_material = create_default_material(cb_pool);
|
||||
default_material = create_default_material();
|
||||
|
||||
// Create Vulkan resources
|
||||
frame_resources.resize(frames_in_flight);
|
||||
|
||||
@@ -148,7 +148,7 @@ class scene_renderer
|
||||
vk::raii::Pipeline create_pipeline(const pipeline_info & info);
|
||||
|
||||
std::shared_ptr<renderer::texture> create_default_texture(image_loader & loader, std::vector<uint8_t> pixel, const std::string & name);
|
||||
std::shared_ptr<renderer::material> create_default_material(vk::raii::CommandPool & cb_pool);
|
||||
std::shared_ptr<renderer::material> create_default_material();
|
||||
vk::raii::DescriptorSetLayout create_descriptor_set_layout(std::span<vk::DescriptorSetLayoutBinding> bindings, vk::DescriptorSetLayoutCreateFlags flags = {});
|
||||
|
||||
// Caches
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "scene.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "render/scene_components.h"
|
||||
#include "utils/contains.h"
|
||||
@@ -611,3 +612,28 @@ void scene::remove(entt::entity entity)
|
||||
void scene::on_unfocused() {}
|
||||
void scene::on_focused() {}
|
||||
void scene::on_xr_event(const xr::event &) {}
|
||||
|
||||
bool scene::on_input_key_down(uint8_t key_code)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool scene::on_input_key_up(uint8_t key_code)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool scene::on_input_mouse_move(float x, float y)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool scene::on_input_button_down(uint8_t button)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool scene::on_input_button_up(uint8_t button)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool scene::on_input_scroll(float h, float v)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -213,6 +213,13 @@ public:
|
||||
virtual void render(const XrFrameState &) = 0;
|
||||
virtual void on_xr_event(const xr::event &);
|
||||
|
||||
virtual bool on_input_key_down(uint8_t key_code);
|
||||
virtual bool on_input_key_up(uint8_t key_code);
|
||||
virtual bool on_input_mouse_move(float x, float y);
|
||||
virtual bool on_input_button_down(uint8_t button);
|
||||
virtual bool on_input_button_up(uint8_t button);
|
||||
virtual bool on_input_scroll(float h, float v);
|
||||
|
||||
entt::registry world;
|
||||
|
||||
std::shared_ptr<entt::registry> load_gltf(const std::filesystem::path & path, std::function<void(float)> progress_cb = {});
|
||||
|
||||
@@ -397,15 +397,22 @@ static void set_clipping_planes(entt::registry & scene, entt::entity entity, std
|
||||
}
|
||||
}
|
||||
|
||||
void input_profile::apply(entt::registry & scene, XrSpace world_space, XrTime predicted_display_time, bool hide_left, bool hide_right, std::span<glm::vec4> pointer_limits)
|
||||
void input_profile::apply(
|
||||
entt::registry & scene,
|
||||
XrSpace world_space,
|
||||
XrTime predicted_display_time,
|
||||
bool hide_left_controller,
|
||||
bool hide_left_ray,
|
||||
bool hide_right_controller,
|
||||
bool hide_right_ray,
|
||||
std::span<glm::vec4> pointer_limits)
|
||||
{
|
||||
for (auto && [entity, node, space]: scene.view<components::node, bound_space>().each())
|
||||
{
|
||||
if ((space.space == xr::spaces::grip_left or space.space == xr::spaces::aim_left) and hide_left)
|
||||
{
|
||||
node.visible = false;
|
||||
}
|
||||
else if ((space.space == xr::spaces::grip_right or space.space == xr::spaces::aim_right) and hide_right)
|
||||
if ((space.space == xr::spaces::grip_left and hide_left_controller) or
|
||||
(space.space == xr::spaces::aim_left and hide_left_ray) or
|
||||
(space.space == xr::spaces::grip_right and hide_right_controller) or
|
||||
(space.space == xr::spaces::aim_right and hide_right_ray))
|
||||
{
|
||||
node.visible = false;
|
||||
}
|
||||
|
||||
@@ -40,5 +40,13 @@ struct input_profile
|
||||
input_profile(scene & scene, const std::filesystem::path & json_profile, uint32_t layer_mask_controller, uint32_t layer_mask_ray);
|
||||
|
||||
// application::poll_actions() must have been called before
|
||||
void apply(entt::registry & scene, XrSpace world_space, XrTime predicted_display_time, bool hide_left, bool hide_right, std::span<glm::vec4> pointer_limits);
|
||||
void apply(
|
||||
entt::registry & scene,
|
||||
XrSpace world_space,
|
||||
XrTime predicted_display_time,
|
||||
bool hide_left_controller,
|
||||
bool hide_left_ray,
|
||||
bool hide_right_controller,
|
||||
bool hide_right_ray,
|
||||
std::span<glm::vec4> pointer_limits);
|
||||
};
|
||||
|
||||
+373
-49
@@ -31,6 +31,7 @@
|
||||
#include "render/scene_components.h"
|
||||
#include "stream.h"
|
||||
#include "utils/files.h"
|
||||
#include "utils/glm_cast.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "wivrn_client.h"
|
||||
#include "wivrn_discover.h"
|
||||
@@ -84,14 +85,38 @@ static const std::array supported_depth_formats{
|
||||
vk::Format::eX8D24UnormPack32,
|
||||
};
|
||||
|
||||
static float interpolate(float x, std::span<const std::pair<float, float>> arr)
|
||||
{
|
||||
assert(arr.size() >= 1);
|
||||
|
||||
if (x <= arr[0].first)
|
||||
return arr[0].second;
|
||||
|
||||
if (x >= arr.back().first)
|
||||
return arr.back().second;
|
||||
|
||||
for (size_t i = 0; i + 1 < arr.size(); i++)
|
||||
{
|
||||
assert(arr[i].first <= arr[i + 1].first);
|
||||
if (arr[i].first <= x and x < arr[i + 1].first)
|
||||
{
|
||||
auto t = (x - arr[i].first) / (arr[i + 1].first - arr[i].first);
|
||||
return std::lerp(arr[i].second, arr[i + 1].second, t);
|
||||
}
|
||||
}
|
||||
|
||||
return arr[0].second; // Should never happen
|
||||
}
|
||||
|
||||
static glm::quat compute_gui_orientation(glm::vec3 head_position, glm::vec3 new_gui_position)
|
||||
{
|
||||
using constants::lobby::gui_pitch;
|
||||
|
||||
glm::vec3 gui_direction = new_gui_position - head_position;
|
||||
|
||||
float gui_yaw = atan2(gui_direction.x, gui_direction.z) + M_PI;
|
||||
|
||||
float eye_gaze_elevation = atan2(gui_direction.y, glm::length(glm::vec2(gui_direction.x, gui_direction.z)));
|
||||
float gui_pitch = interpolate(eye_gaze_elevation * 180 / M_PI, constants::lobby::gui_pitches) * M_PI / 180;
|
||||
|
||||
return glm::quat(cos(gui_yaw / 2), 0, sin(gui_yaw / 2), 0) * glm::quat(cos(gui_pitch / 2), sin(gui_pitch / 2), 0, 0);
|
||||
}
|
||||
|
||||
@@ -403,27 +428,59 @@ void scenes::lobby::connect(const configuration::server_data & data)
|
||||
data.manual);
|
||||
}
|
||||
|
||||
std::optional<glm::vec3> scenes::lobby::check_recenter_gesture(xr::spaces space, const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & joints)
|
||||
std::optional<glm::vec3> scenes::lobby::check_recenter_gesture(
|
||||
xr::spaces space,
|
||||
const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & joints,
|
||||
const std::pair<glm::vec3, glm::quat> & head_pose)
|
||||
{
|
||||
if (recentering_context and std::get<0>(*recentering_context) != space)
|
||||
return std::nullopt;
|
||||
|
||||
if (not joints)
|
||||
if (joints)
|
||||
{
|
||||
recentering_context.reset();
|
||||
return std::nullopt;
|
||||
}
|
||||
const auto & palm = (*joints)[XR_HAND_JOINT_PALM_EXT].first;
|
||||
const auto palm_y = glm::rotate(glm_cast(palm.pose.orientation), glm::vec3(0, 1, 0));
|
||||
|
||||
const auto & palm = (*joints)[XR_HAND_JOINT_PALM_EXT].first;
|
||||
const auto & o = palm.pose.orientation;
|
||||
const auto & p = palm.pose.position;
|
||||
glm::quat q{o.w, o.x, o.y, o.z};
|
||||
glm::vec3 v{p.x, p.y, p.z};
|
||||
for (XrHandJointEXT index: {
|
||||
XR_HAND_JOINT_INDEX_PROXIMAL_EXT,
|
||||
XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT,
|
||||
XR_HAND_JOINT_INDEX_DISTAL_EXT,
|
||||
|
||||
if (glm::dot(q * glm::vec3(0, 1, 0), glm::vec3(0, -1, 0)) > constants::lobby::recenter_cosangle_min)
|
||||
{
|
||||
recentering_context.emplace(space, glm::vec3{}, 0);
|
||||
return v + glm::vec3(0, constants::lobby::recenter_distance_up, 0) + q * glm::vec3(0, 0, -constants::lobby::recenter_distance_front);
|
||||
XR_HAND_JOINT_MIDDLE_PROXIMAL_EXT,
|
||||
XR_HAND_JOINT_MIDDLE_INTERMEDIATE_EXT,
|
||||
XR_HAND_JOINT_MIDDLE_DISTAL_EXT,
|
||||
|
||||
XR_HAND_JOINT_RING_PROXIMAL_EXT,
|
||||
XR_HAND_JOINT_RING_INTERMEDIATE_EXT,
|
||||
XR_HAND_JOINT_RING_DISTAL_EXT,
|
||||
|
||||
XR_HAND_JOINT_LITTLE_PROXIMAL_EXT,
|
||||
XR_HAND_JOINT_LITTLE_INTERMEDIATE_EXT,
|
||||
XR_HAND_JOINT_LITTLE_DISTAL_EXT,
|
||||
})
|
||||
{
|
||||
const auto fingertip_y = glm::rotate(glm_cast((*joints)[index].first.pose.orientation), glm::vec3(0, 1, 0));
|
||||
|
||||
if (glm::dot(palm_y, fingertip_y) < constants::lobby::recenter_cos_fingertip_angle_max)
|
||||
{
|
||||
recentering_context.reset();
|
||||
return std::nullopt;
|
||||
}
|
||||
}
|
||||
|
||||
const auto q = glm_cast(palm.pose.orientation);
|
||||
const auto x = glm_cast(palm.pose.position);
|
||||
|
||||
// Make the up vector orthogonal to forward
|
||||
const glm::vec3 forward = glm::rotate(head_pose.second, glm::vec3{0, 0, -1});
|
||||
const glm::vec3 up = glm::normalize(glm::vec3{0, 1, 0} - forward * glm::dot(forward, {0, 1, 0}));
|
||||
|
||||
// Y is pointing to the back of the hand
|
||||
if (glm::dot(q * glm::vec3(0, -1, 0), up) > constants::lobby::recenter_cos_palm_angle_min)
|
||||
{
|
||||
recentering_context.emplace(space, glm::vec3{}, 0);
|
||||
return x + glm::rotate(q, glm::vec3{0, -constants::lobby::recenter_distance_up, -constants::lobby::recenter_distance_front});
|
||||
}
|
||||
}
|
||||
|
||||
recentering_context.reset();
|
||||
@@ -485,12 +542,11 @@ std::optional<glm::vec3> scenes::lobby::check_recenter_action(XrTime predicted_d
|
||||
{
|
||||
// First frame of recentering
|
||||
imgui_context::controller_state state{
|
||||
.active = true,
|
||||
.aim_position = aim->first,
|
||||
.aim_orientation = aim->second,
|
||||
};
|
||||
|
||||
imgui_ctx->compute_pointer_position(state);
|
||||
state.pointer_position = imgui_ctx->compute_pointer_position(state).first;
|
||||
|
||||
if (state.pointer_position) // TODO: check that the pointer is inside an imgui window
|
||||
{
|
||||
@@ -535,14 +591,21 @@ std::optional<glm::vec3> scenes::lobby::check_recenter_action(XrTime predicted_d
|
||||
// One step is usually enough, the solution will continuously improve in the next frames
|
||||
glm::vec3 gui_position = imgui_ctx->layers()[0].position;
|
||||
float eps = 0.01;
|
||||
glm::vec3 obj = f(gui_position);
|
||||
glm::vec3 obj_dx = (f(gui_position + glm::vec3(eps, 0, 0)) - obj) / eps;
|
||||
glm::vec3 obj_dy = (f(gui_position + glm::vec3(0, eps, 0)) - obj) / eps;
|
||||
glm::vec3 obj_dz = (f(gui_position + glm::vec3(0, 0, eps)) - obj) / eps;
|
||||
|
||||
glm::mat3 jacobian{obj_dx, obj_dy, obj_dz};
|
||||
glm::vec3 obj;
|
||||
int n_iter = 0;
|
||||
do
|
||||
{
|
||||
obj = f(gui_position);
|
||||
glm::vec3 obj_dx = (f(gui_position + glm::vec3(eps, 0, 0)) - obj) / eps;
|
||||
glm::vec3 obj_dy = (f(gui_position + glm::vec3(0, eps, 0)) - obj) / eps;
|
||||
glm::vec3 obj_dz = (f(gui_position + glm::vec3(0, 0, eps)) - obj) / eps;
|
||||
|
||||
gui_position -= glm::inverse(jacobian) * obj;
|
||||
glm::mat3 jacobian{obj_dx, obj_dy, obj_dz};
|
||||
|
||||
gui_position -= 0.01 * glm::inverse(jacobian) * obj;
|
||||
n_iter++;
|
||||
} while (glm::length(obj) > 0.0001 and n_iter < 1000);
|
||||
|
||||
return gui_position;
|
||||
}
|
||||
@@ -584,6 +647,240 @@ static glm::vec4 compute_ray_limits(const XrPosef & pose, float margin = 0)
|
||||
return glm::vec4(normal, -glm::dot(p, normal) - margin);
|
||||
}
|
||||
|
||||
static void stick_finger_to_gui(std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> & hand, const std::vector<imgui_context::viewport> & layers)
|
||||
{
|
||||
// Move XR_HAND_JOINT_INDEX_{TIP,DISTAL,INTERMEDIATE,PROXIMAL}_EXT so that:
|
||||
// - Only the X rotation changes for distal and intermediate (relative to the parent bone)
|
||||
// - Only the X and Y rotation change for the proximal
|
||||
// - The orientation of the tip is the same as the distal
|
||||
// - The position stays constant in the frame of the parent bone
|
||||
// - The position of the tip is on the closest imgui window (considering the tip radius)
|
||||
// - The rotation on X for the index proximal is limited to [-90, +30]
|
||||
// - The rotation on Y for the index proximal is limited to [-30, +30]
|
||||
// - The rotation on X for the index intermediate are equal and limited to [-90, 0]
|
||||
|
||||
// Convert from OpenXR types to glm
|
||||
glm::vec3 tip_x{
|
||||
hand[XR_HAND_JOINT_INDEX_TIP_EXT].first.pose.position.x,
|
||||
hand[XR_HAND_JOINT_INDEX_TIP_EXT].first.pose.position.y,
|
||||
hand[XR_HAND_JOINT_INDEX_TIP_EXT].first.pose.position.z};
|
||||
|
||||
// Compute the target position of the tip
|
||||
std::vector<std::pair<glm::vec3, float>> intersections; // Target position of the finger tip, distance to the GUI plane
|
||||
for (const imgui_context::viewport & layer: layers)
|
||||
{
|
||||
// Ignore layers that are not absolutely positionned
|
||||
if (layer.space != xr::spaces::world)
|
||||
continue;
|
||||
|
||||
// Compute all vectors in the reference frame of the GUI plane
|
||||
// The normal of the GUI plane is +Z, the tip points toward -Z
|
||||
auto M = glm::mat3_cast(layer.orientation); // plane-to-world transform
|
||||
glm::vec3 ray_start = glm::transpose(M) * (tip_x - layer.position);
|
||||
|
||||
// Ignore this layer if the tip is outside the limits
|
||||
if (std::abs(ray_start.x) > layer.size.x / 2)
|
||||
continue;
|
||||
|
||||
if (std::abs(ray_start.y) > layer.size.y / 2)
|
||||
continue;
|
||||
|
||||
float distance = ray_start.z; // Positive when the point is in front of the plane
|
||||
|
||||
// Not near the plane: ignore
|
||||
if (distance > 0 or distance < constants::gui::fingertip_distance_stick_thd)
|
||||
continue;
|
||||
|
||||
glm::vec3 target_position = tip_x + M * glm::vec3{0, 0, -distance};
|
||||
|
||||
intersections.emplace_back(target_position, std::abs(distance));
|
||||
}
|
||||
|
||||
if (intersections.empty())
|
||||
return;
|
||||
|
||||
auto [target_position, distance] = *std::ranges::min_element(intersections, {}, &std::pair<glm::vec3, float>::second);
|
||||
|
||||
// Convert from OpenXR to glm
|
||||
glm::vec3 distal_x{
|
||||
hand[XR_HAND_JOINT_INDEX_DISTAL_EXT].first.pose.position.x,
|
||||
hand[XR_HAND_JOINT_INDEX_DISTAL_EXT].first.pose.position.y,
|
||||
hand[XR_HAND_JOINT_INDEX_DISTAL_EXT].first.pose.position.z};
|
||||
glm::vec3 intermediate_x{
|
||||
hand[XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT].first.pose.position.x,
|
||||
hand[XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT].first.pose.position.y,
|
||||
hand[XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT].first.pose.position.z};
|
||||
glm::vec3 proximal_x{
|
||||
hand[XR_HAND_JOINT_INDEX_PROXIMAL_EXT].first.pose.position.x,
|
||||
hand[XR_HAND_JOINT_INDEX_PROXIMAL_EXT].first.pose.position.y,
|
||||
hand[XR_HAND_JOINT_INDEX_PROXIMAL_EXT].first.pose.position.z};
|
||||
glm::vec3 metacarpal_x{
|
||||
hand[XR_HAND_JOINT_INDEX_METACARPAL_EXT].first.pose.position.x,
|
||||
hand[XR_HAND_JOINT_INDEX_METACARPAL_EXT].first.pose.position.y,
|
||||
hand[XR_HAND_JOINT_INDEX_METACARPAL_EXT].first.pose.position.z};
|
||||
glm::quat distal_q = glm::quat::wxyz(
|
||||
hand[XR_HAND_JOINT_INDEX_DISTAL_EXT].first.pose.orientation.w,
|
||||
hand[XR_HAND_JOINT_INDEX_DISTAL_EXT].first.pose.orientation.x,
|
||||
hand[XR_HAND_JOINT_INDEX_DISTAL_EXT].first.pose.orientation.y,
|
||||
hand[XR_HAND_JOINT_INDEX_DISTAL_EXT].first.pose.orientation.z);
|
||||
glm::quat intermediate_q = glm::quat::wxyz(
|
||||
hand[XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT].first.pose.orientation.w,
|
||||
hand[XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT].first.pose.orientation.x,
|
||||
hand[XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT].first.pose.orientation.y,
|
||||
hand[XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT].first.pose.orientation.z);
|
||||
glm::quat proximal_q = glm::quat::wxyz(
|
||||
hand[XR_HAND_JOINT_INDEX_PROXIMAL_EXT].first.pose.orientation.w,
|
||||
hand[XR_HAND_JOINT_INDEX_PROXIMAL_EXT].first.pose.orientation.x,
|
||||
hand[XR_HAND_JOINT_INDEX_PROXIMAL_EXT].first.pose.orientation.y,
|
||||
hand[XR_HAND_JOINT_INDEX_PROXIMAL_EXT].first.pose.orientation.z);
|
||||
glm::quat metacarpal_q = glm::quat::wxyz(
|
||||
hand[XR_HAND_JOINT_INDEX_METACARPAL_EXT].first.pose.orientation.w,
|
||||
hand[XR_HAND_JOINT_INDEX_METACARPAL_EXT].first.pose.orientation.x,
|
||||
hand[XR_HAND_JOINT_INDEX_METACARPAL_EXT].first.pose.orientation.y,
|
||||
hand[XR_HAND_JOINT_INDEX_METACARPAL_EXT].first.pose.orientation.z);
|
||||
|
||||
// Get relative positions and orientations
|
||||
const auto rel_tip_x = glm::rotate(glm::conjugate(distal_q), tip_x - distal_x);
|
||||
// relative tip orientation is always identity
|
||||
|
||||
const auto rel_distal_x = glm::rotate(glm::conjugate(intermediate_q), distal_x - intermediate_x);
|
||||
const auto rel_distal_q = glm::conjugate(intermediate_q) * distal_q;
|
||||
const auto rel_distal_θ = glm::eulerAngles(rel_distal_q);
|
||||
|
||||
const auto rel_intermediate_x = glm::rotate(glm::conjugate(proximal_q), intermediate_x - proximal_x);
|
||||
const auto rel_intermediate_q = glm::conjugate(proximal_q) * intermediate_q;
|
||||
const auto rel_intermediate_θ = glm::eulerAngles(rel_intermediate_q);
|
||||
|
||||
const auto rel_proximal_x = glm::rotate(glm::conjugate(metacarpal_q), proximal_x - metacarpal_x);
|
||||
const auto rel_proximal_q = glm::conjugate(metacarpal_q) * proximal_q;
|
||||
const auto rel_proximal_θ = glm::eulerAngles(rel_proximal_q);
|
||||
|
||||
// Forward kinematics
|
||||
auto f = [&](float proximal_θx, float proximal_θy, float intermediate_θx, float distal_θx) -> glm::vec3 {
|
||||
// Compute the absolute tip position
|
||||
const glm::quat new_rel_proximal_q = glm::quat(glm::vec3(proximal_θx, proximal_θy, rel_proximal_θ.z));
|
||||
const glm::quat new_rel_intermediate_q = glm::quat(glm::vec3(intermediate_θx, rel_intermediate_θ.y, rel_intermediate_θ.z));
|
||||
const glm::quat new_rel_distal_q = glm::quat(glm::vec3(distal_θx, rel_distal_θ.y, rel_distal_θ.z));
|
||||
|
||||
const glm::quat proximal_q = metacarpal_q * new_rel_proximal_q;
|
||||
const glm::quat intermediate_q = proximal_q * new_rel_intermediate_q;
|
||||
const glm::quat distal_q = intermediate_q * new_rel_distal_q;
|
||||
|
||||
const glm::vec3 tip_x = metacarpal_x +
|
||||
glm::rotate(metacarpal_q, rel_proximal_x) +
|
||||
glm::rotate(proximal_q, rel_intermediate_x) +
|
||||
glm::rotate(intermediate_q, rel_distal_x) +
|
||||
glm::rotate(distal_q, rel_tip_x);
|
||||
|
||||
return tip_x - target_position;
|
||||
};
|
||||
|
||||
// Inverse kinematics solver for the tip position
|
||||
float proximal_θx = rel_proximal_θ.x;
|
||||
float proximal_θy = rel_proximal_θ.y;
|
||||
float intermediate_θx = rel_intermediate_θ.x;
|
||||
float distal_θx = rel_distal_θ.x;
|
||||
|
||||
glm::vec3 objective = f(proximal_θx, proximal_θy, intermediate_θx, distal_θx);
|
||||
float eps = 0.01; // 10 milliradian ~ 0.57 deg
|
||||
int n = 0;
|
||||
|
||||
while (glm::length(objective) > 1e-4 and n++ < 1000)
|
||||
{
|
||||
glm::vec3 dobj_1 = (f(proximal_θx + eps, proximal_θy, intermediate_θx, distal_θx) - objective) / eps;
|
||||
glm::vec3 dobj_2 = (f(proximal_θx, proximal_θy + eps, intermediate_θx, distal_θx) - objective) / eps;
|
||||
glm::vec3 dobj_3 = (f(proximal_θx, proximal_θy, intermediate_θx + eps, distal_θx) - objective) / eps;
|
||||
glm::vec3 dobj_4 = (f(proximal_θx, proximal_θy, intermediate_θx, distal_θx + eps) - objective) / eps;
|
||||
|
||||
glm::mat4x3 jacobian(dobj_1, dobj_2, dobj_3, dobj_4);
|
||||
glm::mat3x4 jacobian_transpose = glm::transpose(jacobian);
|
||||
|
||||
glm::vec4 direction = -glm::normalize(jacobian_transpose * objective);
|
||||
glm::vec4 delta = 10 * direction * glm::length(objective);
|
||||
|
||||
float tmp = (delta.z + delta.w) / 2;
|
||||
delta.z = delta.w = tmp;
|
||||
|
||||
proximal_θx = std::clamp<float>(proximal_θx + delta.x, -M_PI / 2, M_PI / 6);
|
||||
proximal_θy = std::clamp<float>(proximal_θy + delta.y, -M_PI / 6, M_PI / 6);
|
||||
intermediate_θx = std::clamp<float>(intermediate_θx + delta.z, -M_PI / 2, 0);
|
||||
distal_θx = std::clamp<float>(distal_θx + delta.w, -M_PI / 2, 0);
|
||||
|
||||
objective = f(proximal_θx, proximal_θy, intermediate_θx, distal_θx);
|
||||
}
|
||||
|
||||
// Fill in the modified bones
|
||||
const glm::vec3 new_rel_proximal_θ(proximal_θx, proximal_θy, rel_proximal_θ.z);
|
||||
const glm::vec3 new_rel_intermediate_θ(intermediate_θx, rel_intermediate_θ.y, rel_intermediate_θ.z);
|
||||
const glm::vec3 new_rel_distal_θ(distal_θx, rel_distal_θ.y, rel_distal_θ.z);
|
||||
|
||||
const glm::quat new_rel_proximal_q = glm::quat(new_rel_proximal_θ);
|
||||
const glm::quat new_rel_intermediate_q = glm::quat(new_rel_intermediate_θ);
|
||||
const glm::quat new_rel_distal_q = glm::quat(new_rel_distal_θ);
|
||||
|
||||
proximal_q = metacarpal_q * new_rel_proximal_q;
|
||||
intermediate_q = proximal_q * new_rel_intermediate_q;
|
||||
distal_q = intermediate_q * new_rel_distal_q;
|
||||
|
||||
intermediate_x = proximal_x + glm::rotate(proximal_q, rel_intermediate_x);
|
||||
distal_x = intermediate_x + glm::rotate(intermediate_q, rel_distal_x);
|
||||
tip_x = distal_x + glm::rotate(distal_q, rel_tip_x);
|
||||
|
||||
hand[XR_HAND_JOINT_INDEX_PROXIMAL_EXT].first.pose.orientation = {
|
||||
proximal_q.x,
|
||||
proximal_q.y,
|
||||
proximal_q.z,
|
||||
proximal_q.w,
|
||||
};
|
||||
hand[XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT].first.pose = {
|
||||
.orientation = {
|
||||
intermediate_q.x,
|
||||
intermediate_q.y,
|
||||
intermediate_q.z,
|
||||
intermediate_q.w,
|
||||
},
|
||||
.position = {
|
||||
intermediate_x.x,
|
||||
intermediate_x.y,
|
||||
intermediate_x.z,
|
||||
},
|
||||
};
|
||||
hand[XR_HAND_JOINT_INDEX_DISTAL_EXT].first.pose = {
|
||||
.orientation = {
|
||||
distal_q.x,
|
||||
distal_q.y,
|
||||
distal_q.z,
|
||||
distal_q.w,
|
||||
},
|
||||
.position = {
|
||||
distal_x.x,
|
||||
distal_x.y,
|
||||
distal_x.z,
|
||||
},
|
||||
};
|
||||
hand[XR_HAND_JOINT_INDEX_TIP_EXT].first.pose = {
|
||||
.orientation = {
|
||||
distal_q.x,
|
||||
distal_q.y,
|
||||
distal_q.z,
|
||||
distal_q.w,
|
||||
},
|
||||
.position = {
|
||||
tip_x.x,
|
||||
tip_x.y,
|
||||
tip_x.z,
|
||||
},
|
||||
};
|
||||
|
||||
// Translate the whole hand if we cannot find an exact solution
|
||||
for (auto & hand_joint: hand)
|
||||
{
|
||||
hand_joint.first.pose.position.x -= objective.x;
|
||||
hand_joint.first.pose.position.y -= objective.y;
|
||||
hand_joint.first.pose.position.z -= objective.z;
|
||||
}
|
||||
}
|
||||
|
||||
void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
{
|
||||
if (async_session.valid() && async_session.poll() == utils::future_status::ready)
|
||||
@@ -651,6 +948,8 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
}
|
||||
|
||||
session.begin_frame();
|
||||
renderer->debug_draw_clear();
|
||||
|
||||
#if WIVRN_FEATURE_RENDERDOC
|
||||
renderdoc_begin(*vk_instance);
|
||||
#endif
|
||||
@@ -674,25 +973,32 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
|
||||
if (left_hand and right_hand)
|
||||
{
|
||||
auto windows = imgui_ctx->windows();
|
||||
|
||||
auto left = left_hand->locate(world_space, frame_state.predictedDisplayTime);
|
||||
if (left and xr::hand_tracker::check_flags(*left, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
|
||||
{
|
||||
stick_finger_to_gui(*left, windows);
|
||||
hide_left_controller = true;
|
||||
}
|
||||
|
||||
auto right = right_hand->locate(world_space, frame_state.predictedDisplayTime);
|
||||
if (right and xr::hand_tracker::check_flags(*right, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
|
||||
{
|
||||
stick_finger_to_gui(*right, windows);
|
||||
hide_right_controller = true;
|
||||
}
|
||||
|
||||
hand_model::apply(world, left, right);
|
||||
|
||||
if (left and xr::hand_tracker::check_flags(*left, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
|
||||
hide_left_controller = true;
|
||||
if (not new_gui_position and head_position)
|
||||
new_gui_position = check_recenter_gesture(xr::spaces::palm_left, left, *head_position);
|
||||
|
||||
if (right and xr::hand_tracker::check_flags(*right, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
|
||||
hide_right_controller = true;
|
||||
|
||||
if (not new_gui_position)
|
||||
new_gui_position = check_recenter_gesture(xr::spaces::palm_left, left);
|
||||
|
||||
if (not new_gui_position)
|
||||
new_gui_position = check_recenter_gesture(xr::spaces::palm_right, right);
|
||||
if (not new_gui_position and head_position)
|
||||
new_gui_position = check_recenter_gesture(xr::spaces::palm_right, right, *head_position);
|
||||
}
|
||||
|
||||
if (head_position && new_gui_position)
|
||||
if (head_position and new_gui_position)
|
||||
{
|
||||
move_gui(head_position->first, *new_gui_position);
|
||||
}
|
||||
@@ -736,7 +1042,6 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
}
|
||||
#endif
|
||||
|
||||
renderer->debug_draw_clear();
|
||||
std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_layers = draw_gui(frame_state.predictedDisplayTime);
|
||||
|
||||
#if WIVRN_CLIENT_DEBUG_MENU
|
||||
@@ -759,12 +1064,17 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
ray_limits.push_back(compute_ray_limits(layer.pose));
|
||||
}
|
||||
|
||||
input->apply(world, world_space, frame_state.predictedDisplayTime, hide_left_controller, hide_right_controller, ray_limits);
|
||||
input->apply(world,
|
||||
world_space,
|
||||
frame_state.predictedDisplayTime,
|
||||
hide_left_controller,
|
||||
not imgui_ctx->is_aim_interaction()[0],
|
||||
hide_right_controller,
|
||||
not imgui_ctx->is_aim_interaction()[1],
|
||||
ray_limits);
|
||||
|
||||
renderer::animate(world, frame_state.predictedDisplayPeriod * 1.0e-9);
|
||||
|
||||
assert(renderer);
|
||||
|
||||
world.get<components::node>(lobby_entity).visible = not application::get_config().passthrough_enabled;
|
||||
|
||||
render_start(application::get_config().passthrough_enabled, frame_state.predictedDisplayTime);
|
||||
@@ -892,6 +1202,14 @@ void scenes::lobby::on_focused()
|
||||
recenter_left_action = get_action("recenter_left").first;
|
||||
recenter_right_action = get_action("recenter_right").first;
|
||||
|
||||
if (system.hand_tracking_supported())
|
||||
{
|
||||
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
|
||||
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
|
||||
hand_model::add_hand(*this, XR_HAND_LEFT_EXT, "assets://left-hand.glb", layer_controllers);
|
||||
hand_model::add_hand(*this, XR_HAND_RIGHT_EXT, "assets://right-hand.glb", layer_controllers);
|
||||
}
|
||||
|
||||
std::vector imgui_inputs{
|
||||
imgui_context::controller{
|
||||
.aim = get_action_space("left_aim"),
|
||||
@@ -900,6 +1218,7 @@ void scenes::lobby::on_focused()
|
||||
.squeeze = get_action("left_squeeze").first,
|
||||
.scroll = get_action("left_scroll").first,
|
||||
.haptic_output = get_action("left_haptic").first,
|
||||
.hand = left_hand ? &*left_hand : nullptr,
|
||||
},
|
||||
imgui_context::controller{
|
||||
.aim = get_action_space("right_aim"),
|
||||
@@ -908,19 +1227,10 @@ void scenes::lobby::on_focused()
|
||||
.squeeze = get_action("right_squeeze").first,
|
||||
.scroll = get_action("right_scroll").first,
|
||||
.haptic_output = get_action("right_haptic").first,
|
||||
.hand = right_hand ? &*right_hand : nullptr,
|
||||
},
|
||||
};
|
||||
|
||||
if (system.hand_tracking_supported())
|
||||
{
|
||||
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
|
||||
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
|
||||
hand_model::add_hand(*this, XR_HAND_LEFT_EXT, "assets://left-hand.glb", layer_controllers);
|
||||
hand_model::add_hand(*this, XR_HAND_RIGHT_EXT, "assets://right-hand.glb", layer_controllers);
|
||||
imgui_inputs.push_back({.hand = &*left_hand});
|
||||
imgui_inputs.push_back({.hand = &*right_hand});
|
||||
}
|
||||
|
||||
face_tracker = xr::make_face_tracker(instance, system, session);
|
||||
|
||||
// 0.4mm / pixel
|
||||
@@ -1024,6 +1334,9 @@ void scenes::lobby::on_focused()
|
||||
setup_passthrough();
|
||||
session.set_refresh_rate(application::get_config().preferred_refresh_rate.value_or(0));
|
||||
multicast = application::get_wifi_lock().get_multicast_lock();
|
||||
|
||||
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
|
||||
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_GPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
|
||||
}
|
||||
|
||||
void scenes::lobby::setup_passthrough()
|
||||
@@ -1136,6 +1449,17 @@ scene::meta & scenes::lobby::get_meta_scene()
|
||||
{"right_squeeze", "/user/hand/right/input/menu/click"},
|
||||
},
|
||||
},
|
||||
suggested_binding{
|
||||
{
|
||||
"/interaction_profiles/ext/hand_interaction_ext",
|
||||
},
|
||||
{
|
||||
{"left_aim", "/user/hand/left/input/aim/pose"},
|
||||
{"left_trigger", "/user/hand/left/input/aim_activate_ext"},
|
||||
{"right_aim", "/user/hand/right/input/aim/pose"},
|
||||
{"right_trigger", "/user/hand/right/input/aim_activate_ext"},
|
||||
},
|
||||
},
|
||||
}};
|
||||
|
||||
return m;
|
||||
|
||||
@@ -238,7 +238,7 @@ class lobby : public scene_impl<lobby>
|
||||
void connect(const configuration::server_data & data);
|
||||
std::unique_ptr<wivrn_session> connect_to_session(wivrn_discover::service service, bool manual_connection);
|
||||
|
||||
std::optional<glm::vec3> check_recenter_gesture(xr::spaces space, const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & joints);
|
||||
std::optional<glm::vec3> check_recenter_gesture(xr::spaces space, const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & joints, const std::pair<glm::vec3, glm::quat> & head_pose);
|
||||
std::optional<glm::vec3> check_recenter_action(XrTime predicted_display_time, glm::vec3 head_position);
|
||||
std::optional<glm::vec3> check_recenter_gui(glm::vec3 head_position, glm::quat head_orientation);
|
||||
|
||||
|
||||
@@ -667,6 +667,15 @@ void scenes::lobby::gui_settings()
|
||||
}
|
||||
}
|
||||
|
||||
if (instance.has_extension(XR_EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME))
|
||||
{
|
||||
if (ImGui::Checkbox(_S("High power mode"), &config.high_power_mode))
|
||||
config.save();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Increase power usage to allow higher resolution and refresh rate"));
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
}
|
||||
|
||||
{
|
||||
bool enabled = config.check_feature(feature::microphone);
|
||||
if (ImGui::Checkbox(_S("Enable microphone"), &enabled))
|
||||
@@ -1081,7 +1090,7 @@ void scenes::lobby::gui_debug()
|
||||
void scenes::lobby::gui_about()
|
||||
{
|
||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||
CenterTextH(std::string("WiVRn ") + wivrn::git_version);
|
||||
CenterTextH(std::string("WiVRn ") + wivrn::display_version());
|
||||
ImGui::PopFont();
|
||||
|
||||
ImGui::Dummy(ImVec2(0, 60));
|
||||
@@ -1134,6 +1143,8 @@ void scenes::lobby::gui_first_run()
|
||||
CenterTextH(_("Welcome to WiVRn"));
|
||||
ImGui::PopFont();
|
||||
|
||||
config.set_feature(feature::hand_tracking, true);
|
||||
|
||||
while (optional_feature_index < optional_features.size() and
|
||||
(not optional_features[optional_feature_index].supported or
|
||||
config.check_feature(optional_features[optional_feature_index].f)))
|
||||
|
||||
@@ -26,12 +26,18 @@
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "imspinner.h"
|
||||
#include "render/image_writer.h"
|
||||
#include "render/scene_renderer.h"
|
||||
#include "utils/files.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "utils/json_string.h"
|
||||
#include "vk/allocation.h"
|
||||
#include <algorithm>
|
||||
#include <boost/url/url.hpp>
|
||||
#include <boost/url/url_view.hpp>
|
||||
#include <chrono>
|
||||
#include <spdlog/fmt/chrono.h>
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include "IconsFontAwesome6.h"
|
||||
|
||||
@@ -53,8 +59,12 @@ void scenes::lobby::save_environment_json()
|
||||
<< ",\"description\":" << json_string(model.description)
|
||||
<< ",\"screenshot\":" << json_string(model.screenshot_url)
|
||||
<< ",\"url\":" << json_string(model.gltf_url)
|
||||
<< ",\"size\":" << model.size
|
||||
<< "},";
|
||||
<< ",\"size\":" << model.size;
|
||||
|
||||
// TODO only if not the default value
|
||||
ss << ",\"local_screenshot\":" << json_string(model.local_screenshot_path);
|
||||
ss << ",\"local_path\":" << json_string(model.local_gltf_path);
|
||||
ss << "},";
|
||||
}
|
||||
if (not empty)
|
||||
ss.seekp(-1, ss.cur);
|
||||
@@ -112,8 +122,16 @@ std::vector<scenes::lobby::environment_model> scenes::lobby::load_environment_js
|
||||
model.size = val.get_int64();
|
||||
|
||||
model.builtin = false;
|
||||
model.local_screenshot_path = application::get_config_path() / "environments" / (model.name + ".png");
|
||||
model.local_gltf_path = application::get_config_path() / "environments" / (model.name + ".glb");
|
||||
|
||||
if (auto val = i["local_screenshot"]; val.is_string())
|
||||
model.local_screenshot_path = val.get_string().value();
|
||||
else
|
||||
model.local_screenshot_path = application::get_config_path() / "environments" / (model.name + ".png");
|
||||
|
||||
if (auto val = i["local_path"]; val.is_string())
|
||||
model.local_gltf_path = val.get_string().value();
|
||||
else
|
||||
model.local_gltf_path = application::get_config_path() / "environments" / (model.name + ".glb");
|
||||
|
||||
models.push_back(std::move(model));
|
||||
}
|
||||
@@ -180,24 +198,102 @@ void scenes::lobby::update_file_picker()
|
||||
load_environment_status = "";
|
||||
future_environment = utils::async<std::pair<std::string, std::shared_ptr<entt::registry>>, float>(
|
||||
[this](auto token, file_picker_result environment) {
|
||||
auto local_path = application::get_cache_path() / "local.glb";
|
||||
auto t = std::chrono::system_clock::now();
|
||||
auto local_path = application::get_cache_path() / fmt::format("local-{:%F-%T}.glb", t);
|
||||
auto local_screenshot_path = application::get_cache_path() / fmt::format("local-{:%F-%T}.png", t);
|
||||
|
||||
utils::write_whole_file(local_path, (std::span<const std::byte>)environment.file);
|
||||
|
||||
// TODO remove only local.glb from cache
|
||||
clear_gltf_cache();
|
||||
environment_model model{
|
||||
.name = _S("Locally loaded environment"),
|
||||
.author = "",
|
||||
.description = "",
|
||||
.screenshot_url = "",
|
||||
.gltf_url = fmt::format("local-{:%F-%T}", t), // Used as key
|
||||
.size = environment.file.size(),
|
||||
.local_screenshot_path = local_screenshot_path,
|
||||
.local_gltf_path = local_path,
|
||||
};
|
||||
|
||||
return std::make_pair(
|
||||
local_path,
|
||||
load_gltf(local_path, [&](float progress) {
|
||||
token.set_progress(progress);
|
||||
}));
|
||||
int n = 2;
|
||||
while (std::ranges::find(local_environments, model.name, &environment_model::name) != local_environments.end())
|
||||
{
|
||||
model.name = fmt::format(_F("Locally loaded environment ({})"), n++);
|
||||
}
|
||||
|
||||
local_environments.push_back(model);
|
||||
std::ranges::sort(local_environments, std::less{});
|
||||
save_environment_json();
|
||||
|
||||
std::shared_ptr<entt::registry> env = load_gltf(local_path, [&](float progress) { token.set_progress(progress); });
|
||||
|
||||
// Create a screenshot of the loaded environment
|
||||
scene_renderer::frame_info frame{
|
||||
.projection = projection_matrix(
|
||||
XrFovf{
|
||||
.angleLeft = -0.7,
|
||||
.angleRight = 0.7,
|
||||
.angleUp = 0.7,
|
||||
.angleDown = -0.7,
|
||||
},
|
||||
constants::lobby::near_plane),
|
||||
.view = view_matrix(XrPosef{
|
||||
.orientation = {0, 0, 0, 1},
|
||||
.position = {0, 1.6, 0},
|
||||
})};
|
||||
|
||||
image_allocation output{
|
||||
device,
|
||||
vk::ImageCreateInfo{
|
||||
.imageType = vk::ImageType::e2D,
|
||||
.format = vk::Format::eR8G8B8A8Srgb,
|
||||
.extent = {512, 512, 1},
|
||||
.mipLevels = 1,
|
||||
.arrayLayers = 1,
|
||||
.usage = vk::ImageUsageFlagBits::eColorAttachment | vk::ImageUsageFlagBits::eTransferSrc,
|
||||
},
|
||||
VmaAllocationCreateInfo{
|
||||
.usage = VmaMemoryUsage::VMA_MEMORY_USAGE_AUTO,
|
||||
},
|
||||
"Screenshot image",
|
||||
};
|
||||
|
||||
scene_renderer local_renderer{device, physical_device, queue, queue_family_index};
|
||||
local_renderer.start_frame();
|
||||
local_renderer.render(
|
||||
*env,
|
||||
{
|
||||
constants::lobby::sky_color.r,
|
||||
constants::lobby::sky_color.g,
|
||||
constants::lobby::sky_color.b,
|
||||
constants::lobby::sky_color.a,
|
||||
},
|
||||
layer_lobby,
|
||||
vk::Extent2D{
|
||||
output.info().extent.width,
|
||||
output.info().extent.height,
|
||||
|
||||
}, // Output size
|
||||
output.info().format, // Output format
|
||||
vk::Format::eD32Sfloat, // Depth format
|
||||
output, // Output image
|
||||
vk::Image{}, // Depth image
|
||||
vk::Image{}, // Foveation image
|
||||
{&frame, 1}, // View info
|
||||
false);
|
||||
local_renderer.end_frame();
|
||||
local_renderer.wait_idle(); // TODO get a semaphore from end_frame instead
|
||||
|
||||
write_image(device, queue, queue_family_index, local_screenshot_path, output);
|
||||
|
||||
return std::make_pair(local_path, env);
|
||||
},
|
||||
lobby_file_picker_future.get());
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Cannot load local environment: {}", e.what());
|
||||
load_environment_status = fmt::format(_F("Cannot load local environment: {}"), e.what());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -229,8 +325,8 @@ void scenes::lobby::download_environment_list()
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::error("Cannot load custom environments: {}", e.what());
|
||||
downloadable_environment_list_status = fmt::format("Cannot load custom environments: {}", e.what());
|
||||
spdlog::error("Cannot load environment list: {}", e.what());
|
||||
downloadable_environment_list_status = fmt::format(_F("Cannot load environment list: {}"), e.what());
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -549,7 +645,7 @@ void scenes::lobby::environment_list(std::vector<environment_model> & models, bo
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, constants::style::window_border_size);
|
||||
if (ImGui::BeginPopupModal("confirm delete model", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
|
||||
{
|
||||
ImGui::Text(_S("Really delete %s?"), environment_to_be_deleted->name.c_str());
|
||||
ImGui::Text("%s", fmt::format(_F("Really delete {}?"), environment_to_be_deleted->name).c_str());
|
||||
|
||||
const auto & style = ImGui::GetStyle();
|
||||
auto cancel_text = _("Cancel");
|
||||
|
||||
@@ -232,11 +232,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
|
||||
if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(info.available_refresh_rates, *config.preferred_refresh_rate)))
|
||||
{
|
||||
info.preferred_refresh_rate = *config.preferred_refresh_rate;
|
||||
if (info.preferred_refresh_rate == 0)
|
||||
info.available_refresh_rates = {
|
||||
std::ranges::lower_bound(info.available_refresh_rates, config.minimum_refresh_rate),
|
||||
info.available_refresh_rates.end(),
|
||||
};
|
||||
info.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -304,6 +300,10 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
|
||||
return info;
|
||||
}());
|
||||
|
||||
self->network_session->send_control(from_headset::session_state_changed{
|
||||
.state = application::get_session_state(),
|
||||
});
|
||||
|
||||
if (self->instance.has_extension(XR_KHR_VISIBILITY_MASK_EXTENSION_NAME))
|
||||
{
|
||||
for (uint8_t view = 0; view < view_count; ++view)
|
||||
@@ -488,6 +488,17 @@ void scenes::stream::on_focused()
|
||||
setup_reprojection_swapchain(
|
||||
video_stream_description->defoveated_width / view_count,
|
||||
video_stream_description->defoveated_height);
|
||||
|
||||
if (application::get_config().high_power_mode)
|
||||
{
|
||||
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
|
||||
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_GPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
|
||||
}
|
||||
else
|
||||
{
|
||||
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_LOW_EXT);
|
||||
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_GPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_LOW_EXT);
|
||||
}
|
||||
}
|
||||
|
||||
void scenes::stream::on_unfocused()
|
||||
@@ -1287,3 +1298,36 @@ void scenes::stream::on_xr_event(const xr::event & event)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
bool scenes::stream::forward_hid_input(from_headset::hid::input_t packet)
|
||||
{
|
||||
if (not hid_forwarding)
|
||||
return false;
|
||||
network_session->send_control(from_headset::hid::input{packet});
|
||||
return true;
|
||||
}
|
||||
|
||||
bool scenes::stream::on_input_key_down(uint8_t key_code)
|
||||
{
|
||||
return forward_hid_input(from_headset::hid::key_down{key_code});
|
||||
}
|
||||
bool scenes::stream::on_input_key_up(uint8_t key_code)
|
||||
{
|
||||
return forward_hid_input(from_headset::hid::key_up{key_code});
|
||||
}
|
||||
bool scenes::stream::on_input_mouse_move(float x, float y)
|
||||
{
|
||||
return forward_hid_input(from_headset::hid::mouse_move{x, y});
|
||||
}
|
||||
bool scenes::stream::on_input_button_down(uint8_t button)
|
||||
{
|
||||
return forward_hid_input(from_headset::hid::button_down{button});
|
||||
}
|
||||
bool scenes::stream::on_input_button_up(uint8_t button)
|
||||
{
|
||||
return forward_hid_input(from_headset::hid::button_up{button});
|
||||
}
|
||||
bool scenes::stream::on_input_scroll(float h, float v)
|
||||
{
|
||||
return forward_hid_input(from_headset::hid::mouse_scroll{h, v});
|
||||
}
|
||||
|
||||
+13
-3
@@ -81,6 +81,7 @@ private:
|
||||
std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand
|
||||
std::atomic<bool> interaction_profile_changed = false;
|
||||
std::atomic<bool> recenter_requested = false;
|
||||
std::atomic<bool> hid_forwarding = false;
|
||||
std::atomic<XrDuration> display_time_phase = 0;
|
||||
std::atomic<XrDuration> display_time_period = 0;
|
||||
XrTime last_display_time = 0;
|
||||
@@ -140,7 +141,7 @@ private:
|
||||
|
||||
std::atomic<gui_status> gui_status = gui_status::hidden;
|
||||
enum gui_status last_gui_status = gui_status::hidden;
|
||||
enum gui_status next_gui_status = gui_status::stats;
|
||||
enum gui_status next_gui_status = gui_status::applications;
|
||||
XrTime gui_status_last_change;
|
||||
float dimming = 0;
|
||||
|
||||
@@ -173,6 +174,8 @@ private:
|
||||
|
||||
stream(std::string server_name, scene & parent_scene);
|
||||
|
||||
bool forward_hid_input(from_headset::hid::input_t);
|
||||
|
||||
public:
|
||||
~stream();
|
||||
|
||||
@@ -187,6 +190,13 @@ public:
|
||||
void on_unfocused() override;
|
||||
void on_xr_event(const xr::event &) override;
|
||||
|
||||
bool on_input_key_down(uint8_t key_code) override;
|
||||
bool on_input_key_up(uint8_t key_code) override;
|
||||
bool on_input_mouse_move(float x, float y) override;
|
||||
bool on_input_button_down(uint8_t button) override;
|
||||
bool on_input_button_up(uint8_t button) override;
|
||||
bool on_input_scroll(float h, float v) override;
|
||||
|
||||
void operator()(to_headset::crypto_handshake &&) {};
|
||||
void operator()(to_headset::pin_check_2 &&) {};
|
||||
void operator()(to_headset::pin_check_4 &&) {};
|
||||
@@ -262,7 +272,7 @@ private:
|
||||
struct subplot
|
||||
{
|
||||
std::string title;
|
||||
float scenes::stream::global_metric::*data;
|
||||
float scenes::stream::global_metric::* data;
|
||||
};
|
||||
std::vector<subplot> subplots;
|
||||
const char * unit;
|
||||
@@ -301,7 +311,7 @@ private:
|
||||
void accumulate_metrics(XrTime predicted_display_time, const std::vector<std::shared_ptr<wivrn::shard_accumulator::blit_handle>> & blit_handles, const gpu_timestamps & timestamps);
|
||||
void gui_performance_metrics();
|
||||
void gui_compact_view();
|
||||
void gui_settings();
|
||||
void gui_settings(float predicted_display_period);
|
||||
void gui_foveation_settings(float predicted_display_period);
|
||||
void gui_applications();
|
||||
void draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period);
|
||||
|
||||
+104
-23
@@ -26,6 +26,7 @@
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "implot.h"
|
||||
#include "utils/contains.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "utils/ranges.h"
|
||||
#include <IconsFontAwesome6.h>
|
||||
@@ -223,7 +224,7 @@ void scenes::stream::gui_performance_metrics()
|
||||
for (const auto & [subtitle, data]: subplots)
|
||||
{
|
||||
getter_data gdata{
|
||||
.data = (uintptr_t) & (global_metrics.data()->*data),
|
||||
.data = (uintptr_t)&(global_metrics.data()->*data),
|
||||
.stride = sizeof(global_metric),
|
||||
.multiplier = multiplier,
|
||||
};
|
||||
@@ -260,57 +261,57 @@ void scenes::stream::gui_performance_metrics()
|
||||
ImPlot::SetupAxesLimits(0, metrics.size() - 1, min_v * 1e3f, axis_scale[n] * 1e3f, ImGuiCond_Always);
|
||||
|
||||
getter_data getter_encode_begin{
|
||||
.data = (uintptr_t) & (metrics.data()->encode_begin),
|
||||
.data = (uintptr_t)&(metrics.data()->encode_begin),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_encode_end{
|
||||
.data = (uintptr_t) & (metrics.data()->encode_end),
|
||||
.data = (uintptr_t)&(metrics.data()->encode_end),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_send_begin{
|
||||
.data = (uintptr_t) & (metrics.data()->send_begin),
|
||||
.data = (uintptr_t)&(metrics.data()->send_begin),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_send_end{
|
||||
.data = (uintptr_t) & (metrics.data()->send_end),
|
||||
.data = (uintptr_t)&(metrics.data()->send_end),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_received_first_packet{
|
||||
.data = (uintptr_t) & (metrics.data()->received_first_packet),
|
||||
.data = (uintptr_t)&(metrics.data()->received_first_packet),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_received_last_packet{
|
||||
.data = (uintptr_t) & (metrics.data()->received_last_packet),
|
||||
.data = (uintptr_t)&(metrics.data()->received_last_packet),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_sent_to_decoder{
|
||||
.data = (uintptr_t) & (metrics.data()->sent_to_decoder),
|
||||
.data = (uintptr_t)&(metrics.data()->sent_to_decoder),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_received_from_decoder{
|
||||
.data = (uintptr_t) & (metrics.data()->received_from_decoder),
|
||||
.data = (uintptr_t)&(metrics.data()->received_from_decoder),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_blitted{
|
||||
.data = (uintptr_t) & (metrics.data()->blitted),
|
||||
.data = (uintptr_t)&(metrics.data()->blitted),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_displayed{
|
||||
.data = (uintptr_t) & (metrics.data()->displayed),
|
||||
.data = (uintptr_t)&(metrics.data()->displayed),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
getter_data getter_predicted{
|
||||
.data = (uintptr_t) & (metrics.data()->predicted_display),
|
||||
.data = (uintptr_t)&(metrics.data()->predicted_display),
|
||||
.stride = sizeof(decoder_metric),
|
||||
.multiplier = 1e3f};
|
||||
|
||||
@@ -382,13 +383,81 @@ void scenes::stream::gui_compact_view()
|
||||
}
|
||||
}
|
||||
|
||||
static void send_settings_changed_packet(xr::session & session, wivrn_session * network, const configuration & config, float predicted_display_period)
|
||||
{
|
||||
const auto & refresh_rates = session.get_refresh_rates();
|
||||
from_headset::settings_changed packet{};
|
||||
if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(refresh_rates, *config.preferred_refresh_rate)))
|
||||
{
|
||||
packet.preferred_refresh_rate = *config.preferred_refresh_rate;
|
||||
packet.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
packet.preferred_refresh_rate = predicted_display_period;
|
||||
}
|
||||
network->send_control(std::move(packet));
|
||||
}
|
||||
|
||||
std::string openxr_post_processing_flag_name(XrCompositionLayerSettingsFlagsFB flag); // TODO declaration in a .h file
|
||||
void scenes::stream::gui_settings()
|
||||
void scenes::stream::gui_settings(float predicted_display_period)
|
||||
{
|
||||
auto & config = application::get_config();
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(20, 20));
|
||||
|
||||
if (instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
|
||||
{
|
||||
const auto & refresh_rates = session.get_refresh_rates();
|
||||
if (not refresh_rates.empty())
|
||||
{
|
||||
float active_rate = config.preferred_refresh_rate.value_or(refresh_rates.back());
|
||||
if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic")))
|
||||
{
|
||||
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), config.preferred_refresh_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
session.set_refresh_rate(0);
|
||||
config.preferred_refresh_rate = 0;
|
||||
send_settings_changed_packet(session, network_session.get(), config, predicted_display_period);
|
||||
config.save();
|
||||
}
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens."));
|
||||
for (float rate: refresh_rates)
|
||||
{
|
||||
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.preferred_refresh_rate, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
session.set_refresh_rate(rate);
|
||||
config.preferred_refresh_rate = rate;
|
||||
send_settings_changed_packet(session, network_session.get(), config, predicted_display_period);
|
||||
config.save();
|
||||
}
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
if (config.preferred_refresh_rate == 0 and refresh_rates.size() > 2)
|
||||
{
|
||||
float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front());
|
||||
if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str()))
|
||||
{
|
||||
for (float rate: refresh_rates | std::views::take(refresh_rates.size() - 1))
|
||||
{
|
||||
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.minimum_refresh_rate, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
config.minimum_refresh_rate = rate;
|
||||
send_settings_changed_packet(session, network_session.get(), config, predicted_display_period);
|
||||
config.save();
|
||||
}
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (application::get_openxr_post_processing_supported())
|
||||
{
|
||||
ImGui::Text("%s", _S("OpenXR post-processing"));
|
||||
@@ -622,12 +691,6 @@ void scenes::stream::gui_applications()
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_S("Request to quit, may be ignored by the application"));
|
||||
}
|
||||
|
||||
auto btn = _("Start");
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() - ImGui::CalcTextSize(btn.c_str()) - ImVec2(50, 50));
|
||||
if (ImGui::Button(btn.c_str()))
|
||||
gui_status = gui_status::application_launcher;
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleVar(3);
|
||||
}
|
||||
|
||||
@@ -838,7 +901,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
case gui_status::settings:
|
||||
ImGui::SetCursorPos({tab_width + 20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
|
||||
gui_settings();
|
||||
gui_settings(predicted_display_period * 1.e-9f);
|
||||
ImGui::EndChild();
|
||||
break;
|
||||
|
||||
@@ -868,13 +931,24 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
ImGui::BeginChild("Tabs", {tab_width, ImGui::GetContentRegionMax().y - ImGui::GetWindowContentRegionMin().y});
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10, 10));
|
||||
RadioButtonWithoutCheckBox(ICON_FA_COMPUTER " " + _("Stats"), gui_status, gui_status::stats, {tab_width, 0});
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_LIST " " + _("Applications"), gui_status, gui_status::applications, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), gui_status, gui_status::application_launcher, {tab_width, 0}))
|
||||
{
|
||||
network_session->send_control(from_headset::get_application_list{
|
||||
.language = application::get_messages_info().language,
|
||||
.country = application::get_messages_info().country,
|
||||
.variant = application::get_messages_info().variant,
|
||||
});
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_GEARS " " + _("Settings"), gui_status, gui_status::settings, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_LIST " " + _("Applications"), gui_status, gui_status::applications, {tab_width, 0});
|
||||
RadioButtonWithoutCheckBox(ICON_FA_COMPUTER " " + _("Stats"), gui_status, gui_status::stats, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
int n_items_at_end = 4;
|
||||
@@ -956,7 +1030,14 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
hide_right_controller = true;
|
||||
}
|
||||
|
||||
input->apply(world, world_space, predicted_display_time, hide_left_controller, hide_right_controller, ray_limits);
|
||||
input->apply(world,
|
||||
world_space,
|
||||
predicted_display_time,
|
||||
hide_left_controller,
|
||||
hide_left_controller,
|
||||
hide_right_controller,
|
||||
hide_right_controller,
|
||||
ray_limits);
|
||||
|
||||
// Add the layer with the controllers
|
||||
if (composition_layer_depth_test_supported)
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
#include "utils/named_thread.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <uni_algo/case.h>
|
||||
|
||||
@@ -78,6 +77,9 @@ void scenes::stream::operator()(to_headset::video_stream_description && desc)
|
||||
void scenes::stream::operator()(to_headset::refresh_rate_change && rate)
|
||||
{
|
||||
session.set_refresh_rate(rate.fps);
|
||||
std::shared_lock lock(decoder_mutex);
|
||||
if (video_stream_description)
|
||||
video_stream_description->fps = rate.fps;
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::timesync_query && query)
|
||||
|
||||
@@ -304,7 +304,7 @@ void scenes::stream::tracking()
|
||||
device_id::RIGHT_GRIP,
|
||||
device_id::RIGHT_PALM,
|
||||
};
|
||||
if (instance.has_extension("XR_EXT_hand_interaction"))
|
||||
if (instance.has_extension(XR_EXT_HAND_INTERACTION_EXTENSION_NAME))
|
||||
{
|
||||
spdlog::info("Adding hand_interaction poses to device list");
|
||||
ids.insert(ids.end(), {device_id::LEFT_PINCH_POSE, device_id::LEFT_POKE, device_id::RIGHT_PINCH_POSE, device_id::RIGHT_POKE});
|
||||
@@ -556,7 +556,7 @@ void scenes::stream::tracking()
|
||||
e.code().value() != XR_ERROR_TIME_INVALID)
|
||||
throw;
|
||||
}
|
||||
}
|
||||
} // end prediction loop
|
||||
|
||||
XrDuration busy_time = t.count();
|
||||
// Target: polling between 1 and 5ms, with 20% busy time
|
||||
@@ -658,6 +658,9 @@ void scenes::stream::operator()(to_headset::tracking_control && packet)
|
||||
if (audio_handle)
|
||||
audio_handle->set_mic_state(packet.enabled[m]);
|
||||
|
||||
auto n = size_t(wivrn::to_headset::tracking_control::id::hid_input);
|
||||
hid_forwarding = packet.enabled[n];
|
||||
|
||||
*locked = packet;
|
||||
locked->min_offset = std::min(locked->min_offset, locked->max_offset);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,16 @@ layout(set = 0, binding = 4) uniform sampler2D metallic_roughness_texture;
|
||||
layout(set = 0, binding = 5) uniform sampler2D occlusion_texture;
|
||||
layout(set = 0, binding = 6) uniform sampler2D emissive_texture;
|
||||
layout(set = 0, binding = 7) uniform sampler2D normal_map_texture;
|
||||
layout(set = 0, binding = 8) uniform material_ubo
|
||||
|
||||
struct texture_info
|
||||
{
|
||||
int texcoord;
|
||||
float rotation;
|
||||
vec2 offset;
|
||||
vec2 scale;
|
||||
};
|
||||
|
||||
layout(std140, set = 0, binding = 8) uniform material_ubo
|
||||
{
|
||||
vec4 base_color_factor;
|
||||
vec4 base_emissive_factor;
|
||||
@@ -43,11 +52,11 @@ layout(set = 0, binding = 8) uniform material_ubo
|
||||
float normal_scale;
|
||||
float alpha_cutoff;
|
||||
|
||||
int base_color_texcoord;
|
||||
int metallic_roughness_texcoord;
|
||||
int occlusion_texcoord;
|
||||
int emissive_texcoord;
|
||||
int normal_texcoord;
|
||||
texture_info base_color;
|
||||
texture_info metallic_roughness;
|
||||
texture_info occlusion;
|
||||
texture_info emissive;
|
||||
texture_info normal;
|
||||
} material;
|
||||
|
||||
const float dither_pattern[4][4] = {
|
||||
@@ -91,6 +100,26 @@ vec4 dither(ivec2 frag_coord, vec4 colour)
|
||||
return colour + one_over_d_linear_to_srgb(colour) * vec4(dither_thd, dither_thd, dither_thd, 0) / 255.0f;
|
||||
}
|
||||
|
||||
vec2 compute_texcoord(texture_info info, vec2 in_texcoord)
|
||||
{
|
||||
mat3 translation = mat3(
|
||||
1, 0, 0,
|
||||
0, 1, 0,
|
||||
info.offset.x, info.offset.y, 1);
|
||||
mat3 rotation = mat3(
|
||||
cos(info.rotation), sin(info.rotation), 0,
|
||||
-sin(info.rotation), cos(info.rotation), 0,
|
||||
0, 0, 1);
|
||||
mat3 scale = mat3(
|
||||
info.scale.x, 0, 0,
|
||||
0, info.scale.y, 0,
|
||||
0, 0, 1);
|
||||
|
||||
mat3 matrix = translation * rotation * scale;
|
||||
|
||||
return (matrix * vec3(in_texcoord, 1)).xy;
|
||||
}
|
||||
|
||||
#ifdef FRAG_SHADER
|
||||
#define VS_TO_FS in
|
||||
#else
|
||||
@@ -102,4 +131,8 @@ layout(location = 0) VS_TO_FS vec3 normal;
|
||||
layout(location = 1) VS_TO_FS vec4 tangent;
|
||||
layout(location = 2) VS_TO_FS vec4 frag_pos;
|
||||
layout(location = 3) VS_TO_FS vec4 light_pos;
|
||||
layout(location = 4) VS_TO_FS vec2 texcoord[nb_texcoords];
|
||||
layout(location = 4) VS_TO_FS vec2 texcoord_base_color;
|
||||
layout(location = 5) VS_TO_FS vec2 texcoord_metallic_roughness;
|
||||
layout(location = 6) VS_TO_FS vec2 texcoord_occlusion;
|
||||
layout(location = 7) VS_TO_FS vec2 texcoord_emissive;
|
||||
layout(location = 8) VS_TO_FS vec2 texcoord_normal;
|
||||
|
||||
@@ -30,14 +30,14 @@ layout(early_fragment_tests) in;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 albedo = material.base_color_factor * texture(base_color_texture, texcoord[0]);
|
||||
vec3 emissive_color = (material.base_emissive_factor * texture(emissive_texture, texcoord[0])).rgb;
|
||||
vec4 albedo = material.base_color_factor * texture(base_color_texture, texcoord_base_color);
|
||||
vec3 emissive_color = (material.base_emissive_factor * texture(emissive_texture, texcoord_emissive)).rgb;
|
||||
|
||||
vec3 normal_unit;
|
||||
|
||||
if (use_normal_maps)
|
||||
{
|
||||
vec3 sampled_normal = normalize(vec3(material.normal_scale, material.normal_scale, 1) * (texture(normal_map_texture, texcoord[0]).xyz * 2 - 1));
|
||||
vec3 sampled_normal = normalize(vec3(material.normal_scale, material.normal_scale, 1) * (texture(normal_map_texture, texcoord_normal).xyz * 2 - 1));
|
||||
|
||||
// glTF spec §3.7.2.1
|
||||
vec3 bitangent = cross(normal, tangent.xyz) * tangent.w;
|
||||
@@ -54,8 +54,8 @@ void main()
|
||||
|
||||
if (use_pbr)
|
||||
{
|
||||
float ao = 1 + material.occlusion_strength * (texture(occlusion_texture, texcoord[0]).r - 1);
|
||||
vec4 mr = texture(metallic_roughness_texture, texcoord[0]);
|
||||
float ao = 1 + material.occlusion_strength * (texture(occlusion_texture, texcoord_occlusion).r - 1);
|
||||
vec4 mr = texture(metallic_roughness_texture, texcoord_metallic_roughness);
|
||||
|
||||
vec3 half_vec = normalize(light_dir + view_dir);
|
||||
|
||||
|
||||
@@ -34,14 +34,16 @@ layout(location = 5) in vec4 in_color;
|
||||
out gl_PerVertex
|
||||
{
|
||||
vec4 gl_Position;
|
||||
float gl_ClipDistance[nb_clipping];
|
||||
float gl_ClipDistance[nb_clipping];
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
// TODO: use base_color_texcoord et al instead of always using texcoord 0
|
||||
for (int i = 0; i < nb_texcoords; i++)
|
||||
texcoord[i] = in_texcoord[i];
|
||||
texcoord_base_color = compute_texcoord(material.base_color, in_texcoord[material.base_color.texcoord]);
|
||||
texcoord_metallic_roughness = compute_texcoord(material.metallic_roughness, in_texcoord[material.metallic_roughness.texcoord]);
|
||||
texcoord_occlusion = compute_texcoord(material.occlusion, in_texcoord[material.occlusion.texcoord]);
|
||||
texcoord_emissive = compute_texcoord(material.emissive, in_texcoord[material.emissive.texcoord]);
|
||||
texcoord_normal = compute_texcoord(material.normal, in_texcoord[material.normal.texcoord]);
|
||||
|
||||
// TODO on CPU?
|
||||
mat3 mv = inverse(transpose(mat3(mesh.modelview[gl_ViewIndex])));
|
||||
@@ -57,8 +59,8 @@ void main()
|
||||
frag_pos = mesh.modelview[gl_ViewIndex] * vec4(in_position, 1.0);
|
||||
light_pos = scene.view[gl_ViewIndex] * scene.light_position;
|
||||
|
||||
for(int i = 0; i < nb_clipping; i++)
|
||||
for (int i = 0; i < nb_clipping; i++)
|
||||
{
|
||||
gl_ClipDistance[i] = dot(mesh.clipping_plane[i], mesh.model * vec4(in_position, 1.0));
|
||||
gl_ClipDistance[i] = dot(mesh.clipping_plane[i], mesh.model * vec4(in_position, 1.0));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,14 +30,14 @@ layout(location = 0) out vec4 out_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 albedo = material.base_color_factor * texture(base_color_texture, texcoord[0]);
|
||||
vec3 emissive_color = (material.base_emissive_factor * texture(emissive_texture, texcoord[0])).rgb;
|
||||
vec4 albedo = material.base_color_factor * texture(base_color_texture, texcoord_base_color);
|
||||
vec3 emissive_color = (material.base_emissive_factor * texture(emissive_texture, texcoord_emissive)).rgb;
|
||||
|
||||
vec3 normal_unit;
|
||||
|
||||
if (use_normal_maps)
|
||||
{
|
||||
vec3 sampled_normal = normalize(vec3(material.normal_scale, material.normal_scale, 1) * (texture(normal_map_texture, texcoord[0]).xyz * 2 - 1));
|
||||
vec3 sampled_normal = normalize(vec3(material.normal_scale, material.normal_scale, 1) * (texture(normal_map_texture, texcoord_normal).xyz * 2 - 1));
|
||||
|
||||
// glTF spec §3.7.2.1
|
||||
vec3 bitangent = cross(normal, tangent.xyz) * tangent.w;
|
||||
@@ -54,8 +54,8 @@ void main()
|
||||
|
||||
if (use_pbr)
|
||||
{
|
||||
float ao = 1 + material.occlusion_strength * (texture(occlusion_texture, texcoord[0]).r - 1);
|
||||
vec4 mr = texture(metallic_roughness_texture, texcoord[0]);
|
||||
float ao = 1 + material.occlusion_strength * (texture(occlusion_texture, texcoord_occlusion).r - 1);
|
||||
vec4 mr = texture(metallic_roughness_texture, texcoord_metallic_roughness);
|
||||
|
||||
vec3 half_vec = normalize(light_dir + view_dir);
|
||||
|
||||
@@ -65,8 +65,8 @@ void main()
|
||||
vec3 light_colour = scene.light_color.rgb;
|
||||
float attenuation = 1;
|
||||
vec3 radiance =
|
||||
per_light_radiance(albedo.rgb, metallic, roughness, light_colour, light_dir, normal_unit, view_dir, half_vec, attenuation) +
|
||||
vec3(scene.ambient_color) * albedo.rgb * ao;
|
||||
per_light_radiance(albedo.rgb, metallic, roughness, light_colour, light_dir, normal_unit, view_dir, half_vec, attenuation) +
|
||||
vec3(scene.ambient_color) * albedo.rgb * ao;
|
||||
|
||||
vec3 tmp = radiance + emissive_color;
|
||||
|
||||
|
||||
@@ -36,14 +36,16 @@ layout(location = 7) in vec4 in_weights;
|
||||
out gl_PerVertex
|
||||
{
|
||||
vec4 gl_Position;
|
||||
float gl_ClipDistance[nb_clipping];
|
||||
float gl_ClipDistance[nb_clipping];
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
// TODO: use base_color_texcoord et al instead of always using texcoord 0
|
||||
for (int i = 0; i < nb_texcoords; i++)
|
||||
texcoord[i] = in_texcoord[i];
|
||||
texcoord_base_color = compute_texcoord(material.base_color, in_texcoord[material.base_color.texcoord]);
|
||||
texcoord_metallic_roughness = compute_texcoord(material.metallic_roughness, in_texcoord[material.metallic_roughness.texcoord]);
|
||||
texcoord_occlusion = compute_texcoord(material.occlusion, in_texcoord[material.occlusion.texcoord]);
|
||||
texcoord_emissive = compute_texcoord(material.emissive, in_texcoord[material.emissive.texcoord]);
|
||||
texcoord_normal = compute_texcoord(material.normal, in_texcoord[material.normal.texcoord]);
|
||||
|
||||
mat4 skinMatrix =
|
||||
in_weights.x * joints.joint_matrices[int(in_joints.x)] +
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2024 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -16,6 +16,17 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "rectangle_partitionner.h"
|
||||
#pragma once
|
||||
template <typename T>
|
||||
struct class_from_member
|
||||
{
|
||||
};
|
||||
|
||||
#include "moc_rectangle_partitionner.cpp"
|
||||
template <typename T, typename U>
|
||||
struct class_from_member<T U::*>
|
||||
{
|
||||
using type = U;
|
||||
};
|
||||
|
||||
template <typename pointer>
|
||||
using class_from_member_t = class_from_member<pointer>::type;
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glm/gtc/quaternion.hpp>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
inline glm::quat glm_cast(const XrQuaternionf & q)
|
||||
{
|
||||
return glm::quat::wxyz(q.w, q.x, q.y, q.z);
|
||||
}
|
||||
|
||||
inline XrQuaternionf glm_cast(const glm::quat & q)
|
||||
{
|
||||
return XrQuaternionf(q.w, q.x, q.y, q.z);
|
||||
}
|
||||
|
||||
inline glm::vec3 glm_cast(const XrVector3f & v)
|
||||
{
|
||||
return glm::vec3(v.x, v.y, v.z);
|
||||
}
|
||||
|
||||
inline XrVector3f glm_cast(const glm::vec3 & v)
|
||||
{
|
||||
return XrVector3f(v.x, v.y, v.z);
|
||||
}
|
||||
+14
-9
@@ -46,6 +46,9 @@ private:
|
||||
control_socket_t control;
|
||||
stream_socket_t stream;
|
||||
|
||||
std::atomic<uint64_t> bytes_sent_ = 0;
|
||||
std::atomic<uint64_t> bytes_received_ = 0;
|
||||
|
||||
template <typename T>
|
||||
void handshake(T address, bool tcp_only, crypto::key & headset_keypair, std::function<std::string(int fd)> pin_enter);
|
||||
|
||||
@@ -60,16 +63,16 @@ public:
|
||||
template <typename T>
|
||||
void send_control(T && packet)
|
||||
{
|
||||
control.send(std::forward<T>(packet));
|
||||
bytes_sent_ += control.send(std::forward<T>(packet));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void send_stream(T && packet)
|
||||
{
|
||||
if (stream)
|
||||
stream.send(std::forward<T>(packet));
|
||||
bytes_sent_ += stream.send(std::forward<T>(packet));
|
||||
else
|
||||
control.send(std::forward<T>(packet));
|
||||
bytes_sent_ += control.send(std::forward<T>(packet));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
@@ -81,9 +84,9 @@ public:
|
||||
fds[1].events = POLLIN;
|
||||
fds[1].fd = control.get_fd();
|
||||
|
||||
while (auto packet = stream.receive_pending())
|
||||
while (auto packet = stream.receive_pending(&bytes_received_))
|
||||
std::visit(std::forward<T>(visitor), std::move(*packet));
|
||||
while (auto packet = control.receive_pending())
|
||||
while (auto packet = control.receive_pending(&bytes_received_))
|
||||
std::visit(std::forward<T>(visitor), std::move(*packet));
|
||||
|
||||
int r = ::poll(fds, std::size(fds), timeout.count());
|
||||
@@ -98,14 +101,16 @@ public:
|
||||
|
||||
if (fds[0].revents & POLLIN)
|
||||
{
|
||||
auto packet = stream.receive();
|
||||
auto packet = stream.receive(&bytes_received_);
|
||||
if (packet)
|
||||
{
|
||||
std::visit(std::forward<T>(visitor), std::move(*packet));
|
||||
}
|
||||
}
|
||||
|
||||
if (fds[1].revents & POLLIN)
|
||||
{
|
||||
auto packet = control.receive();
|
||||
auto packet = control.receive(&bytes_received_);
|
||||
if (packet)
|
||||
std::visit(std::forward<T>(visitor), std::move(*packet));
|
||||
}
|
||||
@@ -115,11 +120,11 @@ public:
|
||||
|
||||
uint64_t bytes_received() const
|
||||
{
|
||||
return control.bytes_received() + stream.bytes_received();
|
||||
return bytes_received_;
|
||||
}
|
||||
|
||||
uint64_t bytes_sent() const
|
||||
{
|
||||
return control.bytes_sent() + stream.bytes_sent();
|
||||
return bytes_sent_;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#endif
|
||||
|
||||
#include "utils/handle.h"
|
||||
#include "utils/strings.h"
|
||||
#include "xr/check.h"
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
@@ -49,7 +50,7 @@ class instance : public utils::handle<XrInstance, xrDestroyInstance>
|
||||
{
|
||||
std::string runtime_version;
|
||||
std::string runtime_name;
|
||||
std::unordered_map<std::string, uint32_t> loaded_extensions;
|
||||
std::unordered_map<std::string, uint32_t, utils::string_hash, std::equal_to<>> loaded_extensions;
|
||||
XrVersion api_version;
|
||||
|
||||
public:
|
||||
@@ -99,12 +100,12 @@ public:
|
||||
|
||||
static std::vector<XrExtensionProperties> extensions(const char * layer_name = nullptr);
|
||||
|
||||
bool has_extension(const std::string & extension_name)
|
||||
bool has_extension(const char * extension_name)
|
||||
{
|
||||
return loaded_extensions.find(extension_name) != loaded_extensions.end();
|
||||
}
|
||||
|
||||
uint32_t extension_version(const std::string & extension_name)
|
||||
uint32_t extension_version(const char * extension_name)
|
||||
{
|
||||
auto it = loaded_extensions.find(extension_name);
|
||||
if (it != loaded_extensions.end())
|
||||
|
||||
+16
-8
@@ -50,6 +50,16 @@ xr::session::session(xr::instance & inst, xr::system & sys, vk::raii::Instance &
|
||||
};
|
||||
|
||||
CHECK_XR(xrCreateSession(inst, &session_info, &id));
|
||||
|
||||
if (inst.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
|
||||
{
|
||||
xrGetDisplayRefreshRateFB = inst.get_proc<PFN_xrGetDisplayRefreshRateFB>("xrGetDisplayRefreshRateFB");
|
||||
xrEnumerateDisplayRefreshRatesFB = inst.get_proc<PFN_xrEnumerateDisplayRefreshRatesFB>("xrEnumerateDisplayRefreshRatesFB");
|
||||
xrRequestDisplayRefreshRateFB = inst.get_proc<PFN_xrRequestDisplayRefreshRateFB>("xrRequestDisplayRefreshRateFB");
|
||||
}
|
||||
|
||||
if (inst.has_extension(XR_EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME))
|
||||
xrPerfSettingsSetPerformanceLevelEXT = inst.get_proc<PFN_xrPerfSettingsSetPerformanceLevelEXT>("xrPerfSettingsSetPerformanceLevelEXT");
|
||||
}
|
||||
|
||||
std::vector<XrReferenceSpaceType> xr::session::get_reference_spaces() const
|
||||
@@ -259,7 +269,6 @@ std::vector<std::string> xr::session::localized_sources_for_action(XrAction acti
|
||||
float xr::session::get_current_refresh_rate()
|
||||
{
|
||||
assert(inst->has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME));
|
||||
static auto xrGetDisplayRefreshRateFB = inst->get_proc<PFN_xrGetDisplayRefreshRateFB>("xrGetDisplayRefreshRateFB");
|
||||
|
||||
float refresh_rate = 0;
|
||||
if (xrGetDisplayRefreshRateFB)
|
||||
@@ -270,9 +279,6 @@ float xr::session::get_current_refresh_rate()
|
||||
|
||||
std::vector<float> xr::session::get_refresh_rates()
|
||||
{
|
||||
assert(inst->has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME));
|
||||
static auto xrEnumerateDisplayRefreshRatesFB = inst->get_proc<PFN_xrEnumerateDisplayRefreshRatesFB>("xrEnumerateDisplayRefreshRatesFB");
|
||||
|
||||
if (xrEnumerateDisplayRefreshRatesFB)
|
||||
{
|
||||
try
|
||||
@@ -290,10 +296,6 @@ std::vector<float> xr::session::get_refresh_rates()
|
||||
|
||||
void xr::session::set_refresh_rate(float refresh_rate)
|
||||
{
|
||||
if (not inst->has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
|
||||
return;
|
||||
static auto xrRequestDisplayRefreshRateFB = inst->get_proc<PFN_xrRequestDisplayRefreshRateFB>("xrRequestDisplayRefreshRateFB");
|
||||
|
||||
if (xrRequestDisplayRefreshRateFB)
|
||||
{
|
||||
if (auto res = xrRequestDisplayRefreshRateFB(id, refresh_rate); res != XR_SUCCESS)
|
||||
@@ -368,3 +370,9 @@ void xr::session::disable_passthrough()
|
||||
return;
|
||||
passthrough.emplace<std::monostate>();
|
||||
}
|
||||
|
||||
void xr::session::set_performance_level(XrPerfSettingsDomainEXT domain, XrPerfSettingsLevelEXT level)
|
||||
{
|
||||
if (xrPerfSettingsSetPerformanceLevelEXT)
|
||||
xrPerfSettingsSetPerformanceLevelEXT(*this, domain, level);
|
||||
}
|
||||
|
||||
@@ -42,6 +42,12 @@ class session : public utils::handle<XrSession, xrDestroySession>
|
||||
xr::passthrough passthrough;
|
||||
thread_safe<vk::raii::Queue> * queue = nullptr;
|
||||
|
||||
PFN_xrGetDisplayRefreshRateFB xrGetDisplayRefreshRateFB = nullptr;
|
||||
PFN_xrEnumerateDisplayRefreshRatesFB xrEnumerateDisplayRefreshRatesFB = nullptr;
|
||||
PFN_xrRequestDisplayRefreshRateFB xrRequestDisplayRefreshRateFB = nullptr;
|
||||
|
||||
PFN_xrPerfSettingsSetPerformanceLevelEXT xrPerfSettingsSetPerformanceLevelEXT = nullptr;
|
||||
|
||||
public:
|
||||
session() = default;
|
||||
session(instance &, system &, vk::raii::Instance &, vk::raii::PhysicalDevice &, vk::raii::Device &, thread_safe<vk::raii::Queue> & queue, int queue_family_index);
|
||||
@@ -91,5 +97,7 @@ public:
|
||||
{
|
||||
return passthrough;
|
||||
}
|
||||
|
||||
void set_performance_level(XrPerfSettingsDomainEXT, XrPerfSettingsLevelEXT);
|
||||
};
|
||||
} // namespace xr
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
if (USE_SYSTEM_FREETYPE)
|
||||
if (WIVRN_USE_SYSTEM_FREETYPE)
|
||||
find_package(Freetype REQUIRED)
|
||||
find_package(harfbuzz REQUIRED)
|
||||
|
||||
@@ -7,84 +7,87 @@ if (USE_SYSTEM_FREETYPE)
|
||||
target_link_libraries(FreetypeHarfbuzz INTERFACE Freetype::Freetype harfbuzz::harfbuzz)
|
||||
|
||||
else()
|
||||
set(HARFBUZZ_VERSION 10.0.1)
|
||||
set(FREETYPE_VERSION 2.13.3)
|
||||
set(HARFBUZZ_VERSION 12.2.0)
|
||||
set(HARFBUZZ_SHA256 ecb603aa426a8b24665718667bda64a84c1504db7454ee4cadbd362eea64e545)
|
||||
set(FREETYPE_VERSION 2.14.1)
|
||||
set(FREETYPE_SHA256 32427e8c471ac095853212a37aef816c60b42052d4d9e48230bab3bdf2936ccc)
|
||||
|
||||
if(NOT EXISTS ${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}.tar.xz)
|
||||
if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}.tar.xz)
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/freetype-${FREETYPE_VERSION}.tar.xz)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/freetype-${FREETYPE_VERSION}.tar.xz ${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}.tar.xz SYMBOLIC)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/freetype-${FREETYPE_VERSION}.tar.xz ${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}.tar.xz SYMBOLIC)
|
||||
else()
|
||||
file(DOWNLOAD https://downloads.sourceforge.net/project/freetype/freetype2/${FREETYPE_VERSION}/freetype-${FREETYPE_VERSION}.tar.xz
|
||||
"${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}.tar.xz"
|
||||
EXPECTED_HASH SHA256=0550350666d427c74daeb85d5ac7bb353acba5f76956395995311a9c6f063289)
|
||||
"${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}.tar.xz"
|
||||
EXPECTED_HASH SHA256=${FREETYPE_SHA256})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT EXISTS ${CMAKE_BINARY_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz)
|
||||
if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz)
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz ${CMAKE_BINARY_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz SYMBOLIC)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz ${FETCHCONTENT_BASE_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz SYMBOLIC)
|
||||
else()
|
||||
file(DOWNLOAD https://github.com/harfbuzz/harfbuzz/releases/download/${HARFBUZZ_VERSION}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz ${CMAKE_BINARY_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz
|
||||
EXPECTED_HASH SHA256=b2cb13bd351904cb9038f907dc0dee0ae07127061242fe3556b2795c4e9748fc)
|
||||
file(DOWNLOAD https://github.com/harfbuzz/harfbuzz/releases/download/${HARFBUZZ_VERSION}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz
|
||||
"${FETCHCONTENT_BASE_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz"
|
||||
EXPECTED_HASH SHA256=${HARFBUZZ_SHA256})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(ARCHIVE_EXTRACT INPUT ${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}.tar.xz DESTINATION ${CMAKE_BINARY_DIR})
|
||||
file(ARCHIVE_EXTRACT INPUT ${CMAKE_BINARY_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz DESTINATION ${CMAKE_BINARY_DIR})
|
||||
file(ARCHIVE_EXTRACT INPUT ${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}.tar.xz DESTINATION ${FETCHCONTENT_BASE_DIR})
|
||||
file(ARCHIVE_EXTRACT INPUT ${FETCHCONTENT_BASE_DIR}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz DESTINATION ${FETCHCONTENT_BASE_DIR})
|
||||
|
||||
add_library(FreetypeHarfbuzz STATIC
|
||||
${CMAKE_BINARY_DIR}/harfbuzz-${HARFBUZZ_VERSION}/src/harfbuzz.cc
|
||||
${CMAKE_BINARY_DIR}/harfbuzz-${HARFBUZZ_VERSION}/src/hb-ft.cc
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/autofit/autofit.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftbase.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftbbox.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftbdf.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftbitmap.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftcid.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftfstype.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftgasp.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftglyph.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftgxval.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftinit.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftmm.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftotval.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftpatent.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftpfr.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftstroke.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftsynth.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/fttype1.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftwinfnt.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/bdf/bdf.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/bzip2/ftbzip2.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/cache/ftcache.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/cff/cff.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/cid/type1cid.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/gzip/ftgzip.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/lzw/ftlzw.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/pcf/pcf.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/pfr/pfr.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/psaux/psaux.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/pshinter/pshinter.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/psnames/psnames.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/raster/raster.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/sdf/sdf.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/sfnt/sfnt.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/smooth/smooth.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/svg/svg.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/truetype/truetype.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/type1/type1.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/type42/type42.c
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/winfonts/winfnt.c
|
||||
${FETCHCONTENT_BASE_DIR}/harfbuzz-${HARFBUZZ_VERSION}/src/harfbuzz.cc
|
||||
${FETCHCONTENT_BASE_DIR}/harfbuzz-${HARFBUZZ_VERSION}/src/hb-ft.cc
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/autofit/autofit.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftbase.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftbbox.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftbdf.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftbitmap.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftcid.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftfstype.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftgasp.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftglyph.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftgxval.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftinit.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftmm.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftotval.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftpatent.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftpfr.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftstroke.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftsynth.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/fttype1.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftwinfnt.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/bdf/bdf.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/bzip2/ftbzip2.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/cache/ftcache.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/cff/cff.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/cid/type1cid.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/gzip/ftgzip.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/lzw/ftlzw.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/pcf/pcf.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/pfr/pfr.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/psaux/psaux.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/pshinter/pshinter.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/psnames/psnames.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/raster/raster.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/sdf/sdf.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/sfnt/sfnt.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/smooth/smooth.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/svg/svg.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/truetype/truetype.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/type1/type1.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/type42/type42.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/winfonts/winfnt.c
|
||||
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftdebug.c
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/src/base/ftdebug.c
|
||||
)
|
||||
|
||||
target_sources(FreetypeHarfbuzz PRIVATE
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/builds/unix/ftsystem.c)
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/builds/unix/ftsystem.c)
|
||||
|
||||
target_include_directories(FreetypeHarfbuzz PUBLIC
|
||||
${CMAKE_BINARY_DIR}/freetype-${FREETYPE_VERSION}/include
|
||||
${CMAKE_BINARY_DIR}/harfbuzz-${HARFBUZZ_VERSION}/src)
|
||||
${FETCHCONTENT_BASE_DIR}/freetype-${FREETYPE_VERSION}/include
|
||||
${FETCHCONTENT_BASE_DIR}/harfbuzz-${HARFBUZZ_VERSION}/src)
|
||||
|
||||
target_compile_definitions(FreetypeHarfbuzz PRIVATE -DFT2_BUILD_LIBRARY=1 -DHAVE_FREETYPE=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1)
|
||||
set_target_properties(FreetypeHarfbuzz PROPERTIES CXX_VISIBILITY_PRESET hidden C_VISIBILITY_PRESET hidden)
|
||||
|
||||
@@ -1,50 +1,52 @@
|
||||
if (NOT TARGET OpenSSL::Crypto)
|
||||
# The NDK does not include OpenSSL, download it
|
||||
set(OPENSSL_VERSION "3.4.0")
|
||||
if(NOT EXISTS ${CMAKE_BINARY_DIR}/openssl-src)
|
||||
if(NOT EXISTS ${CMAKE_BINARY_DIR}/openssl-${OPENSSL_VERSION}.tar.gz)
|
||||
set(OPENSSL_VERSION "3.6.0")
|
||||
set(OPENSSL_SHA256 b6a5f44b7eb69e3fa35dbf15524405b44837a481d43d81daddde3ff21fcbb8e9)
|
||||
if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/openssl-src)
|
||||
if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/openssl-${OPENSSL_VERSION}.tar.gz)
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/openssl-${OPENSSL_VERSION}.tar.gz)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/openssl-${OPENSSL_VERSION}.tar.gz ${CMAKE_BINARY_DIR}/openssl-${OPENSSL_VERSION}.tar.gz SYMBOLIC)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/openssl-${OPENSSL_VERSION}.tar.gz ${FETCHCONTENT_BASE_DIR}/openssl-${OPENSSL_VERSION}.tar.gz SYMBOLIC)
|
||||
else()
|
||||
file(DOWNLOAD https://github.com/openssl/openssl/archive/refs/tags/openssl-${OPENSSL_VERSION}.tar.gz ${CMAKE_BINARY_DIR}/openssl-${OPENSSL_VERSION}.tar.gz
|
||||
EXPECTED_HASH SHA256=1ca043a26fbea74cdf7faf623a6f14032a01117d141c4a5208ccac819ccc896b)
|
||||
file(DOWNLOAD https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VERSION}/openssl-${OPENSSL_VERSION}.tar.gz
|
||||
${FETCHCONTENT_BASE_DIR}/openssl-${OPENSSL_VERSION}.tar.gz
|
||||
EXPECTED_HASH SHA256=${OPENSSL_SHA256})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(ARCHIVE_EXTRACT INPUT ${CMAKE_BINARY_DIR}/openssl-${OPENSSL_VERSION}.tar.gz DESTINATION ${CMAKE_BINARY_DIR})
|
||||
file(RENAME ${CMAKE_BINARY_DIR}/openssl-openssl-${OPENSSL_VERSION} ${CMAKE_BINARY_DIR}/openssl-src)
|
||||
file(ARCHIVE_EXTRACT INPUT ${FETCHCONTENT_BASE_DIR}/openssl-${OPENSSL_VERSION}.tar.gz DESTINATION ${FETCHCONTENT_BASE_DIR})
|
||||
file(RENAME ${FETCHCONTENT_BASE_DIR}/openssl-${OPENSSL_VERSION} ${FETCHCONTENT_BASE_DIR}/openssl-src)
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} -E env ANDROID_NDK_ROOT=${CMAKE_ANDROID_NDK} PATH=${CMAKE_ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin:$ENV{PATH} ./Configure
|
||||
android-arm64
|
||||
--prefix=${CMAKE_BINARY_DIR}/openssl
|
||||
--openssldir=${CMAKE_BINARY_DIR}/openssl
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/openssl-src
|
||||
--prefix=${FETCHCONTENT_BASE_DIR}/openssl
|
||||
--openssldir=${FETCHCONTENT_BASE_DIR}/openssl
|
||||
WORKING_DIRECTORY ${FETCHCONTENT_BASE_DIR}/openssl-src
|
||||
OUTPUT_FILE ${CMAKE_BINARY_DIR}/openssl-config-out
|
||||
ERROR_FILE ${CMAKE_BINARY_DIR}/openssl-config-err
|
||||
)
|
||||
|
||||
if (NOT EXISTS ${CMAKE_BINARY_DIR}/openssl/lib/libcrypto.so)
|
||||
if (NOT EXISTS ${FETCHCONTENT_BASE_DIR}/openssl/lib/libcrypto.so)
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} -E env ANDROID_NDK_ROOT=${CMAKE_ANDROID_NDK} PATH=${CMAKE_ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin:$ENV{PATH} make -j${CMAKE_BUILD_PARALLEL_LEVEL}
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/openssl-src
|
||||
WORKING_DIRECTORY ${FETCHCONTENT_BASE_DIR}/openssl-src
|
||||
OUTPUT_FILE ${CMAKE_BINARY_DIR}/openssl-make-out
|
||||
ERROR_FILE ${CMAKE_BINARY_DIR}/openssl-make-err
|
||||
)
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} -E env ANDROID_NDK_ROOT=${CMAKE_ANDROID_NDK} PATH=${CMAKE_ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin:$ENV{PATH} make install_sw
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/openssl-src
|
||||
WORKING_DIRECTORY ${FETCHCONTENT_BASE_DIR}/openssl-src
|
||||
OUTPUT_FILE ${CMAKE_BINARY_DIR}/openssl-install-out
|
||||
ERROR_FILE ${CMAKE_BINARY_DIR}/openssl-install-err
|
||||
)
|
||||
endif()
|
||||
|
||||
add_library(OpenSSL::Crypto STATIC IMPORTED)
|
||||
set_property(TARGET OpenSSL::Crypto PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/openssl/lib/libcrypto.so)
|
||||
target_include_directories(OpenSSL::Crypto INTERFACE ${CMAKE_BINARY_DIR}/openssl/include)
|
||||
set_property(TARGET OpenSSL::Crypto PROPERTY IMPORTED_LOCATION ${FETCHCONTENT_BASE_DIR}/openssl/lib/libcrypto.so)
|
||||
target_include_directories(OpenSSL::Crypto INTERFACE ${FETCHCONTENT_BASE_DIR}/openssl/include)
|
||||
|
||||
add_library(OpenSSL::SSL STATIC IMPORTED)
|
||||
set_property(TARGET OpenSSL::SSL PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/openssl/lib/libssl.so)
|
||||
target_include_directories(OpenSSL::SSL INTERFACE ${CMAKE_BINARY_DIR}/openssl/include)
|
||||
set_property(TARGET OpenSSL::SSL PROPERTY IMPORTED_LOCATION ${FETCHCONTENT_BASE_DIR}/openssl/lib/libssl.so)
|
||||
target_include_directories(OpenSSL::SSL INTERFACE ${FETCHCONTENT_BASE_DIR}/openssl/include)
|
||||
endif()
|
||||
|
||||
@@ -67,16 +67,16 @@ if(ANDROID)
|
||||
# Minimum version is 1.3.256
|
||||
set(VULKAN_VERSION "1.3.268.0")
|
||||
|
||||
if(NOT EXISTS ${CMAKE_BINARY_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz)
|
||||
if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz)
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz ${CMAKE_BINARY_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz SYMBOLIC)
|
||||
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz ${FETCHCONTENT_BASE_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz SYMBOLIC)
|
||||
else()
|
||||
file(DOWNLOAD https://github.com/KhronosGroup/Vulkan-Headers/archive/vulkan-sdk-${VULKAN_VERSION}.tar.gz ${CMAKE_BINARY_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz
|
||||
file(DOWNLOAD https://github.com/KhronosGroup/Vulkan-Headers/archive/vulkan-sdk-${VULKAN_VERSION}.tar.gz ${FETCHCONTENT_BASE_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz
|
||||
EXPECTED_HASH SHA256=94993cbe2b1a604c0d5d9ea37a767e1aba4d771d2bfd4ddceefd66243095164f)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(ARCHIVE_EXTRACT INPUT ${CMAKE_BINARY_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz DESTINATION ${CMAKE_BINARY_DIR})
|
||||
file(ARCHIVE_EXTRACT INPUT ${FETCHCONTENT_BASE_DIR}/vulkan-sdk-${VULKAN_VERSION}.tar.gz DESTINATION ${CMAKE_BINARY_DIR})
|
||||
|
||||
target_include_directories(wivrn-common SYSTEM PUBLIC ${CMAKE_BINARY_DIR}/Vulkan-Headers-vulkan-sdk-${VULKAN_VERSION}/include)
|
||||
target_compile_definitions(wivrn-common PUBLIC VMA_VULKAN_VERSION=1001000)
|
||||
|
||||
@@ -55,6 +55,10 @@ std::pair<std::string, std::optional<std::filesystem::path>> find_steam()
|
||||
if (std::filesystem::exists(h / ".var/app/com.valvesoftware.Steam/.steam/steam"))
|
||||
return {"flatpak run com.valvesoftware.Steam", h / ".var/app/com.valvesoftware.Steam/.steam/steam"};
|
||||
|
||||
// Debian Steam (accessed from flatpak)
|
||||
if (std::filesystem::exists(h / ".steam/debian-installation"))
|
||||
return {"steam", h / ".steam/debian-installation"};
|
||||
|
||||
// system Steam
|
||||
if (std::filesystem::exists(xdg_data_home() / "Steam"))
|
||||
return {"steam", xdg_data_home() / "Steam"};
|
||||
|
||||
@@ -19,21 +19,21 @@
|
||||
|
||||
#include "strings.h"
|
||||
|
||||
std::vector<std::string> utils::split(const std::string & s, const std::string & sep)
|
||||
std::vector<std::string> utils::split(std::string_view s, std::string_view sep)
|
||||
{
|
||||
std::string::size_type i = 0;
|
||||
std::vector<std::string> v;
|
||||
|
||||
while (true)
|
||||
{
|
||||
std::string::size_type j = s.find_first_of(sep, i);
|
||||
if (j == std::string::npos)
|
||||
auto j = s.find_first_of(sep, i);
|
||||
if (j == std::string_view::npos)
|
||||
{
|
||||
v.push_back(s.substr(i));
|
||||
v.emplace_back(s.substr(i));
|
||||
return v;
|
||||
}
|
||||
|
||||
v.push_back(s.substr(i, j - i));
|
||||
v.emplace_back(s.substr(i, j - i));
|
||||
i = j + 1;
|
||||
}
|
||||
}
|
||||
|
||||
+21
-1
@@ -20,9 +20,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
namespace utils
|
||||
{
|
||||
std::vector<std::string> split(const std::string & s, const std::string & sep = "\n");
|
||||
std::vector<std::string> split(std::string_view s, std::string_view = "\n");
|
||||
|
||||
// https://www.cppstories.com/2021/heterogeneous-access-cpp20/
|
||||
struct string_hash
|
||||
{
|
||||
using is_transparent = void;
|
||||
[[nodiscard]] size_t operator()(const char * txt) const
|
||||
{
|
||||
return std::hash<std::string_view>{}(txt);
|
||||
}
|
||||
[[nodiscard]] size_t operator()(std::string_view txt) const
|
||||
{
|
||||
return std::hash<std::string_view>{}(txt);
|
||||
}
|
||||
[[nodiscard]] size_t operator()(const std::string & txt) const
|
||||
{
|
||||
return std::hash<std::string>{}(txt);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace utils
|
||||
|
||||
@@ -93,11 +93,21 @@ public:
|
||||
return *resource;
|
||||
}
|
||||
|
||||
operator const T() const
|
||||
{
|
||||
return *resource;
|
||||
}
|
||||
|
||||
operator CType()
|
||||
{
|
||||
return CType(*resource);
|
||||
}
|
||||
|
||||
operator const CType() const
|
||||
{
|
||||
return CType(*resource);
|
||||
}
|
||||
|
||||
operator bool() const
|
||||
{
|
||||
return *resource;
|
||||
|
||||
@@ -221,6 +221,8 @@ struct headset_info_packet
|
||||
uint32_t recommended_eye_height;
|
||||
std::vector<float> available_refresh_rates;
|
||||
float preferred_refresh_rate;
|
||||
// for automatic
|
||||
float minimum_refresh_rate;
|
||||
struct audio_description
|
||||
{
|
||||
uint8_t num_channels;
|
||||
@@ -245,6 +247,13 @@ struct headset_info_packet
|
||||
std::string variant;
|
||||
};
|
||||
|
||||
struct settings_changed
|
||||
{
|
||||
float preferred_refresh_rate;
|
||||
// for automatic
|
||||
float minimum_refresh_rate;
|
||||
};
|
||||
|
||||
struct handshake
|
||||
{
|
||||
// Sending this on TCP means connection will be TCP only
|
||||
@@ -391,6 +400,47 @@ struct inputs
|
||||
std::vector<input_value> values;
|
||||
};
|
||||
|
||||
struct hid
|
||||
{
|
||||
struct button_down
|
||||
{
|
||||
uint8_t button;
|
||||
};
|
||||
|
||||
struct button_up
|
||||
{
|
||||
uint8_t button;
|
||||
};
|
||||
|
||||
struct mouse_move
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
};
|
||||
|
||||
struct mouse_scroll
|
||||
{
|
||||
float h;
|
||||
float v;
|
||||
};
|
||||
|
||||
struct key_down
|
||||
{
|
||||
uint8_t key;
|
||||
};
|
||||
|
||||
struct key_up
|
||||
{
|
||||
uint8_t key;
|
||||
};
|
||||
|
||||
using input_t = std::variant<button_down, button_up, mouse_move, mouse_scroll, key_down, key_up>;
|
||||
struct input
|
||||
{
|
||||
input_t input_data;
|
||||
};
|
||||
};
|
||||
|
||||
struct timesync_response
|
||||
{
|
||||
XrTime query;
|
||||
@@ -472,11 +522,13 @@ struct stop_application
|
||||
uint32_t id;
|
||||
};
|
||||
|
||||
// when changing this, also make sure there are handlers in wivrn_session, etc. or compilation will fail
|
||||
using packets = std::variant<
|
||||
crypto_handshake,
|
||||
pin_check_1,
|
||||
pin_check_3,
|
||||
headset_info_packet,
|
||||
settings_changed,
|
||||
feedback,
|
||||
audio_data,
|
||||
handshake,
|
||||
@@ -497,6 +549,7 @@ using packets = std::variant<
|
||||
start_app,
|
||||
get_running_applications,
|
||||
set_active_application,
|
||||
hid::input,
|
||||
stop_application>;
|
||||
} // namespace from_headset
|
||||
|
||||
@@ -671,6 +724,7 @@ struct tracking_control
|
||||
right_hand,
|
||||
face,
|
||||
generic_tracker,
|
||||
hid_input,
|
||||
battery,
|
||||
microphone,
|
||||
|
||||
|
||||
@@ -288,6 +288,11 @@ public:
|
||||
return size;
|
||||
}
|
||||
|
||||
size_t wire_size()
|
||||
{
|
||||
return initial_buffer.size_bytes();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void deserialize(T & v)
|
||||
{
|
||||
|
||||
+18
-22
@@ -266,8 +266,6 @@ std::pair<wivrn::deserialization_packet, sockaddr_in6> wivrn::UDP::receive_from_
|
||||
if (received < 0)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
|
||||
bytes_received_ += received;
|
||||
|
||||
std::span message{buffer.get(), (size_t)received};
|
||||
|
||||
if (encrypted)
|
||||
@@ -346,8 +344,6 @@ wivrn::deserialization_packet wivrn::UDP::receive_raw()
|
||||
|
||||
for (int i = received - 1; i >= 0; --i)
|
||||
{
|
||||
bytes_received_ += mmsgs[i].msg_len;
|
||||
|
||||
std::span<uint8_t> message{(uint8_t *)iovecs[i].iov_base, mmsgs[i].msg_len};
|
||||
assert(message.data() != nullptr);
|
||||
|
||||
@@ -376,7 +372,7 @@ wivrn::deserialization_packet wivrn::UDP::receive_raw()
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
void wivrn::UDP::send_raw(serialization_packet && packet)
|
||||
size_t wivrn::UDP::send_raw(serialization_packet && packet)
|
||||
{
|
||||
thread_local std::vector<iovec> iovecs;
|
||||
iovecs.clear();
|
||||
@@ -399,23 +395,21 @@ void wivrn::UDP::send_raw(serialization_packet && packet)
|
||||
}
|
||||
|
||||
for (const auto & span: data)
|
||||
{
|
||||
iovecs.emplace_back(span.data(), span.size());
|
||||
bytes_sent_ += span.size();
|
||||
}
|
||||
|
||||
if (::writev(fd, iovecs.data(), iovecs.size()) < 0)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
if (ssize_t sent = ::writev(fd, iovecs.data(), iovecs.size()); sent >= 0)
|
||||
return sent;
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
}
|
||||
|
||||
void wivrn::UDP::send_many_raw(std::span<serialization_packet> packets)
|
||||
size_t wivrn::UDP::send_many_raw(std::span<serialization_packet> packets)
|
||||
{
|
||||
thread_local std::vector<iovec> iovecs;
|
||||
thread_local std::vector<mmsghdr> mmsgs;
|
||||
thread_local std::vector<uint64_t> iv_counters;
|
||||
|
||||
if (packets.empty())
|
||||
return;
|
||||
return 0;
|
||||
|
||||
iovecs.clear();
|
||||
mmsgs.clear();
|
||||
@@ -423,6 +417,7 @@ void wivrn::UDP::send_many_raw(std::span<serialization_packet> packets)
|
||||
|
||||
iv_counters.reserve(packets.size());
|
||||
|
||||
size_t sent = 0;
|
||||
for (serialization_packet & packet: packets)
|
||||
{
|
||||
std::vector<std::span<uint8_t>> & data = packet;
|
||||
@@ -444,7 +439,7 @@ void wivrn::UDP::send_many_raw(std::span<serialization_packet> packets)
|
||||
for (const auto & span: data)
|
||||
{
|
||||
iovecs.emplace_back(span.data(), span.size_bytes());
|
||||
bytes_sent_ += span.size();
|
||||
sent += span.size();
|
||||
}
|
||||
|
||||
if (encrypted)
|
||||
@@ -462,6 +457,7 @@ void wivrn::UDP::send_many_raw(std::span<serialization_packet> packets)
|
||||
// sendmmsg may not send all messages, just consider them as lost for UDP
|
||||
if (sendmmsg(fd, mmsgs.data(), mmsgs.size(), 0) < 0)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
return sent;
|
||||
}
|
||||
|
||||
wivrn::deserialization_packet wivrn::TCP::receive_raw()
|
||||
@@ -503,8 +499,6 @@ wivrn::deserialization_packet wivrn::TCP::receive_raw()
|
||||
if (received_size == 0)
|
||||
throw socket_shutdown{};
|
||||
|
||||
bytes_received_ += received_size;
|
||||
|
||||
if (decrypter)
|
||||
{
|
||||
std::span<uint8_t> received_data{&*data.end(), (size_t)received_size};
|
||||
@@ -547,8 +541,9 @@ wivrn::deserialization_packet wivrn::TCP::receive_pending()
|
||||
return deserialization_packet{buffer, span};
|
||||
}
|
||||
|
||||
void wivrn::TCP::send_raw(serialization_packet && packet)
|
||||
size_t wivrn::TCP::send_raw(serialization_packet && packet)
|
||||
{
|
||||
size_t total_sent = 0;
|
||||
thread_local std::vector<iovec> iovecs;
|
||||
iovecs.clear();
|
||||
|
||||
@@ -589,7 +584,7 @@ void wivrn::TCP::send_raw(serialization_packet && packet)
|
||||
if (sent < 0)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
|
||||
bytes_sent_ += sent;
|
||||
total_sent += sent;
|
||||
|
||||
// iov fully consumed
|
||||
while (hdr.msg_iovlen > 0 and sent >= hdr.msg_iov[0].iov_len)
|
||||
@@ -599,20 +594,20 @@ void wivrn::TCP::send_raw(serialization_packet && packet)
|
||||
--hdr.msg_iovlen;
|
||||
}
|
||||
if (hdr.msg_iovlen == 0)
|
||||
return;
|
||||
return total_sent;
|
||||
hdr.msg_iov[0].iov_base = (void *)((uintptr_t)hdr.msg_iov[0].iov_base + sent);
|
||||
hdr.msg_iov[0].iov_len -= sent;
|
||||
}
|
||||
}
|
||||
|
||||
void wivrn::TCP::send_many_raw(std::span<serialization_packet> packets)
|
||||
size_t wivrn::TCP::send_many_raw(std::span<serialization_packet> packets)
|
||||
{
|
||||
thread_local std::vector<iovec> iovecs;
|
||||
thread_local std::vector<uint32_t> sizes;
|
||||
thread_local std::vector<std::span<uint8_t>> spans;
|
||||
|
||||
if (packets.empty())
|
||||
return;
|
||||
return 0;
|
||||
|
||||
iovecs.clear();
|
||||
sizes.clear();
|
||||
@@ -652,6 +647,7 @@ void wivrn::TCP::send_many_raw(std::span<serialization_packet> packets)
|
||||
encrypter.encrypt_in_place(spans);
|
||||
}
|
||||
|
||||
size_t total_sent = 0;
|
||||
while (true)
|
||||
{
|
||||
ssize_t sent = ::sendmsg(fd, &hdr, MSG_NOSIGNAL);
|
||||
@@ -662,7 +658,7 @@ void wivrn::TCP::send_many_raw(std::span<serialization_packet> packets)
|
||||
if (sent < 0)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
|
||||
bytes_sent_ += sent;
|
||||
total_sent += sent;
|
||||
|
||||
// iov fully consumed
|
||||
while (hdr.msg_iovlen > 0 and sent >= hdr.msg_iov[0].iov_len)
|
||||
@@ -672,7 +668,7 @@ void wivrn::TCP::send_many_raw(std::span<serialization_packet> packets)
|
||||
--hdr.msg_iovlen;
|
||||
}
|
||||
if (hdr.msg_iovlen == 0)
|
||||
return;
|
||||
return total_sent;
|
||||
hdr.msg_iov[0].iov_base = (void *)((uintptr_t)hdr.msg_iov[0].iov_base + sent);
|
||||
hdr.msg_iov[0].iov_len -= sent;
|
||||
}
|
||||
|
||||
+16
-19
@@ -68,8 +68,6 @@ protected:
|
||||
int fd = -1;
|
||||
|
||||
fd_base(const fd_base &) = delete;
|
||||
std::atomic<uint64_t> bytes_sent_ = 0;
|
||||
std::atomic<uint64_t> bytes_received_ = 0;
|
||||
|
||||
public:
|
||||
fd_base() = default;
|
||||
@@ -89,14 +87,9 @@ public:
|
||||
return fd != -1;
|
||||
}
|
||||
|
||||
uint64_t bytes_sent() const
|
||||
operator int() const
|
||||
{
|
||||
return bytes_sent_;
|
||||
}
|
||||
|
||||
uint64_t bytes_received() const
|
||||
{
|
||||
return bytes_received_;
|
||||
return fd;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -122,8 +115,8 @@ public:
|
||||
deserialization_packet receive_raw();
|
||||
deserialization_packet receive_pending();
|
||||
std::pair<wivrn::deserialization_packet, sockaddr_in6> receive_from_raw();
|
||||
void send_raw(serialization_packet && packet);
|
||||
void send_many_raw(std::span<serialization_packet> packets);
|
||||
size_t send_raw(serialization_packet && packet);
|
||||
size_t send_many_raw(std::span<serialization_packet> packets);
|
||||
|
||||
void connect(in6_addr address, int port);
|
||||
void connect(in_addr address, int port);
|
||||
@@ -157,8 +150,8 @@ public:
|
||||
|
||||
deserialization_packet receive_raw();
|
||||
deserialization_packet receive_pending();
|
||||
void send_raw(serialization_packet && packet);
|
||||
void send_many_raw(std::span<serialization_packet> packets);
|
||||
size_t send_raw(serialization_packet && packet);
|
||||
size_t send_many_raw(std::span<serialization_packet> packets);
|
||||
|
||||
void set_aes_key_and_ivs(std::span<std::uint8_t, 16> key, std::span<std::uint8_t, 16> recv_iv, std::span<std::uint8_t, 16> send_iv);
|
||||
};
|
||||
@@ -220,20 +213,24 @@ public:
|
||||
Socket(std::forward<Args>(args)...)
|
||||
{}
|
||||
|
||||
std::optional<ReceivedType> receive_pending()
|
||||
std::optional<ReceivedType> receive_pending(std::atomic<uint64_t> * size = nullptr)
|
||||
{
|
||||
deserialization_packet packet = ((Socket *)this)->receive_pending();
|
||||
if (packet.empty())
|
||||
return {};
|
||||
if (size)
|
||||
size->fetch_add(packet.wire_size());
|
||||
|
||||
return packet.deserialize<ReceivedType>();
|
||||
}
|
||||
|
||||
std::optional<ReceivedType> receive()
|
||||
std::optional<ReceivedType> receive(std::atomic<uint64_t> * size = nullptr)
|
||||
{
|
||||
deserialization_packet packet = this->receive_raw();
|
||||
if (packet.empty())
|
||||
return {};
|
||||
if (size)
|
||||
size->fetch_add(packet.wire_size());
|
||||
|
||||
return packet.deserialize<ReceivedType>();
|
||||
}
|
||||
@@ -249,16 +246,16 @@ public:
|
||||
}
|
||||
|
||||
template <details::not_lvalue_reference T>
|
||||
void send(T && data)
|
||||
size_t send(T && data)
|
||||
{
|
||||
thread_local serialization_packet p;
|
||||
serialize(p, data);
|
||||
this->send_raw(std::move(p));
|
||||
return this->send_raw(std::move(p));
|
||||
}
|
||||
|
||||
void send(std::span<serialization_packet> packets)
|
||||
size_t send(std::span<serialization_packet> packets)
|
||||
{
|
||||
this->send_many_raw(packets);
|
||||
return this->send_many_raw(packets);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ add_executable(wivrn-dashboard
|
||||
dashboard_utils.cpp
|
||||
escape_string.cpp
|
||||
settings.cpp
|
||||
rectangle_partitionner.cpp
|
||||
steam.cpp
|
||||
adb.cpp
|
||||
apk_installer.cpp
|
||||
firewall.cpp
|
||||
@@ -28,11 +28,16 @@ target_sources(wivrn-dashboard PRIVATE ${DBUS_INTERFACE_SRC})
|
||||
|
||||
set_source_files_properties(../images/wivrn.svg PROPERTIES QT_RESOURCE_ALIAS qml/wivrn.svg)
|
||||
|
||||
set_source_files_properties(qml/DashboardSettings.qml PROPERTIES
|
||||
QT_QML_SINGLETON_TYPE TRUE
|
||||
)
|
||||
|
||||
qt_add_qml_module(wivrn-dashboard
|
||||
URI io.github.wivrn.wivrn
|
||||
QML_FILES
|
||||
qml/Main.qml
|
||||
qml/ApkInstallPage.qml
|
||||
qml/DashboardSettings.qml
|
||||
qml/SettingsPage.qml
|
||||
qml/HeadsetsPage.qml
|
||||
qml/HeadsetStatsPage.qml
|
||||
@@ -51,7 +56,6 @@ qt_add_qml_module(wivrn-dashboard
|
||||
qml/Github.svg
|
||||
)
|
||||
|
||||
|
||||
configure_file(gui_config.h.in gui_config.h)
|
||||
configure_file(io.github.wivrn.wivrn.desktop.in io.github.wivrn.wivrn.desktop)
|
||||
|
||||
@@ -75,10 +79,6 @@ target_link_libraries(wivrn-dashboard
|
||||
wivrn-external
|
||||
)
|
||||
|
||||
if (WIVRN_CHECK_CAPSYSNICE)
|
||||
target_link_libraries(wivrn-dashboard PRIVATE PkgConfig::libcap)
|
||||
endif()
|
||||
|
||||
install(TARGETS wivrn-dashboard ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
install(FILES io.github.wivrn.wivrn.metainfo.xml
|
||||
|
||||
@@ -91,7 +91,7 @@ QCoro::Task<> apk_installer::doRefreshLatestVersion()
|
||||
{
|
||||
std::string name = i["name"];
|
||||
|
||||
if (name.ends_with("-standard-release.apk"))
|
||||
if (name.ends_with("-release.apk"))
|
||||
{
|
||||
m_apkUrl = QString::fromStdString(i["browser_download_url"]);
|
||||
break;
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <QDBusMetaType>
|
||||
#include <QDBusReply>
|
||||
#include <QDebug>
|
||||
#include <QProcess>
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QProcess>
|
||||
#include <QtQml/qqmlregistration.h>
|
||||
|
||||
class firewall : public QObject
|
||||
|
||||
@@ -8,28 +8,26 @@
|
||||
<description>
|
||||
<p>WiVRn allows you to run your VR games from your PC and play them from a standalone headset.</p>
|
||||
|
||||
<p>You will need to install the WiVRn client on your headset from the Meta Store or by following the wizard in the application.</p>
|
||||
<p>Works with the WiVRn client app on standalone headsets, available as an APK and on the Meta Store.</p>
|
||||
|
||||
<p>Features:</p>
|
||||
<ul>
|
||||
<li>Supports OpenXR and OpenVR applications through xrizer or OpenComposite</li>
|
||||
<li>Controller tracking, hand tracking, eye gaze tracking, body tracking as supported by the headset</li>
|
||||
<li>Audio streaming and microphone</li>
|
||||
<li>Low latency video streaming with H264 / HEVC / AV1 compression</li>
|
||||
<li>Hardware accelerated compression with Vulkan video encode, VAAPI or NVENC</li>
|
||||
<li>Software compression with x264</li>
|
||||
</ul>
|
||||
|
||||
<p>Supported headsets:</p>
|
||||
<ul>
|
||||
<li>Meta Quest 1</li>
|
||||
<li>Meta Quest 2</li>
|
||||
<li>Meta Quest 3</li>
|
||||
<li>Meta Quest 3S</li>
|
||||
<li>Meta Quest Pro</li>
|
||||
<li>Meta Quest 1, 2, 3, 3S, pro</li>
|
||||
<li>Pico Neo 4</li>
|
||||
<li>HTC Vive Focus 3</li>
|
||||
<li>HTC Vive XR Elite</li>
|
||||
</ul>
|
||||
<p>Features:</p>
|
||||
<ul>
|
||||
<li>Supports OpenXR and OpenVR applications</li>
|
||||
<li>Controller tracking, hand tracking, eye gaze tracking (if supported by the headset)</li>
|
||||
<li>Audio streaming and microphone</li>
|
||||
<li>Video streaming with H264 / HEVC / AV1 compression</li>
|
||||
<li>Hardware accelerated compression with VAAPI or NVENC</li>
|
||||
<li>Software compression with x264</li>
|
||||
<li>HTC Vive Focus 3, XR Elite</li>
|
||||
</ul>
|
||||
|
||||
<p>For desktop streaming, check out wlx-overlay-s.</p>
|
||||
</description>
|
||||
<developer id="io.github.wivrn.wivrn">
|
||||
<name>Guillaume Meunier, Patrick Nicolas et al</name>
|
||||
@@ -69,6 +67,27 @@
|
||||
<content_rating type="oars-1.1" />
|
||||
|
||||
<releases>
|
||||
<release version="25.11.1" date="2025-11-10">
|
||||
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.11.1</url>
|
||||
<description>
|
||||
<ul>
|
||||
<li>Fixed a dashboard crash when configuration is empty</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="25.11" date="2025-11-08">
|
||||
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.11</url>
|
||||
<description>
|
||||
<ul>
|
||||
<li>10-bit encoding support for AV1 and h.265</li>
|
||||
<li>H.265 encoding on Vulkan video backend</li>
|
||||
<li>Firewall configuration for ufw and firewalld</li>
|
||||
<li>Customizable lobby environment</li>
|
||||
<li>Running application management during stream</li>
|
||||
<li>Default to lower power states on headset</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="25.9" date="2025-09-17">
|
||||
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.9</url>
|
||||
<description>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
pragma Singleton
|
||||
|
||||
import QtCore
|
||||
|
||||
Settings {
|
||||
property bool first_run: true
|
||||
property bool show_system_checks: true
|
||||
property string last_run_version: ""
|
||||
|
||||
property bool adb_custom: false
|
||||
property string adb_location: ""
|
||||
}
|
||||
|
||||
+61
-63
@@ -11,10 +11,6 @@ Kirigami.ApplicationWindow {
|
||||
id: root
|
||||
title: i18n("WiVRn dashboard")
|
||||
|
||||
Settings {
|
||||
id: config
|
||||
}
|
||||
|
||||
ConnectUsbDialog {
|
||||
id: select_usb_device
|
||||
}
|
||||
@@ -42,15 +38,6 @@ Kirigami.ApplicationWindow {
|
||||
|
||||
onClosing: Qt.quit()
|
||||
|
||||
Core.Settings {
|
||||
id: settings
|
||||
property alias first_run: root.first_run
|
||||
property alias last_run_version: root.last_run_version
|
||||
property bool show_system_checks: true
|
||||
}
|
||||
property bool first_run: true
|
||||
property string last_run_version
|
||||
|
||||
width: 900
|
||||
height: 800
|
||||
|
||||
@@ -60,11 +47,6 @@ Kirigami.ApplicationWindow {
|
||||
|
||||
Connections {
|
||||
target: WivrnServer
|
||||
function onCapSysNiceChanged(value) {
|
||||
if (WivrnServer.serverStatus != WivrnServer.Stopped)
|
||||
restart_capsysnice.visible = true;
|
||||
}
|
||||
|
||||
function onServerStatusChanged(value) {
|
||||
var started = value == WivrnServer.Started;
|
||||
|
||||
@@ -76,10 +58,10 @@ Kirigami.ApplicationWindow {
|
||||
if (value == WivrnServer.FailedToStart)
|
||||
message_failed_to_start.visible = true;
|
||||
|
||||
if (root.first_run && started) {
|
||||
if (DashboardSettings.first_run && started) {
|
||||
console.log("First run");
|
||||
root.pageStack.push(Qt.createComponent("WizardPage.qml").createObject());
|
||||
root.first_run = false;
|
||||
DashboardSettings.first_run = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,10 +70,6 @@ Kirigami.ApplicationWindow {
|
||||
switch_pairing.checked = WivrnServer.pairingEnabled;
|
||||
}
|
||||
|
||||
function onJsonConfigurationChanged() {
|
||||
config.load(WivrnServer);
|
||||
}
|
||||
|
||||
function onServerError(info) {
|
||||
console.log(info.where);
|
||||
console.log(info.message);
|
||||
@@ -109,8 +87,8 @@ Kirigami.ApplicationWindow {
|
||||
if (WivrnServer.serverStatus == WivrnServer.Stopped)
|
||||
WivrnServer.start_server();
|
||||
|
||||
if (root.last_run_version != ApkInstaller.currentVersion) {
|
||||
root.last_run_version = ApkInstaller.currentVersion;
|
||||
if (DashboardSettings.last_run_version != ApkInstaller.currentVersion) {
|
||||
DashboardSettings.last_run_version = ApkInstaller.currentVersion;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +108,7 @@ Kirigami.ApplicationWindow {
|
||||
text: i18n("Avahi daemon is not installed")
|
||||
type: Kirigami.MessageType.Warning
|
||||
showCloseButton: true
|
||||
visible: settings.show_system_checks && !Avahi.installed
|
||||
visible: DashboardSettings.show_system_checks && !Avahi.installed
|
||||
}
|
||||
|
||||
Kirigami.InlineMessage {
|
||||
@@ -138,7 +116,7 @@ Kirigami.ApplicationWindow {
|
||||
text: i18n("Avahi daemon is not started")
|
||||
type: Kirigami.MessageType.Warning
|
||||
showCloseButton: true
|
||||
visible: settings.show_system_checks && Avahi.installed && !Avahi.running
|
||||
visible: DashboardSettings.show_system_checks && Avahi.installed && !Avahi.running
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
visible: Avahi.canStart
|
||||
@@ -148,27 +126,12 @@ Kirigami.ApplicationWindow {
|
||||
]
|
||||
}
|
||||
|
||||
Kirigami.InlineMessage {
|
||||
Layout.fillWidth: true
|
||||
text: i18n("The server does not have CAP_SYS_NICE capabilities")
|
||||
// type: Kirigami.MessageType.Warning
|
||||
type: Kirigami.MessageType.Information
|
||||
showCloseButton: true
|
||||
visible: settings.show_system_checks && !WivrnServer.capSysNice
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: i18n("Fix it")
|
||||
onTriggered: WivrnServer.grant_cap_sys_nice()
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Kirigami.InlineMessage {
|
||||
Layout.fillWidth: true
|
||||
text: i18n("Firewall may not allow port 9757")
|
||||
type: Kirigami.MessageType.Warning
|
||||
showCloseButton: true
|
||||
visible: settings.show_system_checks && Firewall.needSetup
|
||||
visible: DashboardSettings.show_system_checks && Firewall.needSetup
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: i18n("Fix it")
|
||||
@@ -177,24 +140,6 @@ Kirigami.ApplicationWindow {
|
||||
]
|
||||
}
|
||||
|
||||
Kirigami.InlineMessage {
|
||||
id: restart_capsysnice
|
||||
Layout.fillWidth: true
|
||||
text: i18n("The CAP_SYS_NICE capability will be used when the server is restarted")
|
||||
type: Kirigami.MessageType.Information
|
||||
showCloseButton: true
|
||||
visible: false
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: i18nc("restart the server", "Restart now")
|
||||
onTriggered: {
|
||||
WivrnServer.restart_server();
|
||||
restart_capsysnice.visible = false;
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Kirigami.InlineMessage {
|
||||
Layout.fillWidth: true
|
||||
text: i18n("NVIDIA GPUs require at least driver version 565.77, current version is %1", VulkanInfo.driverVersion)
|
||||
@@ -222,7 +167,60 @@ Kirigami.ApplicationWindow {
|
||||
text: i18n("No OpenVR compatibility detected, Steam games won't be able to load VR.\nInstall xrizer or OpenComposite.")
|
||||
type: Kirigami.MessageType.Warning
|
||||
showCloseButton: true
|
||||
visible: WivrnServer.openVRCompat.length == 0 && config.openvr == ""
|
||||
visible: WivrnServer.openVRCompat.length == 0 && Settings.openvr == ""
|
||||
}
|
||||
|
||||
Kirigami.InlineMessage {
|
||||
Layout.fillWidth: true
|
||||
text: i18n("Steam is installed as a snap. Snaps are not compatible with WiVRn.")
|
||||
type: Kirigami.MessageType.Warning
|
||||
showCloseButton: true
|
||||
visible: DashboardSettings.show_system_checks && Steam.snap
|
||||
}
|
||||
|
||||
Kirigami.InlineMessage {
|
||||
Layout.fillWidth: true
|
||||
text: i18n("Steam is installed as a flatpak but does not have sufficient permissions.")
|
||||
type: Kirigami.MessageType.Warning
|
||||
showCloseButton: true
|
||||
visible: DashboardSettings.show_system_checks && Steam.flatpakNeedPerm
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: i18n("Fix it")
|
||||
onTriggered: Steam.fixFlatpakPerm()
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Kirigami.InlineMessage {
|
||||
id: config_restart
|
||||
Layout.fillWidth: true
|
||||
text: i18n("Restart the server for configuration changes to take effect")
|
||||
type: Kirigami.MessageType.Information
|
||||
showCloseButton: true
|
||||
visible: false
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: i18nc("restart the server", "Restart now")
|
||||
onTriggered: {
|
||||
WivrnServer.restart_server();
|
||||
config_restart.visible = false;
|
||||
}
|
||||
}
|
||||
]
|
||||
Connections {
|
||||
target: Settings
|
||||
function onSettingsChanged() {
|
||||
if (WivrnServer.sessionRunning)
|
||||
config_restart.visible = true;
|
||||
}
|
||||
}
|
||||
Connections {
|
||||
target: WivrnServer
|
||||
function onServerStatusChanged(value) {
|
||||
config_restart.visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.InlineMessage {
|
||||
|
||||
@@ -38,10 +38,6 @@ ColumnLayout {
|
||||
id: apps
|
||||
}
|
||||
|
||||
Settings {
|
||||
id: config
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: WivrnServer
|
||||
function onJsonConfigurationChanged() {
|
||||
@@ -88,7 +84,7 @@ ColumnLayout {
|
||||
if (select_game.json_loaded || WivrnServer.serverStatus != WivrnServer.Started || WivrnServer.jsonConfiguration == "")
|
||||
return;
|
||||
|
||||
config.load(WivrnServer);
|
||||
Settings.load(WivrnServer);
|
||||
|
||||
var found = false;
|
||||
var custom_idx = -1;
|
||||
@@ -96,7 +92,7 @@ ColumnLayout {
|
||||
var app = apps.get(i);
|
||||
if (app.is_custom)
|
||||
custom_idx = i;
|
||||
else if (app.command == config.application) {
|
||||
else if (app.command == Settings.application) {
|
||||
app_combobox.currentIndex = i;
|
||||
found = true;
|
||||
break;
|
||||
@@ -104,7 +100,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
app_text.text = config.application;
|
||||
app_text.text = Settings.application;
|
||||
app_combobox.currentIndex = custom_idx;
|
||||
}
|
||||
|
||||
@@ -119,10 +115,10 @@ ColumnLayout {
|
||||
else
|
||||
new_application = apps.get(app_combobox.currentIndex).command;
|
||||
|
||||
config.load(WivrnServer);
|
||||
if (config.application != new_application) {
|
||||
config.application = new_application;
|
||||
config.save(WivrnServer);
|
||||
Settings.load(WivrnServer);
|
||||
if (Settings.application != new_application) {
|
||||
Settings.application = new_application;
|
||||
Settings.save(WivrnServer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+125
-206
@@ -15,17 +15,7 @@ Kirigami.ScrollablePage {
|
||||
|
||||
flickable.interactive: false // Make sure the Kirigami.ScrollablePage does not eat the vertical mouse dragging events
|
||||
|
||||
Settings {
|
||||
id: config
|
||||
}
|
||||
|
||||
Core.Settings {
|
||||
property alias adb_custom: settings.adb_custom
|
||||
property alias adb_location: settings.adb_location
|
||||
property alias show_system_checks: show_system_checks.checked
|
||||
}
|
||||
property bool adb_custom
|
||||
property string adb_location
|
||||
property bool allowUpdates: false // ignore onXXX events until document is loaded
|
||||
|
||||
ColumnLayout {
|
||||
id: column
|
||||
@@ -35,7 +25,7 @@ Kirigami.ScrollablePage {
|
||||
|
||||
Controls.CheckBox {
|
||||
id: manual_foveation
|
||||
checked: true
|
||||
checked: Settings.scale != -1
|
||||
Layout.row: 0
|
||||
Layout.column: 0
|
||||
text: i18nc("automatic foveation setup", "Manual foveation")
|
||||
@@ -105,155 +95,59 @@ Kirigami.ScrollablePage {
|
||||
}
|
||||
return Number.fromLocaleString(text);
|
||||
}
|
||||
|
||||
onValueModified: Settings.bitrate = value
|
||||
}
|
||||
|
||||
Controls.ComboBox {
|
||||
id: encoder_layout
|
||||
Kirigami.FormData.label: i18n("Encoder layout:")
|
||||
model: [
|
||||
{
|
||||
label: i18nc("encoder preset", "Automatic"),
|
||||
value: null
|
||||
},
|
||||
{
|
||||
label: i18nc("encoder preset", "Manual"),
|
||||
value: null
|
||||
},
|
||||
{
|
||||
label: i18nc("encoder preset", "Default preset"),
|
||||
value: [
|
||||
{
|
||||
width: 0.5,
|
||||
height: 1,
|
||||
offset_x: 0,
|
||||
offset_y: 0
|
||||
},
|
||||
{
|
||||
width: 0.5,
|
||||
height: 1,
|
||||
offset_x: 0.5,
|
||||
offset_y: 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: i18nc("encoder preset", "Low latency preset"),
|
||||
value: [
|
||||
{
|
||||
width: 0.5,
|
||||
height: 1,
|
||||
offset_x: 0.5,
|
||||
offset_y: 0,
|
||||
encoder: 'x264',
|
||||
codec: 'h264'
|
||||
},
|
||||
{
|
||||
width: 0.5,
|
||||
height: 1,
|
||||
offset_x: 0,
|
||||
offset_y: 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: i18nc("encoder preset", "Safe preset"),
|
||||
value: [
|
||||
{
|
||||
width: 1,
|
||||
height: 1,
|
||||
offset_x: 0,
|
||||
offset_y: 0
|
||||
}]
|
||||
Kirigami.InlineMessage {
|
||||
Layout.fillWidth: true
|
||||
text: i18n("The current encoder configuration is not supported")
|
||||
type: Kirigami.MessageType.Information
|
||||
visible: !Settings.simpleConfig
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: i18n("Reset")
|
||||
onTriggered: Settings.encoder = Settings.EncoderAuto
|
||||
}
|
||||
]
|
||||
textRole: "label"
|
||||
valueRole: "value"
|
||||
onCurrentValueChanged: {
|
||||
if (currentValue)
|
||||
{
|
||||
config.set_encoder_preset(currentValue);
|
||||
partitionner.currentIndex = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
visible: encoder_layout.currentIndex > 0
|
||||
text: i18n("To add a new encoder, split an existing encoder by clicking near an edge.\nDrag an edge to resize or remove encoders.")
|
||||
wrapMode: Text.WordWrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
RectanglePartitionner {
|
||||
id: partitionner
|
||||
implicitWidth: 600
|
||||
implicitHeight: 300
|
||||
visible: encoder_layout.currentIndex > 0
|
||||
settings: config
|
||||
onCodecChanged: {
|
||||
for (var i = 0; i < codec_combo.model.length; i++) {
|
||||
if (codec_combo.model[i].name == codec)
|
||||
codec_combo.currentIndex = i;
|
||||
}
|
||||
}
|
||||
onEncoderChanged: {
|
||||
for (var i = 0; i < encoder_combo.model.length; i++) {
|
||||
if (encoder_combo.model[i].name == encoder)
|
||||
encoder_combo.currentIndex = i;
|
||||
}
|
||||
}
|
||||
onEncoderLayoutChanged: encoder_layout.currentIndex = 1 // Manual layout
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
Kirigami.FormData.label: i18n("Encoder:")
|
||||
enabled: partitionner.selected
|
||||
visible: encoder_layout.currentIndex > 0
|
||||
enabled: Settings.simpleConfig
|
||||
Controls.ComboBox {
|
||||
id: encoder_combo
|
||||
model: [
|
||||
// Keep it in sync with rectangle_partitionner.h (encoder_name_from_setting)
|
||||
{
|
||||
name: "auto",
|
||||
label: i18nc("automatic encoder setup", "Auto"),
|
||||
codecs: "auto"
|
||||
encoder: Settings.EncoderAuto
|
||||
},
|
||||
{
|
||||
name: "nvenc",
|
||||
label: i18n("nvenc (NVIDIA GPUs)"),
|
||||
codecs: "auto,h264,h265,av1"
|
||||
encoder: Settings.Nvenc
|
||||
},
|
||||
{
|
||||
name: "vaapi",
|
||||
label: i18n("vaapi (AMD and Intel GPUs)"),
|
||||
codecs: "auto,h264,h265,av1"
|
||||
encoder: Settings.Vaapi
|
||||
},
|
||||
{
|
||||
label: i18n("Vulkan (Any modern GPU)"),
|
||||
encoder: Settings.Vulkan
|
||||
},
|
||||
{
|
||||
name: "x264",
|
||||
label: i18n("x264 (software encoding)"),
|
||||
codecs: "h264"
|
||||
},
|
||||
{
|
||||
name: "vulkan",
|
||||
label: i18n("Vulkan (Vulkan Video)"),
|
||||
codecs: "h264"
|
||||
encoder: Settings.X264
|
||||
}
|
||||
]
|
||||
onCurrentIndexChanged: if (settings.allowUpdates) {Settings.encoder = model[currentIndex].encoder}
|
||||
textRole: "label"
|
||||
onCurrentIndexChanged: {
|
||||
partitionner.encoder = encoder_combo.model[currentIndex].name;
|
||||
|
||||
// Check if the currently selected codec is supported by the new encoder
|
||||
var supported_codecs = model[currentIndex].codecs.split(",");
|
||||
var current_codec = codec_combo.model[codec_combo.currentIndex].name;
|
||||
|
||||
if (!supported_codecs.includes(current_codec)) {
|
||||
for (var i = 0; i < codec_combo.model.length; i++) {
|
||||
if (supported_codecs.includes(codec_combo.model[i].name)) {
|
||||
codec_combo.currentIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
Connections {
|
||||
target: Settings
|
||||
function onEncoderChanged() {
|
||||
var encoder = Settings.encoder;
|
||||
var i = encoder_combo.model.findIndex( item => item.encoder == encoder)
|
||||
if (i > -1)
|
||||
encoder_combo.currentIndex = i
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -262,44 +156,63 @@ Kirigami.ScrollablePage {
|
||||
}
|
||||
}
|
||||
|
||||
Controls.ComboBox {
|
||||
id: codec_combo
|
||||
RowLayout {
|
||||
Kirigami.FormData.label: i18n("Codec:")
|
||||
enabled: partitionner.selected
|
||||
visible: encoder_layout.currentIndex > 0
|
||||
model: [
|
||||
// Keep it in sync with rectangle_partitionner.h (codec_name_from_setting)
|
||||
{
|
||||
name: "auto",
|
||||
label: i18nc("automatic codec setup", "Auto")
|
||||
},
|
||||
{
|
||||
name: "h264",
|
||||
label: i18n("H.264")
|
||||
},
|
||||
{
|
||||
name: "h265",
|
||||
label: i18n("H.265")
|
||||
},
|
||||
{
|
||||
name: "av1",
|
||||
label: i18n("AV1")
|
||||
Controls.ComboBox {
|
||||
id: codec_combo
|
||||
enabled: Settings.simpleConfig && Settings.encoder != Settings.EncoderAuto
|
||||
model: [
|
||||
{
|
||||
label: i18nc("automatic codec setup", "Auto"),
|
||||
codec: Settings.CodecAuto
|
||||
},
|
||||
{
|
||||
label: i18n("H.264"),
|
||||
codec: Settings.H264
|
||||
},
|
||||
{
|
||||
label: i18n("H.265"),
|
||||
codec: Settings.H265
|
||||
},
|
||||
{
|
||||
label: i18n("AV1"),
|
||||
codec: Settings.Av1
|
||||
}
|
||||
]
|
||||
onCurrentIndexChanged: if (settings.allowUpdates) {Settings.codec = model[currentIndex].codec}
|
||||
textRole: "label"
|
||||
|
||||
delegate: Controls.ItemDelegate {
|
||||
required property string label
|
||||
required property var codec
|
||||
|
||||
width: codec_combo.width
|
||||
text: i18n(label)
|
||||
highlighted: ListView.isCurrentItem
|
||||
enabled: Settings.allowedCodecs.includes(codec)
|
||||
}
|
||||
]
|
||||
textRole: "label"
|
||||
onCurrentIndexChanged: partitionner.codec = model[currentIndex].name
|
||||
|
||||
delegate: Controls.ItemDelegate {
|
||||
required property string label
|
||||
required property string name
|
||||
|
||||
width: codec_combo.width
|
||||
text: i18n(label)
|
||||
highlighted: ListView.isCurrentItem
|
||||
enabled: encoder_combo.model[encoder_combo.currentIndex].codecs.split(",").includes(name)
|
||||
Connections {
|
||||
target: Settings
|
||||
function onCodecChanged() {
|
||||
var codec = Settings.codec;
|
||||
var i = codec_combo.model.findIndex( item => item.codec == codec)
|
||||
if (i > -1)
|
||||
codec_combo.currentIndex = i
|
||||
}
|
||||
}
|
||||
}
|
||||
Controls.CheckBox {
|
||||
enabled: Settings.can10bit
|
||||
text: i18n("10 bits")
|
||||
checked: Settings.tenbit
|
||||
onCheckedChanged: Settings.tenbit = checked
|
||||
}
|
||||
Kirigami.ContextualHelpButton {
|
||||
toolTipText: i18n("10-bit encoding improves image quality but is not supported by all codecs and hardware")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Kirigami.Separator {
|
||||
Kirigami.FormData.isSection: true
|
||||
}
|
||||
@@ -313,13 +226,23 @@ Kirigami.ScrollablePage {
|
||||
id: show_system_checks
|
||||
text: i18n("Check system configuration on start")
|
||||
}
|
||||
RowLayout {
|
||||
visible: Settings.hid_forwarding_supported
|
||||
Controls.CheckBox {
|
||||
id: hid_forwarding
|
||||
text: i18n("Forward keyboard & mouse from headset")
|
||||
}
|
||||
Kirigami.ContextualHelpButton {
|
||||
toolTipText: i18n("Keyboard and mouse connected to the client will act as if connected to the server. Client OS may reserve specific keys and combinations, which cannot be forwarded.")
|
||||
}
|
||||
}
|
||||
Controls.CheckBox {
|
||||
id: debug_gui
|
||||
text: i18n("Enable debug window")
|
||||
visible: config.debug_gui_supported
|
||||
visible: Settings.debug_gui_supported
|
||||
}
|
||||
RowLayout {
|
||||
visible: config.steamvr_lh_supported
|
||||
visible: Settings.steamvr_lh_supported
|
||||
Controls.CheckBox {
|
||||
id: steamvr_lh
|
||||
text: i18n("Enable SteamVR tracked devices support")
|
||||
@@ -349,7 +272,7 @@ Kirigami.ScrollablePage {
|
||||
enabled: adb_custom.checked
|
||||
Controls.TextField {
|
||||
id: adb_location
|
||||
placeholderText: settings.adb_location
|
||||
placeholderText: DashboardSettings.adb_location
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
Controls.Button {
|
||||
@@ -400,14 +323,14 @@ Kirigami.ScrollablePage {
|
||||
|
||||
function load() {
|
||||
for(let i=0 ; i < openvr_libs.count; i++) {
|
||||
if (openvr_libs.get(i).value == config.openvr) {
|
||||
if (openvr_libs.get(i).value == Settings.openvr) {
|
||||
openvr_combobox.currentIndex = i;
|
||||
return;
|
||||
}
|
||||
}
|
||||
for(let i=0 ; i < openvr_libs.count; i++) {
|
||||
if (openvr_libs.get(i).is_custom) {
|
||||
openvr_text.text = config.openvr
|
||||
openvr_text.text = Settings.openvr
|
||||
openvr_combobox.currentIndex = i;
|
||||
return;
|
||||
}
|
||||
@@ -416,7 +339,7 @@ Kirigami.ScrollablePage {
|
||||
}
|
||||
Controls.TextField {
|
||||
id: openvr_text
|
||||
placeholderText: i18n("Library path, excluding bin/linux64/vrclient.so")
|
||||
placeholderText: i18n("Library path, excluding bin/linux64/vrclient.so")
|
||||
visible: !!openvr_combobox.model.get(openvr_combobox.currentIndex)?.is_custom
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
@@ -435,12 +358,12 @@ Kirigami.ScrollablePage {
|
||||
|
||||
onAccepted: {
|
||||
settings.save();
|
||||
config.save(WivrnServer);
|
||||
Settings.save(WivrnServer);
|
||||
|
||||
applicationWindow().pageStack.pop();
|
||||
}
|
||||
onReset: {
|
||||
config.restore_defaults();
|
||||
Settings.restore_defaults();
|
||||
settings.load();
|
||||
}
|
||||
onRejected: applicationWindow().pageStack.pop()
|
||||
@@ -448,54 +371,50 @@ Kirigami.ScrollablePage {
|
||||
|
||||
Component.onCompleted: {
|
||||
openvr_libs.init()
|
||||
config.load(WivrnServer);
|
||||
Settings.load(WivrnServer);
|
||||
// If bitrate was manually set higher, keep the limit
|
||||
bitrate.to = Math.max(bitrate.to, Settings.bitrate)
|
||||
bitrate.value = Settings.bitrate
|
||||
settings.allowUpdates = true;
|
||||
settings.load();
|
||||
}
|
||||
|
||||
function save() {
|
||||
config.bitrate = bitrate.value * 1000000;
|
||||
config.scale = manual_foveation.checked ? 1 - scale_slider.value / 100.0 : -1;
|
||||
config.manualEncoders = encoder_layout.currentIndex > 0;
|
||||
Settings.scale = manual_foveation.checked ? 1 - scale_slider.value / 100.0 : -1;
|
||||
let openvr = openvr_combobox.model.get(openvr_combobox.currentIndex)
|
||||
if (openvr.is_custom) {
|
||||
config.openvr = openvr_text.text;
|
||||
Settings.openvr = openvr_text.text;
|
||||
} else {
|
||||
config.openvr = openvr.value
|
||||
Settings.openvr = openvr.value
|
||||
}
|
||||
settings.adb_custom = adb_custom.checked;
|
||||
settings.adb_location = adb_location.text;
|
||||
Adb.setPath(adb_custom.checked ? adb_location.text : "adb");
|
||||
DashboardSettings.adb_custom = adb_custom.checked;
|
||||
DashboardSettings.adb_location = adb_location.text;
|
||||
Adb.setPath(DashboardSettings.adb_custom.checked ? adb_location.text : "adb");
|
||||
|
||||
config.debugGui = debug_gui.checked;
|
||||
config.steamVrLh = steamvr_lh.checked;
|
||||
DashboardSettings.show_system_checks = show_system_checks.checked;
|
||||
|
||||
Settings.debugGui = debug_gui.checked;
|
||||
Settings.steamVrLh = steamvr_lh.checked;
|
||||
Settings.hidForwarding = hid_forwarding.checked;
|
||||
}
|
||||
|
||||
function load() {
|
||||
bitrate.value = config.bitrate / 1000000;
|
||||
|
||||
if (config.scale > 0) {
|
||||
scale_slider.value = Math.round(100 - config.scale * 100);
|
||||
manual_foveation.checked = true;
|
||||
if (Settings.scale > 0) {
|
||||
scale_slider.value = Math.round(100 - Settings.scale * 100);
|
||||
} else {
|
||||
scale_slider.value = 50;
|
||||
manual_foveation.checked = false;
|
||||
}
|
||||
|
||||
if (config.manualEncoders) {
|
||||
// auto_encoders.checked = false;
|
||||
encoder_layout.currentIndex = 1;
|
||||
} else {
|
||||
// auto_encoders.checked = true;
|
||||
encoder_layout.currentIndex = 0;
|
||||
}
|
||||
|
||||
debug_gui.checked = config.debugGui;
|
||||
steamvr_lh.checked = config.steamVrLh;
|
||||
debug_gui.checked = Settings.debugGui;
|
||||
steamvr_lh.checked = Settings.steamVrLh;
|
||||
hid_forwarding.checked = Settings.hidForwarding;
|
||||
|
||||
openvr_combobox.load()
|
||||
|
||||
adb_custom.checked = settings.adb_custom;
|
||||
adb_location.text = settings.adb_location;
|
||||
adb_custom.checked = DashboardSettings.adb_custom;
|
||||
adb_location.text = DashboardSettings.adb_location;
|
||||
|
||||
show_system_checks.checked = DashboardSettings.show_system_checks;
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
|
||||
@@ -1,935 +0,0 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2024 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <KLocalization>
|
||||
#include <PlatformTheme>
|
||||
#include <QApplication>
|
||||
#include <QCursor>
|
||||
#include <QObject>
|
||||
#include <QPainter>
|
||||
#include <QPalette>
|
||||
#include <QPen>
|
||||
#include <QQuickPaintedItem>
|
||||
#include <platformtheme.h>
|
||||
#include <qqmlengine.h>
|
||||
|
||||
#include "settings.h"
|
||||
#include <ranges>
|
||||
|
||||
enum class side
|
||||
{
|
||||
top,
|
||||
bottom,
|
||||
left,
|
||||
right
|
||||
};
|
||||
|
||||
struct edge
|
||||
{
|
||||
side edge_side;
|
||||
int rectangle_index;
|
||||
|
||||
bool operator==(const edge & other) const noexcept
|
||||
{
|
||||
return edge_side == other.edge_side and rectangle_index == other.rectangle_index;
|
||||
}
|
||||
|
||||
double position = 0;
|
||||
double min = std::numeric_limits<double>::max();
|
||||
double max = std::numeric_limits<double>::lowest();
|
||||
};
|
||||
|
||||
namespace
|
||||
{
|
||||
const double split_edge_threshold = 0.05;
|
||||
const double move_edge_threshold = 0.02;
|
||||
const double magnetism_threshold = 0.05;
|
||||
const int num_subdiv = 20;
|
||||
const double epsilon = 1.0 / (2 * num_subdiv);
|
||||
|
||||
QRectF rectangle_from_encoder(const encoder & enc)
|
||||
{
|
||||
QRectF r;
|
||||
r.setX(enc.offset_x);
|
||||
r.setY(enc.offset_y);
|
||||
r.setWidth(enc.width);
|
||||
r.setHeight(enc.height);
|
||||
return r;
|
||||
}
|
||||
|
||||
int hovered_rectangle(QPointF position, const std::vector<encoder> & encoders)
|
||||
{
|
||||
for (const auto [i, enc]: std::views::enumerate(encoders))
|
||||
{
|
||||
if (rectangle_from_encoder(enc).contains(position))
|
||||
return i;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
Qt::CursorShape get_cursor_shape(QPointF position, const std::vector<encoder> & rectangles)
|
||||
{
|
||||
for (const encoder & i: rectangles)
|
||||
{
|
||||
QRectF r = rectangle_from_encoder(i);
|
||||
if (r.contains(position))
|
||||
{
|
||||
QPointF rel_pos = position - r.topLeft();
|
||||
double dx = std::min(rel_pos.x(), r.width() - rel_pos.x());
|
||||
double dy = std::min(rel_pos.y(), r.height() - rel_pos.y());
|
||||
|
||||
if (dx < move_edge_threshold and position.x() >= epsilon and position.x() <= 1 - epsilon)
|
||||
return Qt::SizeHorCursor;
|
||||
else if (dy < move_edge_threshold and position.y() >= epsilon and position.y() <= 1 - epsilon)
|
||||
return Qt::SizeVerCursor;
|
||||
else if (dx < split_edge_threshold and position.y() >= epsilon and position.y() <= 1 - epsilon)
|
||||
return Qt::SplitVCursor;
|
||||
else if (dy < split_edge_threshold and position.x() >= epsilon and position.x() <= 1 - epsilon)
|
||||
return Qt::SplitHCursor;
|
||||
else
|
||||
return Qt::ArrowCursor;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return Qt::ArrowCursor;
|
||||
}
|
||||
|
||||
std::vector<edge> horizontal_edges(const std::vector<encoder> & rectangles)
|
||||
{
|
||||
std::vector<edge> edges;
|
||||
|
||||
for (const auto & [i, enc]: std::views::enumerate(rectangles))
|
||||
{
|
||||
if (enc.top() > epsilon)
|
||||
{
|
||||
edges.emplace_back(side::top, i, enc.top(), enc.left(), enc.right());
|
||||
}
|
||||
|
||||
if (rectangles[i].bottom() < 1 - epsilon)
|
||||
{
|
||||
edges.emplace_back(side::bottom, i, enc.bottom(), enc.left(), enc.right());
|
||||
}
|
||||
}
|
||||
|
||||
return edges;
|
||||
}
|
||||
|
||||
std::vector<edge> vertical_edges(const std::vector<encoder> & rectangles)
|
||||
{
|
||||
std::vector<edge> edges;
|
||||
|
||||
for (const auto & [i, enc]: std::views::enumerate(rectangles))
|
||||
{
|
||||
if (enc.left() > epsilon)
|
||||
{
|
||||
edges.emplace_back(side::left, i, enc.left(), enc.top(), enc.bottom());
|
||||
}
|
||||
|
||||
if (enc.right() < 1 - epsilon)
|
||||
{
|
||||
edges.emplace_back(side::right, i, enc.right(), enc.top(), enc.bottom());
|
||||
}
|
||||
}
|
||||
|
||||
return edges;
|
||||
}
|
||||
|
||||
std::vector<std::vector<edge>> partition_edges(std::vector<edge> edges)
|
||||
{
|
||||
auto comp = [](const edge & a, const edge & b) {
|
||||
if (a.position < b.position)
|
||||
return true;
|
||||
if (a.position > b.position)
|
||||
return false;
|
||||
|
||||
if (a.min < b.min)
|
||||
return true;
|
||||
if (a.min > b.min)
|
||||
return false;
|
||||
|
||||
if (a.max < b.max)
|
||||
return true;
|
||||
return false;
|
||||
};
|
||||
|
||||
std::ranges::sort(edges, comp);
|
||||
|
||||
std::vector<std::vector<edge>> partitionned;
|
||||
|
||||
double current_position = std::numeric_limits<double>::lowest();
|
||||
double current_max = 0;
|
||||
|
||||
for (auto & e: edges)
|
||||
{
|
||||
if (e.position != current_position)
|
||||
{
|
||||
current_position = e.position;
|
||||
current_max = e.max;
|
||||
partitionned.push_back({e});
|
||||
}
|
||||
else
|
||||
{
|
||||
if (e.min >= current_max)
|
||||
{
|
||||
// All the following edges will be after the last partition
|
||||
current_max = e.max;
|
||||
partitionned.push_back({e});
|
||||
}
|
||||
else
|
||||
{
|
||||
// Add the edge to the current partition
|
||||
current_max = std::max(current_max, e.max);
|
||||
partitionned.back().push_back(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return partitionned;
|
||||
}
|
||||
|
||||
std::vector<edge> hovered_edges(QPointF position, const std::vector<std::vector<edge>> & partitionned_edges, bool horizontal)
|
||||
{
|
||||
if (horizontal)
|
||||
position = position.transposed();
|
||||
|
||||
for (const auto & edge_list: partitionned_edges)
|
||||
{
|
||||
for (const auto & edge: edge_list)
|
||||
{
|
||||
if (std::abs(position.x() - edge.position) < move_edge_threshold and position.y() >= edge.min and position.y() <= edge.max)
|
||||
{
|
||||
return edge_list;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
bool assert_rectangle_list_is_partition(const std::vector<encoder> & rectangles)
|
||||
{
|
||||
return true;
|
||||
|
||||
bool ok = true;
|
||||
|
||||
QRectF bounding_box{0, 0, 1, 1};
|
||||
|
||||
for (const auto & i: rectangles)
|
||||
{
|
||||
if (i.width < 0 or i.height < 0)
|
||||
{
|
||||
qDebug() << "Invalid rectangle" /*<< i*/;
|
||||
ok = false;
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<double> rectangle_y_boundaries;
|
||||
for (auto & i: rectangles)
|
||||
{
|
||||
rectangle_y_boundaries.push_back(i.top());
|
||||
rectangle_y_boundaries.push_back(i.bottom());
|
||||
}
|
||||
|
||||
for (double y: rectangle_y_boundaries)
|
||||
{
|
||||
if (y < bounding_box.top())
|
||||
continue;
|
||||
if (y >= bounding_box.bottom())
|
||||
continue;
|
||||
|
||||
qDebug() << "Checking line" << y;
|
||||
std::vector<std::pair<double, double>> horizontal_segments;
|
||||
for (const auto & i: rectangles)
|
||||
{
|
||||
if (y >= i.top() and y < i.bottom())
|
||||
{
|
||||
horizontal_segments.emplace_back(i.left(), i.right());
|
||||
qDebug() << " Adding segment" << i.left() << "-" << i.right();
|
||||
}
|
||||
}
|
||||
|
||||
std::ranges::sort(horizontal_segments);
|
||||
|
||||
if (horizontal_segments.empty())
|
||||
{
|
||||
qDebug() << "Line" << y << "empty";
|
||||
ok = false;
|
||||
}
|
||||
|
||||
if (horizontal_segments.front().first != bounding_box.left())
|
||||
{
|
||||
qDebug() << "Line" << y << "does not start at the left of the bounding box" << (horizontal_segments.front().first - bounding_box.left());
|
||||
ok = false;
|
||||
}
|
||||
|
||||
if (horizontal_segments.back().second != bounding_box.right())
|
||||
{
|
||||
qDebug() << "Last rectangle of line" << y << "does not end at the right of the bounding box" << (horizontal_segments.back().second - bounding_box.right());
|
||||
ok = false;
|
||||
}
|
||||
|
||||
for (int i = 1; i < horizontal_segments.size(); ++i)
|
||||
{
|
||||
if (horizontal_segments[i - 1].second < horizontal_segments[i].first)
|
||||
{
|
||||
qDebug() << "Overlap in line" << y << (horizontal_segments[i - 1].second - horizontal_segments[i].first);
|
||||
ok = false;
|
||||
}
|
||||
else if (horizontal_segments[i - 1].second > horizontal_segments[i].first)
|
||||
{
|
||||
qDebug() << "Gap in line" << y << (horizontal_segments[i - 1].second - horizontal_segments[i].first);
|
||||
ok = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ok;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
class RectanglePartitionner : public QQuickPaintedItem
|
||||
{
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
|
||||
Q_PROPERTY(Settings * settings READ settings WRITE setSettings NOTIFY settingsChanged)
|
||||
Q_PROPERTY(bool selected READ selected NOTIFY selectedChanged)
|
||||
Q_PROPERTY(QString encoder READ encoder WRITE setEncoder NOTIFY encoderChanged)
|
||||
Q_PROPERTY(QString codec READ codec WRITE setCodec NOTIFY codecChanged)
|
||||
Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged)
|
||||
|
||||
int m_currentIndex = -1;
|
||||
Settings * m_settings = nullptr;
|
||||
|
||||
std::vector<edge> selection;
|
||||
std::vector<edge> hovered;
|
||||
|
||||
double min_drag_position;
|
||||
double max_drag_position;
|
||||
|
||||
QLine split_line;
|
||||
QRect split_clip_rect;
|
||||
Qt::CursorShape cursor_shape = Qt::ArrowCursor;
|
||||
|
||||
enum class mouse_event_type
|
||||
{
|
||||
move,
|
||||
press,
|
||||
release
|
||||
};
|
||||
|
||||
Kirigami::Platform::PlatformTheme theme;
|
||||
|
||||
public:
|
||||
RectanglePartitionner(QQuickItem * parent = nullptr) :
|
||||
QQuickPaintedItem(parent),
|
||||
theme(this)
|
||||
{
|
||||
setFlag(ItemHasContents);
|
||||
setAcceptedMouseButtons(Qt::LeftButton);
|
||||
setAcceptHoverEvents(true);
|
||||
|
||||
theme.setColorSet(Kirigami::Platform::PlatformTheme::View);
|
||||
setFillColor(theme.backgroundColor());
|
||||
|
||||
connect(&theme, &Kirigami::Platform::PlatformTheme::colorsChanged, this, [&]() {
|
||||
setFillColor(theme.backgroundColor());
|
||||
update();
|
||||
});
|
||||
|
||||
// connect(this, &QQuickItem::enabledChanged, this, [&](){
|
||||
// if (isEnabled())
|
||||
// theme.setColorGroup(Kirigami::Platform::PlatformTheme::Active);
|
||||
// else
|
||||
// theme.setColorGroup(Kirigami::Platform::PlatformTheme::Disabled);
|
||||
// });
|
||||
}
|
||||
|
||||
int currentIndex() const
|
||||
{
|
||||
return m_currentIndex;
|
||||
}
|
||||
|
||||
bool selected() const
|
||||
{
|
||||
return m_currentIndex >= 0 and m_currentIndex < m_settings->encoders().size();
|
||||
}
|
||||
|
||||
void setCurrentIndex(int value)
|
||||
{
|
||||
if (m_currentIndex != value)
|
||||
{
|
||||
m_currentIndex = value;
|
||||
currentIndexChanged(value);
|
||||
selectedChanged(selected());
|
||||
encoderChanged(encoder());
|
||||
codecChanged(codec());
|
||||
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
Settings * settings() const
|
||||
{
|
||||
return m_settings;
|
||||
}
|
||||
|
||||
void onEncodersChanged()
|
||||
{
|
||||
update();
|
||||
}
|
||||
|
||||
void setSettings(Settings * value)
|
||||
{
|
||||
if (m_settings != value)
|
||||
{
|
||||
if (m_settings)
|
||||
disconnect(m_settings, &Settings::encodersChanged, this, &RectanglePartitionner::onEncodersChanged);
|
||||
|
||||
settingsChanged(m_settings = value);
|
||||
|
||||
if (m_settings)
|
||||
connect(m_settings, &Settings::encodersChanged, this, &RectanglePartitionner::onEncodersChanged);
|
||||
}
|
||||
}
|
||||
|
||||
QString encoder() const
|
||||
{
|
||||
if (not m_settings or m_currentIndex < 0 or m_currentIndex >= m_settings->encoders().size())
|
||||
return "";
|
||||
|
||||
return QString::fromStdString(Settings::encoder_from_id(m_settings->encoders()[m_currentIndex].name));
|
||||
}
|
||||
|
||||
QString codec() const
|
||||
{
|
||||
if (not m_settings or m_currentIndex < 0 or m_currentIndex >= m_settings->encoders().size())
|
||||
return "";
|
||||
|
||||
return QString::fromStdString(Settings::codec_from_id(m_settings->encoders()[m_currentIndex].codec));
|
||||
}
|
||||
|
||||
void setEncoder(QString value)
|
||||
{
|
||||
qDebug() << "Setting encoder to " << value;
|
||||
auto encoders = m_settings->encoders();
|
||||
auto converted_value = Settings::encoder_id_from_string(value.toStdString());
|
||||
|
||||
if (not m_settings or m_currentIndex < 0 or m_currentIndex >= encoders.size())
|
||||
return;
|
||||
|
||||
if (encoders[m_currentIndex].name == converted_value)
|
||||
return;
|
||||
|
||||
encoders[m_currentIndex].name = converted_value;
|
||||
m_settings->set_encoders(encoders);
|
||||
update();
|
||||
encoderLayoutChanged();
|
||||
}
|
||||
|
||||
void setCodec(QString value)
|
||||
{
|
||||
qDebug() << "Setting codec to " << value;
|
||||
auto encoders = m_settings->encoders();
|
||||
auto converted_value = Settings::codec_id_from_string(value.toStdString());
|
||||
|
||||
if (not m_settings or m_currentIndex < 0 or m_currentIndex >= encoders.size())
|
||||
return;
|
||||
|
||||
if (encoders[m_currentIndex].codec == converted_value)
|
||||
return;
|
||||
|
||||
encoders[m_currentIndex].codec = Settings::codec_id_from_string(value.toStdString());
|
||||
m_settings->set_encoders(encoders);
|
||||
update();
|
||||
encoderLayoutChanged();
|
||||
}
|
||||
|
||||
QRect frameRect()
|
||||
{
|
||||
return {0, 0, (int)width() - 1, (int)height() - 1};
|
||||
}
|
||||
|
||||
QPointF from_position(QPoint position)
|
||||
{
|
||||
auto r = frameRect();
|
||||
|
||||
return QPointF{
|
||||
std::clamp(double(position.x() - r.x()) / (r.width() - 1), 0., 1.),
|
||||
std::clamp(double(position.y() - r.y()) / (r.height() - 1), 0., 1.),
|
||||
};
|
||||
}
|
||||
|
||||
QPoint to_position(QPointF position)
|
||||
{
|
||||
auto r = frameRect();
|
||||
|
||||
return QPoint(
|
||||
std::round(r.x() + position.x() * (r.width() - 1)),
|
||||
std::round(r.y() + position.y() * (r.height() - 1)));
|
||||
}
|
||||
|
||||
QRect to_position(QRectF position)
|
||||
{
|
||||
return QRect{to_position(position.topLeft()), to_position(position.bottomRight())};
|
||||
}
|
||||
|
||||
QRect rectangle_position(int index)
|
||||
{
|
||||
return to_position(rectangle_from_encoder(m_settings->encoders().at(index)));
|
||||
}
|
||||
|
||||
// Keep it in sync with SettingsPage.qml (codec_combo.model)
|
||||
QString codec_name_from_setting(QString value)
|
||||
{
|
||||
if (value == "h264")
|
||||
return i18n("H.264");
|
||||
if (value == "h265")
|
||||
return i18n("H.265");
|
||||
if (value == "av1")
|
||||
return i18n("AV1");
|
||||
|
||||
return i18nc("automatic codec setup", "Auto");
|
||||
}
|
||||
|
||||
// Keep it in sync with SettingsPage.qml (encoder_combo.model)
|
||||
QString encoder_name_from_setting(QString value)
|
||||
{
|
||||
if (value == "nvenc")
|
||||
return i18n("nvenc");
|
||||
if (value == "vaapi")
|
||||
return i18n("vaapi");
|
||||
if (value == "x264")
|
||||
return i18n("x264");
|
||||
if (value == "vulkan")
|
||||
return i18n("Vulkan");
|
||||
|
||||
return i18nc("automatic encoder setup", "Auto");
|
||||
}
|
||||
|
||||
// BEGIN Painting functions
|
||||
void paint_single_rectangle_border(QPainter * painter, const ::encoder & enc)
|
||||
{
|
||||
QRectF r = rectangle_from_encoder(enc);
|
||||
QRect rect = to_position(r);
|
||||
|
||||
QPen pen = painter->pen();
|
||||
painter->setPen(QPen{theme.disabledTextColor()});
|
||||
painter->drawRect(rect);
|
||||
painter->setPen(pen);
|
||||
}
|
||||
|
||||
void paint_single_rectangle(QPainter * painter, const ::encoder & enc, bool selected)
|
||||
{
|
||||
QRectF r = rectangle_from_encoder(enc);
|
||||
QRect rect = to_position(r);
|
||||
|
||||
if (selected)
|
||||
{
|
||||
painter->fillRect(rect.adjusted(1, 1, 0, 0), theme.focusColor());
|
||||
}
|
||||
|
||||
QString codec = QString::fromStdString(Settings::codec_from_id(enc.codec));
|
||||
QString encoder = QString::fromStdString(Settings::encoder_from_id(enc.name));
|
||||
|
||||
QFont font = painter->font();
|
||||
QFont font2 = font;
|
||||
|
||||
font2.setPixelSize(24);
|
||||
|
||||
QString text = QString("%1\n%2").arg(encoder_name_from_setting(encoder), codec_name_from_setting(codec));
|
||||
|
||||
QFontMetrics metrics{font2};
|
||||
QSize size = metrics.size(0, text);
|
||||
|
||||
if (double ratio = std::max((double)size.width() / rect.width(), (double)size.height() / rect.height()); ratio > 1)
|
||||
{
|
||||
int pixel_size = font2.pixelSize() / ratio;
|
||||
if (pixel_size > 0)
|
||||
font2.setPixelSize(pixel_size);
|
||||
}
|
||||
|
||||
QPen pen = painter->pen();
|
||||
|
||||
painter->setPen(QPen{theme.textColor()});
|
||||
painter->setFont(font2);
|
||||
painter->drawText(rect, Qt::AlignCenter, text);
|
||||
painter->setFont(font);
|
||||
painter->setPen(pen);
|
||||
}
|
||||
|
||||
void paint(QPainter * painter) override
|
||||
{
|
||||
if (not m_settings)
|
||||
return;
|
||||
|
||||
for (auto [i, enc]: std::views::enumerate(m_settings->encoders()))
|
||||
{
|
||||
bool is_selected = i == m_currentIndex and isEnabled();
|
||||
paint_single_rectangle(painter, enc, is_selected);
|
||||
}
|
||||
|
||||
if (not hovered.empty() and selection.empty())
|
||||
{
|
||||
for (auto & enc: m_settings->encoders())
|
||||
{
|
||||
paint_single_rectangle_border(painter, enc);
|
||||
}
|
||||
|
||||
painter->setPen(QPen(Qt::blue, 3, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
|
||||
|
||||
auto r = frameRect();
|
||||
|
||||
QList<QLine> lines;
|
||||
lines.reserve(hovered.size());
|
||||
for (const edge & i: hovered)
|
||||
{
|
||||
QLineF line;
|
||||
switch (i.edge_side)
|
||||
{
|
||||
case side::top:
|
||||
case side::bottom:
|
||||
line = QLineF(i.min, i.position, i.max, i.position);
|
||||
break;
|
||||
|
||||
case side::left:
|
||||
case side::right:
|
||||
line = QLineF(i.position, i.min, i.position, i.max);
|
||||
break;
|
||||
}
|
||||
|
||||
int x1 = std::round(r.x() + line.x1() * (r.width() - 1));
|
||||
int x2 = std::round(r.x() + line.x2() * (r.width() - 1));
|
||||
|
||||
int y1 = std::round(r.y() + line.y1() * (r.height() - 1));
|
||||
int y2 = std::round(r.y() + line.y2() * (r.height() - 1));
|
||||
|
||||
lines.emplace_back(x1, y1, x2, y2);
|
||||
}
|
||||
|
||||
painter->drawLines(lines);
|
||||
|
||||
auto horz_partitionned = partition_edges(horizontal_edges(m_settings->encoders()));
|
||||
auto vert_partitionned = partition_edges(vertical_edges(m_settings->encoders()));
|
||||
}
|
||||
else if ((cursor_shape == Qt::SplitHCursor or cursor_shape == Qt::SplitVCursor) and not split_line.isNull())
|
||||
{
|
||||
auto now = std::chrono::duration_cast<std::chrono::duration<double>>(std::chrono::steady_clock::now().time_since_epoch()).count();
|
||||
|
||||
QPen pen(theme.disabledTextColor(), 2, Qt::DashLine, Qt::RoundCap, Qt::RoundJoin);
|
||||
pen.setDashPattern({5, 5});
|
||||
pen.setDashOffset(-now * 15);
|
||||
painter->setPen(pen);
|
||||
|
||||
painter->setClipping(true);
|
||||
painter->setClipRect(split_clip_rect.adjusted(1, 1, 0, 0));
|
||||
painter->drawLine(split_line);
|
||||
painter->setClipping(false);
|
||||
update();
|
||||
|
||||
for (auto & enc: m_settings->encoders())
|
||||
{
|
||||
paint_single_rectangle_border(painter, enc);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (auto & enc: m_settings->encoders())
|
||||
{
|
||||
paint_single_rectangle_border(painter, enc);
|
||||
}
|
||||
}
|
||||
}
|
||||
// END Painting functions
|
||||
|
||||
// BEGIN Mouse callbacks
|
||||
void mouseMoveEvent(QMouseEvent * event) override
|
||||
{
|
||||
auto pos = event->position().toPoint();
|
||||
|
||||
auto encoders = m_settings->encoders();
|
||||
|
||||
if (not selection.empty())
|
||||
{
|
||||
double position;
|
||||
|
||||
if (selection.front().edge_side == side::top or selection.front().edge_side == side::bottom)
|
||||
position = from_position(pos).y();
|
||||
else
|
||||
position = from_position(pos).x();
|
||||
|
||||
position = std::clamp(position, min_drag_position, max_drag_position);
|
||||
position = std::round(position * num_subdiv) / num_subdiv; // magnetism
|
||||
|
||||
for (edge & e: selection)
|
||||
{
|
||||
switch (e.edge_side)
|
||||
{
|
||||
case side::top:
|
||||
encoders[e.rectangle_index].set_top(position);
|
||||
break;
|
||||
|
||||
case side::bottom:
|
||||
encoders[e.rectangle_index].set_bottom(position);
|
||||
break;
|
||||
|
||||
case side::left:
|
||||
encoders[e.rectangle_index].set_left(position);
|
||||
break;
|
||||
|
||||
case side::right:
|
||||
encoders[e.rectangle_index].set_right(position);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
update();
|
||||
m_settings->set_encoders(encoders);
|
||||
encoderLayoutChanged();
|
||||
}
|
||||
}
|
||||
|
||||
void hoverMoveEvent(QHoverEvent * event) override
|
||||
{
|
||||
if (not m_settings)
|
||||
return;
|
||||
|
||||
QPoint pos = event->position().toPoint();
|
||||
|
||||
const auto & encoders = m_settings->encoders();
|
||||
|
||||
hovered.clear();
|
||||
|
||||
if (auto horz_edges = hovered_edges(from_position(pos), partition_edges(horizontal_edges(encoders)), true); not horz_edges.empty())
|
||||
{
|
||||
hovered = std::move(horz_edges);
|
||||
update();
|
||||
}
|
||||
else if (auto vert_edges = hovered_edges(from_position(pos), partition_edges(vertical_edges(encoders)), false); not vert_edges.empty())
|
||||
{
|
||||
hovered = std::move(vert_edges);
|
||||
update();
|
||||
}
|
||||
else
|
||||
{
|
||||
int n = hovered_rectangle(from_position(pos), encoders);
|
||||
}
|
||||
|
||||
Qt::CursorShape new_cursor = get_cursor_shape(from_position(pos), encoders);
|
||||
if (new_cursor != cursor_shape)
|
||||
{
|
||||
update();
|
||||
cursor_shape = new_cursor;
|
||||
setCursor(QCursor(new_cursor));
|
||||
}
|
||||
|
||||
if (cursor_shape == Qt::SplitHCursor)
|
||||
{
|
||||
int n = hovered_rectangle(from_position(pos), encoders);
|
||||
|
||||
double x = std::round(from_position(pos).x() * num_subdiv) / num_subdiv; // magnetism
|
||||
int px = to_position({x, 0}).x();
|
||||
|
||||
split_line = {px, rectangle_position(n).top(), px, rectangle_position(n).bottom()};
|
||||
split_clip_rect = rectangle_position(n);
|
||||
update();
|
||||
}
|
||||
else if (cursor_shape == Qt::SplitVCursor)
|
||||
{
|
||||
int n = hovered_rectangle(from_position(pos), encoders);
|
||||
|
||||
double y = std::round(from_position(pos).y() * num_subdiv) / num_subdiv; // magnetism
|
||||
int py = to_position({0, y}).y();
|
||||
|
||||
split_line = {rectangle_position(n).left(), py, rectangle_position(n).right(), py};
|
||||
split_clip_rect = rectangle_position(n);
|
||||
update();
|
||||
}
|
||||
else
|
||||
{
|
||||
split_line = {0, 0, 0, 0};
|
||||
split_clip_rect = {0, 0, 0, 0};
|
||||
}
|
||||
}
|
||||
|
||||
void mousePressEvent(QMouseEvent * event) override
|
||||
{
|
||||
if (not m_settings)
|
||||
return;
|
||||
|
||||
selection.clear();
|
||||
split_line = {0, 0, 0, 0};
|
||||
auto encoders = m_settings->encoders();
|
||||
|
||||
if (auto horz_edges = hovered_edges(from_position(event->pos()), partition_edges(horizontal_edges(encoders)), true); not horz_edges.empty())
|
||||
{
|
||||
selection = std::move(horz_edges);
|
||||
}
|
||||
else if (auto vert_edges = hovered_edges(from_position(event->pos()), partition_edges(vertical_edges(encoders)), false); not vert_edges.empty())
|
||||
{
|
||||
selection = std::move(vert_edges);
|
||||
}
|
||||
else if (int n = hovered_rectangle(from_position(event->pos()), encoders); n >= 0)
|
||||
{
|
||||
::encoder & hovered = encoders[n];
|
||||
|
||||
// Compute distance to edges
|
||||
auto pos = from_position(event->pos());
|
||||
|
||||
double dx = std::min(pos.x() - hovered.left(), hovered.right() - pos.x());
|
||||
double dy = std::min(pos.y() - hovered.top(), hovered.bottom() - pos.y());
|
||||
|
||||
if (dx < split_edge_threshold)
|
||||
{
|
||||
qDebug() << "Splitting rectangle " << n << " vertically";
|
||||
double y = std::round(pos.y() * num_subdiv) / num_subdiv; // magnetism
|
||||
|
||||
// Split vertically
|
||||
::encoder new_rectangle = hovered;
|
||||
|
||||
hovered.set_bottom(y);
|
||||
new_rectangle.set_top(hovered.bottom());
|
||||
|
||||
encoders.push_back(new_rectangle);
|
||||
update();
|
||||
m_settings->set_encoders(encoders);
|
||||
encoderLayoutChanged();
|
||||
|
||||
if (not assert_rectangle_list_is_partition(encoders))
|
||||
abort();
|
||||
}
|
||||
else if (dy < split_edge_threshold)
|
||||
{
|
||||
qDebug() << "Splitting rectangle " << n << " horizontally";
|
||||
double x = std::round(pos.x() * num_subdiv) / num_subdiv; // magnetism
|
||||
|
||||
// Split horizontally
|
||||
::encoder new_rectangle = hovered;
|
||||
|
||||
hovered.set_right(x);
|
||||
new_rectangle.set_left(hovered.right());
|
||||
|
||||
encoders.push_back(new_rectangle);
|
||||
update();
|
||||
m_settings->set_encoders(encoders);
|
||||
encoderLayoutChanged();
|
||||
|
||||
if (not assert_rectangle_list_is_partition(encoders))
|
||||
abort();
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << "Selecting rectangle " << n;
|
||||
setCurrentIndex(n);
|
||||
}
|
||||
}
|
||||
|
||||
if (not selection.empty())
|
||||
{
|
||||
hovered.clear();
|
||||
|
||||
min_drag_position = std::numeric_limits<double>::lowest();
|
||||
max_drag_position = std::numeric_limits<double>::max();
|
||||
|
||||
for (auto & e: selection)
|
||||
{
|
||||
switch (e.edge_side)
|
||||
{
|
||||
case side::top:
|
||||
max_drag_position = std::min(max_drag_position, encoders[e.rectangle_index].bottom());
|
||||
break;
|
||||
case side::bottom:
|
||||
min_drag_position = std::max(min_drag_position, encoders[e.rectangle_index].top());
|
||||
break;
|
||||
case side::left:
|
||||
max_drag_position = std::min(max_drag_position, encoders[e.rectangle_index].right());
|
||||
break;
|
||||
case side::right:
|
||||
min_drag_position = std::max(min_drag_position, encoders[e.rectangle_index].left());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void mouseReleaseEvent(QMouseEvent * event) override
|
||||
{
|
||||
if (not m_settings)
|
||||
return;
|
||||
|
||||
selection.clear();
|
||||
auto encoders = m_settings->encoders();
|
||||
|
||||
// Delete empty rectangles
|
||||
bool changed = false;
|
||||
for (int i = 0; i < encoders.size();)
|
||||
{
|
||||
if (encoders[i].width <= 0.0001 or encoders[i].height <= 0.0001) // TODO configurable thresholds
|
||||
{
|
||||
qDebug() << "Removing rectangle " << i;
|
||||
encoders.erase(encoders.begin() + i);
|
||||
changed = true;
|
||||
|
||||
if (m_currentIndex > i)
|
||||
m_currentIndex--;
|
||||
else if (m_currentIndex == i)
|
||||
{
|
||||
m_currentIndex = -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
if (changed)
|
||||
{
|
||||
if (not assert_rectangle_list_is_partition(encoders))
|
||||
abort();
|
||||
|
||||
m_settings->set_encoders(encoders);
|
||||
setCurrentIndex(m_currentIndex);
|
||||
update();
|
||||
encoderLayoutChanged();
|
||||
}
|
||||
}
|
||||
|
||||
void hoverLeaveEvent(QHoverEvent * event) override
|
||||
{
|
||||
hovered.clear();
|
||||
split_line = {0, 0, 0, 0};
|
||||
split_clip_rect = {0, 0, 0, 0};
|
||||
update();
|
||||
}
|
||||
// END Mouse callbacks
|
||||
|
||||
Q_SIGNALS:
|
||||
void settingsChanged(Settings *);
|
||||
void selectedChanged(bool);
|
||||
void encoderChanged(QString);
|
||||
void codecChanged(QString);
|
||||
void currentIndexChanged(int);
|
||||
|
||||
void encoderLayoutChanged();
|
||||
};
|
||||
+447
-264
@@ -24,351 +24,513 @@
|
||||
#include "wivrn_server.h"
|
||||
#include <QList>
|
||||
#include <QObject>
|
||||
#include <QPointF>
|
||||
#include <QRectF>
|
||||
#include <QSizeF>
|
||||
#include <cassert>
|
||||
#include <fcntl.h>
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <qqmlintegration.h>
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::vector<std::pair<encoder::encoder_name, std::string>> encoder_ids{
|
||||
{encoder::encoder_name::nvenc, "nvenc"},
|
||||
{encoder::encoder_name::vaapi, "vaapi"},
|
||||
{encoder::encoder_name::x264, "x264"},
|
||||
{encoder::encoder_name::vulkan, "vulkan"},
|
||||
const std::vector<std::pair<Settings::encoder_name, std::string>> encoder_ids{
|
||||
{Settings::encoder_name::Nvenc, "nvenc"},
|
||||
{Settings::encoder_name::Vaapi, "vaapi"},
|
||||
{Settings::encoder_name::X264, "x264"},
|
||||
{Settings::encoder_name::Vulkan, "vulkan"},
|
||||
};
|
||||
|
||||
const std::vector<std::pair<encoder::video_codec, std::string>> codec_ids{
|
||||
{encoder::video_codec::h264, "h264"},
|
||||
{encoder::video_codec::h264, "avc"},
|
||||
{encoder::video_codec::h265, "h265"},
|
||||
{encoder::video_codec::h265, "hevc"},
|
||||
{encoder::video_codec::av1, "av1"},
|
||||
{encoder::video_codec::av1, "AV1"},
|
||||
const std::vector<std::tuple<Settings::video_codec, std::string>> codec_ids{
|
||||
{Settings::video_codec::H264, "h264"},
|
||||
{Settings::video_codec::H264, "avc"},
|
||||
{Settings::video_codec::H265, "h265"},
|
||||
{Settings::video_codec::H265, "hevc"},
|
||||
{Settings::video_codec::Av1, "av1"},
|
||||
{Settings::video_codec::Av1, "AV1"},
|
||||
};
|
||||
|
||||
bool can10bit(Settings::video_codec c)
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
case Settings::CodecAuto:
|
||||
case Settings::H264:
|
||||
return false;
|
||||
case Settings::H265:
|
||||
case Settings::Av1:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
std::optional<encoder::encoder_name> Settings::encoder_id_from_string(std::string_view s)
|
||||
Settings::encoder_name Settings::encoder_id_from_string(std::string_view s)
|
||||
{
|
||||
for (auto & [i, j]: encoder_ids)
|
||||
{
|
||||
if (j == s)
|
||||
return i;
|
||||
}
|
||||
return std::nullopt;
|
||||
return Settings::encoder_name::EncoderAuto;
|
||||
}
|
||||
|
||||
std::optional<encoder::video_codec> Settings::codec_id_from_string(std::string_view s)
|
||||
Settings::video_codec Settings::codec_id_from_string(std::string_view s)
|
||||
{
|
||||
for (auto & [i, j]: codec_ids)
|
||||
{
|
||||
if (j == s)
|
||||
return i;
|
||||
}
|
||||
return std::nullopt;
|
||||
return Settings::video_codec::CodecAuto;
|
||||
}
|
||||
|
||||
const std::string & Settings::encoder_from_id(std::optional<encoder::encoder_name> id)
|
||||
const std::string & Settings::encoder_from_id(Settings::encoder_name id)
|
||||
{
|
||||
static const std::string default_value = "auto";
|
||||
if (not id)
|
||||
return default_value;
|
||||
|
||||
for (auto & [i, j]: encoder_ids)
|
||||
{
|
||||
if (i == *id)
|
||||
if (i == id)
|
||||
return j;
|
||||
}
|
||||
|
||||
return default_value;
|
||||
}
|
||||
|
||||
const std::string & Settings::codec_from_id(std::optional<encoder::video_codec> id)
|
||||
const std::string & Settings::codec_from_id(Settings::video_codec id)
|
||||
{
|
||||
static const std::string default_value = "auto";
|
||||
if (not id)
|
||||
return default_value;
|
||||
|
||||
for (auto & [i, j]: codec_ids)
|
||||
{
|
||||
if (i == *id)
|
||||
if (i == id)
|
||||
return j;
|
||||
}
|
||||
|
||||
return default_value;
|
||||
}
|
||||
|
||||
void Settings::emitAllChanged()
|
||||
{
|
||||
simpleConfigChanged();
|
||||
encoderChanged();
|
||||
codecChanged();
|
||||
tenbitChanged();
|
||||
bitrateChanged();
|
||||
scaleChanged();
|
||||
tcpOnlyChanged();
|
||||
applicationChanged();
|
||||
openvrChanged();
|
||||
debugGuiChanged();
|
||||
steamVrLhChanged();
|
||||
hidForwardingChanged();
|
||||
}
|
||||
|
||||
void Settings::load(const wivrn_server * server)
|
||||
{
|
||||
// Encoders configuration
|
||||
nlohmann::json json_doc;
|
||||
try
|
||||
{
|
||||
auto conf = server->jsonConfiguration();
|
||||
json_doc = nlohmann::json::parse(conf.toUtf8());
|
||||
m_jsonSettings = nlohmann::json::parse(conf.toUtf8());
|
||||
m_originalSettings = m_jsonSettings;
|
||||
if (not m_jsonSettings.is_object())
|
||||
m_jsonSettings = nlohmann::json::object();
|
||||
emitAllChanged();
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
qWarning() << "Cannot read configuration: " << e.what();
|
||||
restore_defaults();
|
||||
m_jsonSettings = nlohmann::json::object();
|
||||
emitAllChanged();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<encoder> new_encoders;
|
||||
bool Settings::simpleConfig() const
|
||||
{
|
||||
// Simple configuration: either unset, or all encoders + codecs are the same
|
||||
try
|
||||
{
|
||||
nlohmann::json json_encoders;
|
||||
|
||||
if (json_doc.contains("encoders"))
|
||||
auto it = m_jsonSettings.find("encoders");
|
||||
if (it == m_jsonSettings.end())
|
||||
return true;
|
||||
std::optional<encoder_name> encoder;
|
||||
std::optional<video_codec> codec;
|
||||
for (const auto & item: *it)
|
||||
{
|
||||
json_encoders = json_doc["encoders"];
|
||||
set_manualEncoders(true);
|
||||
}
|
||||
else if (json_doc.contains("encoders.disabled"))
|
||||
{
|
||||
json_encoders = json_doc["encoders.disabled"];
|
||||
set_manualEncoders(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
set_manualEncoders(false);
|
||||
}
|
||||
|
||||
for (auto & i: json_encoders)
|
||||
{
|
||||
encoder enc;
|
||||
enc.name = encoder_id_from_string(i.value("encoder", "auto"));
|
||||
enc.codec = codec_id_from_string(i.value("codec", "auto"));
|
||||
enc.width = i.value("width", 1.0);
|
||||
enc.height = i.value("height", 1.0);
|
||||
enc.offset_x = i.value("offset_x", 0.0);
|
||||
enc.offset_y = i.value("offset_y", 0.0);
|
||||
enc.group = i.value("group", 0); // TODO: handle groups
|
||||
new_encoders.push_back(enc);
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
// QMessageBox msgbox{QMessageBox::Information, tr("Invalid settings"), tr("The encoder configuration is invalid, the default values will be restored."), QMessageBox::Close, this};
|
||||
// msgbox.exec();
|
||||
|
||||
new_encoders.clear();
|
||||
}
|
||||
set_encoders(new_encoders);
|
||||
|
||||
if (encoders().empty())
|
||||
{
|
||||
set_manualEncoders(false);
|
||||
std::vector<encoder> new_encoders;
|
||||
new_encoders.push_back(encoder{
|
||||
.width = 1,
|
||||
.height = 1,
|
||||
.offset_x = 0,
|
||||
.offset_y = 0,
|
||||
});
|
||||
set_encoders(new_encoders);
|
||||
}
|
||||
|
||||
// Foveation
|
||||
try
|
||||
{
|
||||
if (json_doc.contains("scale"))
|
||||
{
|
||||
set_scale(json_doc.value("scale", 1.0));
|
||||
}
|
||||
else
|
||||
{
|
||||
set_scale(-1);
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
set_scale(-1);
|
||||
}
|
||||
|
||||
// Bitrate
|
||||
try
|
||||
{
|
||||
set_bitrate(json_doc.value("bitrate", 50'000'000));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
set_bitrate(50'000'000);
|
||||
}
|
||||
|
||||
// Automatically started application
|
||||
std::vector<std::string> application;
|
||||
try
|
||||
{
|
||||
if (json_doc["application"].is_array())
|
||||
application = json_doc.value<std::vector<std::string>>("application", {});
|
||||
else if (json_doc["application"].is_string())
|
||||
application.push_back(json_doc["application"]);
|
||||
|
||||
set_application(escape_string(application));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
set_application("");
|
||||
}
|
||||
|
||||
// Advanced options (debug window, steamvr_lh)
|
||||
try
|
||||
{
|
||||
set_debugGui(json_doc.value("debug-gui", false));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
set_debugGui(false);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
set_steamVrLh(json_doc.value("use-steamvr-lh", false));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
set_steamVrLh(false);
|
||||
}
|
||||
|
||||
// OpenVR compat library
|
||||
try
|
||||
{
|
||||
if (auto it = json_doc.find("openvr-compat-path"); it != json_doc.end())
|
||||
{
|
||||
if (it->is_null())
|
||||
set_openvr("-");
|
||||
if (auto it = item.find("encoder"); it != item.end())
|
||||
{
|
||||
auto e = encoder_id_from_string(std::string(*it));
|
||||
if (encoder and e != encoder)
|
||||
return false;
|
||||
encoder = e;
|
||||
}
|
||||
else
|
||||
set_openvr(QString::fromStdString(*it));
|
||||
{
|
||||
encoder = encoder_name::EncoderAuto;
|
||||
}
|
||||
|
||||
if (auto it = item.find("codec"); it != item.end())
|
||||
{
|
||||
auto e = codec_id_from_string(std::string(*it));
|
||||
if (codec and e != codec)
|
||||
return false;
|
||||
codec = e;
|
||||
}
|
||||
else
|
||||
{
|
||||
codec = video_codec::CodecAuto;
|
||||
}
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Settings::encoder_name Settings::encoder() const
|
||||
{
|
||||
try
|
||||
{
|
||||
auto it = m_jsonSettings.find("encoders");
|
||||
if (it == m_jsonSettings.end())
|
||||
return encoder_name::EncoderAuto;
|
||||
for (const auto & item: *it)
|
||||
{
|
||||
set_openvr("");
|
||||
if (auto it = item.find("encoder"); it != item.end())
|
||||
return encoder_id_from_string(std::string(*it));
|
||||
return encoder_name::EncoderAuto;
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
set_openvr("");
|
||||
}
|
||||
return encoder_name::EncoderAuto;
|
||||
}
|
||||
|
||||
void Settings::set_encoder(const encoder_name & value)
|
||||
{
|
||||
auto old = encoder();
|
||||
auto old_codec = codec();
|
||||
switch (value)
|
||||
{
|
||||
case EncoderAuto:
|
||||
m_jsonSettings.erase("encoders");
|
||||
break;
|
||||
case Nvenc:
|
||||
case Vaapi:
|
||||
case Vulkan: {
|
||||
auto & enc = m_jsonSettings["encoders"] = nlohmann::json::array();
|
||||
for (float offset: {0.f, 0.5f})
|
||||
{
|
||||
auto obj = nlohmann::json::object({
|
||||
{"width", 0.5},
|
||||
{"encoder", encoder_from_id(value)},
|
||||
});
|
||||
if (offset)
|
||||
obj["offset_x"] = offset;
|
||||
if (value == Vulkan)
|
||||
obj["codec"] = "h264";
|
||||
enc.push_back(obj);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case encoder_name::X264:
|
||||
m_jsonSettings["encoders"] =
|
||||
nlohmann::json::parse(R"([{"encoder": "x264", "codec": "h264"}])");
|
||||
break;
|
||||
}
|
||||
if (value != old)
|
||||
{
|
||||
encoderChanged();
|
||||
if (not can10bit())
|
||||
set_tenbit(false);
|
||||
}
|
||||
if (old_codec != codec())
|
||||
codecChanged();
|
||||
simpleConfigChanged();
|
||||
}
|
||||
|
||||
Settings::video_codec Settings::codec() const
|
||||
{
|
||||
try
|
||||
{
|
||||
auto it = m_jsonSettings.find("encoders");
|
||||
if (it == m_jsonSettings.end())
|
||||
return video_codec::CodecAuto;
|
||||
for (const auto & item: *it)
|
||||
{
|
||||
if (auto it = item.find("codec"); it != item.end())
|
||||
return codec_id_from_string(std::string(*it));
|
||||
return video_codec::CodecAuto;
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
return video_codec::CodecAuto;
|
||||
}
|
||||
|
||||
void Settings::set_codec(const video_codec & value)
|
||||
{
|
||||
auto old = codec();
|
||||
auto it = m_jsonSettings.find("encoders");
|
||||
if (it == m_jsonSettings.end() or not it->is_array())
|
||||
return;
|
||||
for (auto & item: *it)
|
||||
{
|
||||
if (not item.is_object())
|
||||
continue;
|
||||
if (value == CodecAuto)
|
||||
item.erase("codec");
|
||||
else
|
||||
item["codec"] = codec_from_id(value);
|
||||
}
|
||||
if (value != old)
|
||||
{
|
||||
if (::can10bit(value) != ::can10bit(old))
|
||||
set_tenbit(::can10bit(value));
|
||||
codecChanged();
|
||||
}
|
||||
}
|
||||
|
||||
bool Settings::tenbit() const
|
||||
{
|
||||
try
|
||||
{
|
||||
return m_jsonSettings.value("bit-depth", 8) == 10;
|
||||
}
|
||||
catch (...)
|
||||
{}
|
||||
return false;
|
||||
}
|
||||
|
||||
void Settings::set_tenbit(const bool & value)
|
||||
{
|
||||
auto old = tenbit();
|
||||
m_jsonSettings["bit-depth"] = value ? 10 : 8;
|
||||
if (value != old)
|
||||
tenbitChanged();
|
||||
}
|
||||
|
||||
int Settings::bitrate() const
|
||||
{
|
||||
try
|
||||
{
|
||||
return m_jsonSettings.value("bitrate", 50'000'000) / 1'000'000;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
return 50;
|
||||
}
|
||||
}
|
||||
|
||||
void Settings::set_bitrate(const int & value)
|
||||
{
|
||||
auto old = bitrate();
|
||||
m_jsonSettings["bitrate"] = value * 1'000'000;
|
||||
if (old != value)
|
||||
bitrateChanged();
|
||||
}
|
||||
|
||||
float Settings::scale() const
|
||||
{
|
||||
// Foveation
|
||||
auto it = m_jsonSettings.find("scale");
|
||||
if (it != m_jsonSettings.end() and it->is_number())
|
||||
return *it;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void Settings::set_scale(const float & value)
|
||||
{
|
||||
auto old = scale();
|
||||
if (value == -1)
|
||||
m_jsonSettings.erase("scale");
|
||||
else
|
||||
m_jsonSettings["scale"] = value;
|
||||
if (old != value)
|
||||
scaleChanged();
|
||||
}
|
||||
|
||||
QString Settings::application() const
|
||||
{
|
||||
// Automatically started application
|
||||
try
|
||||
{
|
||||
std::vector<std::string> application;
|
||||
auto it = m_jsonSettings.find("application");
|
||||
if (it == m_jsonSettings.end())
|
||||
return "";
|
||||
if (it->is_array())
|
||||
application = *it;
|
||||
else if (it->is_string())
|
||||
application.push_back(*it);
|
||||
|
||||
return escape_string(application);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
void Settings::set_application(const QString & value)
|
||||
{
|
||||
auto old = application();
|
||||
if (value.isEmpty())
|
||||
m_jsonSettings.erase("application");
|
||||
else
|
||||
m_jsonSettings["application"] = unescape_string(value);
|
||||
if (old != value)
|
||||
applicationChanged();
|
||||
}
|
||||
|
||||
bool Settings::hidForwarding() const
|
||||
{
|
||||
auto it = m_jsonSettings.find("hid-forwarding");
|
||||
if (it != m_jsonSettings.end() and it->is_boolean())
|
||||
return *it;
|
||||
return false;
|
||||
}
|
||||
|
||||
void Settings::set_hidForwarding(const bool & value)
|
||||
{
|
||||
auto old = hidForwarding();
|
||||
m_jsonSettings["hid-forwarding"] = value;
|
||||
if (old != value)
|
||||
hidForwardingChanged();
|
||||
}
|
||||
|
||||
bool Settings::debugGui() const
|
||||
{
|
||||
// Advanced options (debug window, steamvr_lh)
|
||||
auto it = m_jsonSettings.find("debug-gui");
|
||||
if (it != m_jsonSettings.end() and it->is_boolean())
|
||||
return *it;
|
||||
return false;
|
||||
}
|
||||
|
||||
void Settings::set_debugGui(const bool & value)
|
||||
{
|
||||
auto old = debugGui();
|
||||
m_jsonSettings["debug-gui"] = value;
|
||||
if (old != value)
|
||||
debugGuiChanged();
|
||||
}
|
||||
|
||||
bool Settings::steamVrLh() const
|
||||
{
|
||||
auto it = m_jsonSettings.find("use-steamvr-lh");
|
||||
if (it != m_jsonSettings.end() and it->is_boolean())
|
||||
return *it;
|
||||
return false;
|
||||
}
|
||||
|
||||
void Settings::set_steamVrLh(const bool & value)
|
||||
{
|
||||
auto old = steamVrLh();
|
||||
m_jsonSettings["use-steamvr-lh"] = value;
|
||||
if (old != value)
|
||||
steamVrLhChanged();
|
||||
}
|
||||
|
||||
bool Settings::tcpOnly() const
|
||||
{
|
||||
auto it = m_jsonSettings.find("tcp-only");
|
||||
if (it != m_jsonSettings.end() and it->is_boolean())
|
||||
return *it;
|
||||
return false;
|
||||
}
|
||||
|
||||
void Settings::set_tcpOnly(const bool & value)
|
||||
{
|
||||
auto old = tcpOnly();
|
||||
m_jsonSettings["tcp-only"] = value;
|
||||
if (old != value)
|
||||
tcpOnlyChanged();
|
||||
}
|
||||
|
||||
QString Settings::openvr() const
|
||||
{
|
||||
// OpenVR compat library
|
||||
if (auto it = m_jsonSettings.find("openvr-compat-path"); it != m_jsonSettings.end())
|
||||
{
|
||||
if (it->is_null())
|
||||
return "-";
|
||||
if (it->is_string())
|
||||
return QString::fromStdString(*it);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
void Settings::set_openvr(const QString & value)
|
||||
{
|
||||
auto old = openvr();
|
||||
if (value == "-")
|
||||
m_jsonSettings["openvr-compat-path"] = nullptr;
|
||||
else if (value == "")
|
||||
m_jsonSettings.erase("openvr-compat-path");
|
||||
else
|
||||
m_jsonSettings["openvr-compat-path"] = value.toStdString();
|
||||
if (old != value)
|
||||
tcpOnlyChanged();
|
||||
}
|
||||
|
||||
QList<Settings::video_codec> Settings::allowedCodecs() const
|
||||
{
|
||||
switch (encoder())
|
||||
{
|
||||
case encoder_name::EncoderAuto:
|
||||
return {video_codec::CodecAuto};
|
||||
case encoder_name::Nvenc:
|
||||
case encoder_name::Vaapi:
|
||||
return {
|
||||
video_codec::CodecAuto,
|
||||
video_codec::H264,
|
||||
video_codec::H265,
|
||||
video_codec::Av1,
|
||||
};
|
||||
case encoder_name::Vulkan:
|
||||
return {
|
||||
video_codec::CodecAuto,
|
||||
video_codec::H264,
|
||||
video_codec::H265,
|
||||
};
|
||||
case encoder_name::X264:
|
||||
return {
|
||||
video_codec::H264,
|
||||
};
|
||||
}
|
||||
return {video_codec::CodecAuto};
|
||||
}
|
||||
|
||||
bool Settings::can10bit() const
|
||||
{
|
||||
return ::can10bit(codec());
|
||||
}
|
||||
|
||||
void Settings::save(wivrn_server * server)
|
||||
{
|
||||
nlohmann::json json_doc;
|
||||
try
|
||||
{
|
||||
auto conf = server->jsonConfiguration();
|
||||
json_doc = nlohmann::json::parse(conf.toUtf8());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
|
||||
// Remove all optional keys that might not be overwritten
|
||||
auto it = json_doc.find("scale");
|
||||
if (it != json_doc.end())
|
||||
json_doc.erase(it);
|
||||
|
||||
it = json_doc.find("encoders.disabled");
|
||||
if (it != json_doc.end())
|
||||
json_doc.erase(it);
|
||||
|
||||
it = json_doc.find("encoders");
|
||||
if (it != json_doc.end())
|
||||
json_doc.erase(it);
|
||||
|
||||
it = json_doc.find("application");
|
||||
if (it != json_doc.end())
|
||||
json_doc.erase(it);
|
||||
|
||||
if (scale() > 0)
|
||||
json_doc["scale"] = scale();
|
||||
|
||||
json_doc["bitrate"] = bitrate();
|
||||
|
||||
std::vector<nlohmann::json> encoders;
|
||||
|
||||
for (auto & enc: m_encoders)
|
||||
{
|
||||
nlohmann::json encoder;
|
||||
|
||||
if (auto value = encoder_from_id(enc.name); value != "auto")
|
||||
encoder["encoder"] = value;
|
||||
if (auto value = codec_from_id(enc.codec); value != "auto")
|
||||
encoder["codec"] = value;
|
||||
encoder["width"] = enc.width;
|
||||
encoder["height"] = enc.height;
|
||||
encoder["offset_x"] = enc.offset_x;
|
||||
encoder["offset_y"] = enc.offset_y;
|
||||
|
||||
// TODO encoder groups
|
||||
|
||||
encoders.push_back(encoder);
|
||||
}
|
||||
|
||||
std::ranges::stable_sort(encoders, [](const nlohmann::json & i, const nlohmann::json & j) {
|
||||
double size_i = i.value("width", 0.0) * i.value("height", 0.0);
|
||||
double size_j = j.value("width", 0.0) * j.value("height", 0.0);
|
||||
return size_i < size_j;
|
||||
});
|
||||
|
||||
if (manualEncoders())
|
||||
json_doc["encoders"] = encoders;
|
||||
else
|
||||
json_doc["encoders.disabled"] = encoders;
|
||||
|
||||
if (application() != "")
|
||||
json_doc["application"] = unescape_string(application());
|
||||
|
||||
json_doc["debug-gui"] = debugGui();
|
||||
json_doc["use-steamvr-lh"] = steamVrLh();
|
||||
|
||||
if (openvr() == "-")
|
||||
json_doc["openvr-compat-path"] = nullptr;
|
||||
else if (openvr() == "")
|
||||
json_doc.erase("openvr-compat-path");
|
||||
else
|
||||
json_doc["openvr-compat-path"] = openvr().toStdString();
|
||||
|
||||
server->setJsonConfiguration(QString::fromStdString(json_doc.dump(2)));
|
||||
server->setJsonConfiguration(QString::fromStdString(m_jsonSettings.dump(2)));
|
||||
if (m_jsonSettings != m_originalSettings)
|
||||
settingsChanged();
|
||||
}
|
||||
|
||||
void Settings::restore_defaults()
|
||||
{
|
||||
set_encoders({});
|
||||
set_encoderPassthrough({});
|
||||
set_bitrate(50'000'000);
|
||||
set_scale(-1);
|
||||
set_application("");
|
||||
set_debugGui(false);
|
||||
set_steamVrLh(false);
|
||||
set_tcpOnly(false);
|
||||
}
|
||||
|
||||
void Settings::set_encoder_preset(QJSValue preset)
|
||||
{
|
||||
QJSEngine engine;
|
||||
const QJsonArray json_encoders = engine.fromScriptValue<QJsonValue>(preset).toArray();
|
||||
|
||||
std::vector<encoder> encoders;
|
||||
for (const QJsonValue & json_encoder_value: json_encoders)
|
||||
{
|
||||
QJsonObject json_encoder = json_encoder_value.toObject();
|
||||
|
||||
encoders.push_back(encoder{
|
||||
.name = encoder_id_from_string(json_encoder["encoder"].toString("auto").toStdString()),
|
||||
.width = json_encoder["width"].toDouble(),
|
||||
.height = json_encoder["height"].toDouble(),
|
||||
.offset_x = json_encoder["offset_x"].toDouble(),
|
||||
.offset_y = json_encoder["offset_y"].toDouble(),
|
||||
.codec = codec_id_from_string(json_encoder["codec"].toString("auto").toStdString()),
|
||||
});
|
||||
}
|
||||
|
||||
set_manualEncoders(true);
|
||||
set_encoders(encoders);
|
||||
m_jsonSettings.erase("encoders");
|
||||
m_jsonSettings.erase("encoder-passthrough");
|
||||
m_jsonSettings.erase("scale");
|
||||
m_jsonSettings.erase("bitrate");
|
||||
m_jsonSettings.erase("application");
|
||||
m_jsonSettings.erase("hid-forwarding");
|
||||
m_jsonSettings.erase("debug-gui");
|
||||
m_jsonSettings.erase("use-steamvr-lh");
|
||||
m_jsonSettings.erase("tcp-only");
|
||||
m_jsonSettings.erase("application");
|
||||
emitAllChanged();
|
||||
}
|
||||
|
||||
bool Settings::flatpak() const
|
||||
@@ -392,5 +554,26 @@ bool Settings::steamvr_lh() const
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
bool Settings::hid_forwarding() const
|
||||
{
|
||||
// only called from the UI thread → no locking needed
|
||||
static std::optional<bool> can_open_uinput;
|
||||
if (can_open_uinput.has_value())
|
||||
return can_open_uinput.value();
|
||||
|
||||
can_open_uinput = false;
|
||||
constexpr std::array paths = {"/dev/uinput", "/dev/input/uinput"};
|
||||
for (const char * p: paths)
|
||||
{
|
||||
int fd = ::open(p, O_WRONLY | O_NONBLOCK);
|
||||
if (fd >= 0)
|
||||
{
|
||||
::close(fd);
|
||||
can_open_uinput = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return can_open_uinput.value();
|
||||
}
|
||||
|
||||
#include "moc_settings.cpp"
|
||||
|
||||
+60
-97
@@ -26,121 +26,78 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <qqmlintegration.h>
|
||||
|
||||
#define SETTER_GETTER_NOTIFY(type, prop_name) \
|
||||
private: \
|
||||
type m_##prop_name; \
|
||||
\
|
||||
public: \
|
||||
const type & prop_name() const \
|
||||
{ \
|
||||
return m_##prop_name; \
|
||||
} \
|
||||
void set_##prop_name(const type & value) \
|
||||
{ \
|
||||
m_##prop_name = value; \
|
||||
prop_name##Changed(value); \
|
||||
} \
|
||||
Q_SIGNALS: \
|
||||
void prop_name##Changed(const type &);
|
||||
#define SETTER_GETTER_NOTIFY(type, prop_name) \
|
||||
public: \
|
||||
type prop_name() const; \
|
||||
void set_##prop_name(const type & value); \
|
||||
Q_SIGNALS: \
|
||||
void prop_name##Changed();
|
||||
|
||||
class wivrn_server;
|
||||
|
||||
struct encoder
|
||||
{
|
||||
enum class video_codec
|
||||
{
|
||||
h264,
|
||||
h265,
|
||||
av1,
|
||||
};
|
||||
|
||||
enum class encoder_name
|
||||
{
|
||||
nvenc,
|
||||
vaapi,
|
||||
x264,
|
||||
vulkan
|
||||
};
|
||||
|
||||
std::optional<encoder_name> name;
|
||||
double width;
|
||||
double height;
|
||||
double offset_x;
|
||||
double offset_y;
|
||||
std::optional<int> group;
|
||||
std::optional<video_codec> codec;
|
||||
std::map<std::string, std::string> options;
|
||||
std::optional<std::string> device;
|
||||
|
||||
double top() const
|
||||
{
|
||||
return offset_y;
|
||||
}
|
||||
void set_top(double value)
|
||||
{
|
||||
height = bottom() - value;
|
||||
offset_y = value;
|
||||
}
|
||||
|
||||
double bottom() const
|
||||
{
|
||||
return offset_y + height;
|
||||
}
|
||||
void set_bottom(double value)
|
||||
{
|
||||
height = value - top();
|
||||
}
|
||||
|
||||
double left() const
|
||||
{
|
||||
return offset_x;
|
||||
}
|
||||
void set_left(double value)
|
||||
{
|
||||
width = right() - value;
|
||||
offset_x = value;
|
||||
}
|
||||
|
||||
double right() const
|
||||
{
|
||||
return offset_x + width;
|
||||
}
|
||||
void set_right(double value)
|
||||
{
|
||||
width = value - left();
|
||||
}
|
||||
};
|
||||
|
||||
class Settings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
QML_NAMED_ELEMENT(Settings)
|
||||
QML_SINGLETON
|
||||
public:
|
||||
enum encoder_name
|
||||
{
|
||||
EncoderAuto,
|
||||
Nvenc,
|
||||
Vaapi,
|
||||
X264,
|
||||
Vulkan,
|
||||
};
|
||||
Q_ENUM(encoder_name)
|
||||
|
||||
Q_PROPERTY(bool manualEncoders READ manualEncoders WRITE set_manualEncoders NOTIFY manualEncodersChanged)
|
||||
Q_PROPERTY(std::vector<encoder> encoders READ encoders WRITE set_encoders NOTIFY encodersChanged)
|
||||
Q_PROPERTY(encoder encoderPassthrough READ encoderPassthrough WRITE set_encoderPassthrough NOTIFY encoderPassthroughChanged)
|
||||
enum video_codec
|
||||
{
|
||||
CodecAuto,
|
||||
H264,
|
||||
H265,
|
||||
Av1,
|
||||
};
|
||||
Q_ENUM(video_codec)
|
||||
|
||||
Q_PROPERTY(bool simpleConfig READ simpleConfig NOTIFY simpleConfigChanged)
|
||||
Q_PROPERTY(encoder_name encoder READ encoder WRITE set_encoder NOTIFY encoderChanged)
|
||||
Q_PROPERTY(video_codec codec READ codec WRITE set_codec NOTIFY codecChanged)
|
||||
Q_PROPERTY(QList<video_codec> allowedCodecs READ allowedCodecs NOTIFY encoderChanged)
|
||||
Q_PROPERTY(bool can10bit READ can10bit NOTIFY codecChanged)
|
||||
Q_PROPERTY(bool tenbit READ tenbit WRITE set_tenbit NOTIFY tenbitChanged)
|
||||
Q_PROPERTY(int bitrate READ bitrate WRITE set_bitrate NOTIFY bitrateChanged)
|
||||
Q_PROPERTY(float scale READ scale WRITE set_scale NOTIFY scaleChanged)
|
||||
Q_PROPERTY(QString application READ application WRITE set_application NOTIFY applicationChanged)
|
||||
Q_PROPERTY(bool debugGui READ debugGui WRITE set_debugGui NOTIFY debugGuiChanged)
|
||||
Q_PROPERTY(bool steamVrLh READ steamVrLh WRITE set_steamVrLh NOTIFY steamVrLhChanged)
|
||||
|
||||
Q_PROPERTY(bool tcpOnly READ tcpOnly WRITE set_tcpOnly NOTIFY tcpOnlyChanged)
|
||||
Q_PROPERTY(QString application READ application WRITE set_application NOTIFY applicationChanged)
|
||||
Q_PROPERTY(QString openvr READ openvr WRITE set_openvr NOTIFY openvrChanged)
|
||||
|
||||
Q_PROPERTY(bool hidForwarding READ hidForwarding WRITE set_hidForwarding NOTIFY hidForwardingChanged)
|
||||
Q_PROPERTY(bool debugGui READ debugGui WRITE set_debugGui NOTIFY debugGuiChanged)
|
||||
Q_PROPERTY(bool steamVrLh READ steamVrLh WRITE set_steamVrLh NOTIFY steamVrLhChanged)
|
||||
|
||||
Q_PROPERTY(bool flatpak READ flatpak CONSTANT)
|
||||
Q_PROPERTY(bool hid_forwarding_supported READ hid_forwarding CONSTANT)
|
||||
Q_PROPERTY(bool debug_gui_supported READ debug_gui CONSTANT)
|
||||
Q_PROPERTY(bool steamvr_lh_supported READ steamvr_lh CONSTANT)
|
||||
|
||||
SETTER_GETTER_NOTIFY(bool, manualEncoders)
|
||||
SETTER_GETTER_NOTIFY(std::vector<encoder>, encoders)
|
||||
SETTER_GETTER_NOTIFY(encoder, encoderPassthrough)
|
||||
SETTER_GETTER_NOTIFY(bool, simpleConfig)
|
||||
SETTER_GETTER_NOTIFY(encoder_name, encoder)
|
||||
SETTER_GETTER_NOTIFY(video_codec, codec)
|
||||
SETTER_GETTER_NOTIFY(bool, tenbit)
|
||||
SETTER_GETTER_NOTIFY(int, bitrate)
|
||||
SETTER_GETTER_NOTIFY(float, scale)
|
||||
SETTER_GETTER_NOTIFY(QString, application)
|
||||
SETTER_GETTER_NOTIFY(bool, hidForwarding)
|
||||
SETTER_GETTER_NOTIFY(bool, debugGui)
|
||||
SETTER_GETTER_NOTIFY(bool, steamVrLh)
|
||||
SETTER_GETTER_NOTIFY(bool, tcpOnly)
|
||||
SETTER_GETTER_NOTIFY(QString, openvr)
|
||||
private:
|
||||
nlohmann::json m_jsonSettings = nlohmann::json::object();
|
||||
nlohmann::json m_originalSettings;
|
||||
void emitAllChanged();
|
||||
|
||||
public:
|
||||
Settings(QObject * parent = nullptr) :
|
||||
@@ -149,16 +106,22 @@ public:
|
||||
Q_INVOKABLE void load(const wivrn_server * server);
|
||||
Q_INVOKABLE void save(wivrn_server * server);
|
||||
Q_INVOKABLE void restore_defaults();
|
||||
Q_INVOKABLE void set_encoder_preset(QJSValue preset);
|
||||
|
||||
QList<video_codec> allowedCodecs() const;
|
||||
bool can10bit() const;
|
||||
|
||||
bool flatpak() const;
|
||||
bool debug_gui() const;
|
||||
bool steamvr_lh() const;
|
||||
bool hid_forwarding() const;
|
||||
|
||||
static std::optional<encoder::encoder_name> encoder_id_from_string(std::string_view s);
|
||||
static std::optional<encoder::video_codec> codec_id_from_string(std::string_view s);
|
||||
static const std::string & encoder_from_id(std::optional<encoder::encoder_name> id);
|
||||
static const std::string & codec_from_id(std::optional<encoder::video_codec> id);
|
||||
static encoder_name encoder_id_from_string(std::string_view s);
|
||||
static video_codec codec_id_from_string(std::string_view s);
|
||||
static const std::string & encoder_from_id(encoder_name id);
|
||||
static const std::string & codec_from_id(video_codec id);
|
||||
|
||||
Q_SIGNALS:
|
||||
void settingsChanged();
|
||||
};
|
||||
|
||||
#undef SETTER_GETTER_NOTIFY
|
||||
|
||||
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "steam.h"
|
||||
|
||||
#include "escape_sandbox.h"
|
||||
#include "utils/flatpak.h"
|
||||
#include "utils/ini.h"
|
||||
#include "utils/strings.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <algorithm>
|
||||
#include <filesystem>
|
||||
|
||||
bool steam::snap() const
|
||||
{
|
||||
if (wivrn::is_flatpak())
|
||||
{
|
||||
auto test = escape_sandbox("test", "-f", "/snap/bin/steam");
|
||||
test->setProcessChannelMode(QProcess::MergedChannels);
|
||||
test->start();
|
||||
if (test->waitForFinished())
|
||||
return test->exitCode() == 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
return std::filesystem::exists("/snap/bin/steam");
|
||||
}
|
||||
|
||||
static QString get_flatpak_scope()
|
||||
{
|
||||
for (const QString scope: {"--user", "--system"})
|
||||
{
|
||||
auto proc = escape_sandbox("flatpak", scope, "info", "com.valvesoftware.Steam");
|
||||
proc->setProcessChannelMode(QProcess::MergedChannels);
|
||||
proc->start();
|
||||
if (proc->waitForFinished() and proc->exitCode() == 0)
|
||||
return scope;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static std::filesystem::path find_dir(const std::filesystem::path & d, const std::filesystem::path & needle)
|
||||
{
|
||||
for (auto copy = d; not copy.empty(); copy = copy.parent_path())
|
||||
{
|
||||
if (copy.filename() == needle)
|
||||
return copy;
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
static std::optional<std::string> wivrn_app_path()
|
||||
{
|
||||
if (auto app_path = wivrn::flatpak_key(wivrn::flatpak::section::instance, "app-path"))
|
||||
{
|
||||
if (app_path->starts_with("/var"))
|
||||
return find_dir(*app_path, "io.github.wivrn.wivrn");
|
||||
// assume it's in home
|
||||
return "xdg-data/flatpak/app/io.github.wivrn.wivrn";
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
bool steam::flatpakNeedPerm() const
|
||||
{
|
||||
auto scope = get_flatpak_scope();
|
||||
if (scope.isEmpty())
|
||||
return false;
|
||||
auto proc = escape_sandbox("flatpak", scope, "override", "--show", "com.valvesoftware.Steam");
|
||||
proc->setProcessChannelMode(QProcess::SeparateChannels);
|
||||
proc->start();
|
||||
if (not proc->waitForFinished())
|
||||
{
|
||||
qWarning() << "timeout trying to get Steam flatpak overrides";
|
||||
return false;
|
||||
}
|
||||
if (proc->exitCode())
|
||||
{
|
||||
qWarning() << "failed to get Steam flatpak overrides";
|
||||
return false;
|
||||
}
|
||||
std::stringstream overrides(proc->readAllStandardOutput().toStdString());
|
||||
wivrn::ini ini(overrides);
|
||||
if (auto filesystems = ini.get_optional("Context", "filesystems"))
|
||||
{
|
||||
auto items = utils::split(*filesystems, ";");
|
||||
for (auto & item: items)
|
||||
item = item.substr(0, item.find_last_of(':'));
|
||||
for (const auto & path: {"xdg-run/wivrn", "xdg-config/openxr", "xdg-config/openvr"})
|
||||
{
|
||||
if (not std::ranges::contains(items, path))
|
||||
return true;
|
||||
}
|
||||
if (auto path = wivrn_app_path())
|
||||
{
|
||||
if (not std::ranges::contains(items, path))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void steam::fixFlatpakPerm()
|
||||
{
|
||||
auto scope = get_flatpak_scope();
|
||||
if (scope.isEmpty())
|
||||
return;
|
||||
std::unique_ptr<QProcess> proc;
|
||||
if (scope == "--system")
|
||||
proc = escape_sandbox(
|
||||
"pkexec",
|
||||
"flatpak",
|
||||
"--system",
|
||||
"override",
|
||||
"--filesystem=xdg-run/wivrn:ro",
|
||||
"--filesystem=xdg-config/openxr:ro",
|
||||
"--filesystem=xdg-config/openvr:ro",
|
||||
"--filesystem=" + wivrn_app_path().value_or("xdg-run/wivrn") + ":ro",
|
||||
"com.valvesoftware.Steam");
|
||||
else
|
||||
proc = escape_sandbox(
|
||||
"flatpak",
|
||||
scope,
|
||||
"override",
|
||||
"--filesystem=xdg-run/wivrn:ro",
|
||||
"--filesystem=xdg-config/openxr:ro",
|
||||
"--filesystem=xdg-config/openvr:ro",
|
||||
"--filesystem=" + wivrn_app_path().value_or("xdg-run/wivrn") + ":ro",
|
||||
"com.valvesoftware.Steam");
|
||||
proc->setProcessChannelMode(QProcess::SeparateChannels);
|
||||
proc->start();
|
||||
if (not proc->waitForFinished())
|
||||
{
|
||||
qWarning() << "timeout trying to set Steam flatpak overrides";
|
||||
return;
|
||||
}
|
||||
if (proc->exitCode())
|
||||
{
|
||||
qWarning() << "failed to set Steam flatpak overrides";
|
||||
return;
|
||||
}
|
||||
flatpakNeedPermChanged();
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QtQml/qqmlregistration.h>
|
||||
|
||||
class steam : public QObject
|
||||
{
|
||||
public:
|
||||
Q_OBJECT
|
||||
QML_NAMED_ELEMENT(Steam)
|
||||
QML_SINGLETON
|
||||
|
||||
Q_PROPERTY(bool snap READ snap CONSTANT)
|
||||
Q_PROPERTY(bool flatpakNeedPerm READ flatpakNeedPerm NOTIFY flatpakNeedPermChanged)
|
||||
|
||||
public:
|
||||
bool snap() const;
|
||||
bool flatpakNeedPerm() const;
|
||||
|
||||
Q_INVOKABLE void fixFlatpakPerm();
|
||||
|
||||
Q_SIGNALS:
|
||||
void flatpakNeedPermChanged();
|
||||
};
|
||||
@@ -31,10 +31,6 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <unistd.h>
|
||||
|
||||
#if WIVRN_CHECK_CAPSYSNICE
|
||||
#include <sys/capability.h>
|
||||
#endif
|
||||
|
||||
#include <vulkan/vulkan.hpp>
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
@@ -45,24 +41,6 @@ static QString server_path()
|
||||
return QCoreApplication::applicationDirPath() + "/wivrn-server";
|
||||
}
|
||||
|
||||
#if WIVRN_CHECK_CAPSYSNICE
|
||||
static bool has_cap_sys_nice()
|
||||
{
|
||||
auto caps = cap_get_file(server_path().toStdString().c_str());
|
||||
|
||||
if (not caps)
|
||||
return false;
|
||||
|
||||
cap_flag_value_t value{};
|
||||
if (cap_get_flag(caps, CAP_SYS_NICE, CAP_EFFECTIVE, &value) < 0)
|
||||
return false;
|
||||
|
||||
cap_free(caps);
|
||||
|
||||
return value == CAP_SET;
|
||||
}
|
||||
#endif
|
||||
|
||||
wivrn_server::wivrn_server(QObject * parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
@@ -75,12 +53,6 @@ wivrn_server::wivrn_server(QObject * parent) :
|
||||
const QStringList services = QDBusConnection::sessionBus().interface()->registeredServiceNames();
|
||||
if (services.contains("io.github.wivrn.Server"))
|
||||
on_server_dbus_registered();
|
||||
|
||||
#if WIVRN_CHECK_CAPSYSNICE
|
||||
m_capSysNice = has_cap_sys_nice();
|
||||
#else
|
||||
m_capSysNice = true;
|
||||
#endif
|
||||
}
|
||||
|
||||
wivrn_server::~wivrn_server()
|
||||
@@ -280,6 +252,9 @@ void wivrn_server::on_server_dbus_unregistered()
|
||||
if (isHeadsetConnected())
|
||||
headsetConnectedChanged(m_headsetConnected = false);
|
||||
|
||||
if (isSessionRunning())
|
||||
sessionRunningChanged(m_sessionRunning = false);
|
||||
|
||||
if (isPairingEnabled())
|
||||
pairingEnabledChanged(m_isPairingEnabled = false);
|
||||
|
||||
@@ -287,47 +262,6 @@ void wivrn_server::on_server_dbus_unregistered()
|
||||
start_server();
|
||||
}
|
||||
|
||||
void wivrn_server::grant_cap_sys_nice()
|
||||
{
|
||||
#if WIVRN_CHECK_CAPSYSNICE
|
||||
if (not setcap_process)
|
||||
{
|
||||
setcap_process = std::make_unique<QProcess>();
|
||||
setcap_process->setProgram("pkexec");
|
||||
setcap_process->setArguments({"setcap", "CAP_SYS_NICE=+ep", server_path()});
|
||||
setcap_process->setProcessChannelMode(QProcess::MergedChannels);
|
||||
setcap_process->start();
|
||||
|
||||
QObject::connect(setcap_process.get(), &QProcess::finished, this, [this](int exit_code, QProcess::ExitStatus exit_status) {
|
||||
// Exit codes:
|
||||
// 0: setcap successful
|
||||
// 1: setcap failed
|
||||
// 126: pkexec: not authorized or authentication error
|
||||
// 127: pkexec: dismissed by user
|
||||
|
||||
if (exit_status == QProcess::NormalExit and exit_code == 0)
|
||||
{
|
||||
if (not has_cap_sys_nice())
|
||||
{
|
||||
qDebug() << "pkexec setcap returned successfully but the server does not have the CAP_SYS_NICE capability";
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << "setcap sucessful";
|
||||
capSysNiceChanged(m_capSysNice = true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
qWarning() << "setcap exited with status" << exit_status << "and code" << exit_code;
|
||||
}
|
||||
|
||||
setcap_process.release()->deleteLater();
|
||||
});
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void wivrn_server::open_server_logs()
|
||||
{
|
||||
QString path = get_server_log_dir();
|
||||
@@ -361,6 +295,11 @@ void wivrn_server::on_server_properties_changed(const QString & interface_name,
|
||||
headsetConnectedChanged(m_headsetConnected = changed_properties["HeadsetConnected"].toBool());
|
||||
}
|
||||
|
||||
if (changed_properties.contains("SessionRunning"))
|
||||
{
|
||||
sessionRunningChanged(m_sessionRunning = changed_properties["SessionRunning"].toBool());
|
||||
}
|
||||
|
||||
if (changed_properties.contains("JsonConfiguration"))
|
||||
{
|
||||
jsonConfigurationChanged(m_jsonConfiguration = changed_properties["JsonConfiguration"].toString());
|
||||
|
||||
@@ -151,7 +151,6 @@ class wivrn_server : public QObject
|
||||
std::unique_ptr<QDBusPendingCallWatcher> get_all_properties_call_watcher;
|
||||
|
||||
QProcess * server_process = nullptr;
|
||||
std::unique_ptr<QProcess> setcap_process;
|
||||
|
||||
public:
|
||||
wivrn_server(QObject * parent = nullptr);
|
||||
@@ -173,14 +172,13 @@ public:
|
||||
|
||||
// Server information
|
||||
Q_PROPERTY(Status serverStatus READ serverStatus NOTIFY serverStatusChanged)
|
||||
Q_PROPERTY(bool capSysNice READ capSysNice NOTIFY capSysNiceChanged)
|
||||
Q_PROPERTY(bool headsetConnected READ isHeadsetConnected NOTIFY headsetConnectedChanged)
|
||||
Q_PROPERTY(bool sessionRunning READ isSessionRunning NOTIFY sessionRunningChanged)
|
||||
Q_PROPERTY(QString jsonConfiguration READ jsonConfiguration WRITE setJsonConfiguration NOTIFY jsonConfigurationChanged)
|
||||
Q_PROPERTY(QString serverLogs READ serverLogs NOTIFY serverLogsChanged)
|
||||
Q_INVOKABLE void start_server();
|
||||
Q_INVOKABLE void stop_server();
|
||||
Q_INVOKABLE void restart_server();
|
||||
Q_INVOKABLE void grant_cap_sys_nice();
|
||||
Q_INVOKABLE void open_server_logs();
|
||||
|
||||
// Authentication
|
||||
@@ -222,16 +220,16 @@ public:
|
||||
return m_serverStatus;
|
||||
}
|
||||
|
||||
bool capSysNice() const
|
||||
{
|
||||
return m_capSysNice;
|
||||
}
|
||||
|
||||
bool isHeadsetConnected() const
|
||||
{
|
||||
return m_headsetConnected;
|
||||
}
|
||||
|
||||
bool isSessionRunning() const
|
||||
{
|
||||
return m_sessionRunning;
|
||||
}
|
||||
|
||||
QString jsonConfiguration() const
|
||||
{
|
||||
return m_jsonConfiguration;
|
||||
@@ -349,8 +347,8 @@ private:
|
||||
void refresh_server_properties();
|
||||
|
||||
Status m_serverStatus{Status::Stopped};
|
||||
bool m_capSysNice{};
|
||||
bool m_headsetConnected{};
|
||||
bool m_sessionRunning{};
|
||||
QString m_jsonConfiguration{};
|
||||
|
||||
QString m_pin{};
|
||||
@@ -374,8 +372,8 @@ private:
|
||||
|
||||
Q_SIGNALS:
|
||||
void serverStatusChanged(Status);
|
||||
void capSysNiceChanged(bool);
|
||||
void headsetConnectedChanged(bool);
|
||||
void sessionRunningChanged(bool);
|
||||
void jsonConfigurationChanged(QString);
|
||||
void needMonadoVulkanLayerChanged(bool);
|
||||
void pinChanged(QString);
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<method name="DisablePairing"/>
|
||||
|
||||
<property name="HeadsetConnected" type="b" access="read"/>
|
||||
<property name="SessionRunning" type="b" access="read"/>
|
||||
<property name="SteamCommand" type="s" access="read"/>
|
||||
<property name="JsonConfiguration" type="s" access="readwrite"/>
|
||||
<property name="Bitrate" type="u" access="readwrite"/>
|
||||
|
||||
+5
-4
@@ -10,6 +10,7 @@ It also requires at least one encoder:
|
||||
|
||||
* For nvenc (Nvidia), it requires cuda and nvidia driver
|
||||
* For vaapi (AMD/Intel), it requires ffmpeg with vaapi and libdrm support, as well as vaapi drivers for the GPU
|
||||
* For vulkan (Any modern GPU), it requires vulkan headers of 1.3.283 or later, as well as vulkan drivers for the GPU
|
||||
* For x264 (software encoding), it requires libx264
|
||||
|
||||
Some distributions such as Fedora don't ship h264 and h265 encoders and need specific repositories.
|
||||
@@ -75,7 +76,7 @@ sdkmanager --sdk_root="${HOME}/Android" --licenses
|
||||
|
||||
Install the correct cmake version with
|
||||
```bash
|
||||
sdkmanager --install "cmake;3.30.3"
|
||||
sdkmanager --install "cmake;3.31.5"
|
||||
```
|
||||
|
||||
#### Apk signing
|
||||
@@ -95,10 +96,10 @@ From the main directory.
|
||||
export ANDROID_HOME=~/Android
|
||||
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk/
|
||||
|
||||
./gradlew assembleStandardRelease
|
||||
./gradlew assembleRelease
|
||||
```
|
||||
|
||||
Outputs will be in `build/outputs/apk/standard/release/WiVRn-standard-release.apk`
|
||||
Outputs will be in `build/outputs/apk/release/WiVRn-release.apk`
|
||||
|
||||
#### Install apk with adb
|
||||
Before using adb you must enable usb debugging on your device:
|
||||
@@ -116,7 +117,7 @@ adb start-server
|
||||
adb devices
|
||||
|
||||
# Install apk
|
||||
adb install build/outputs/apk/standard/release/WiVRn-standard-release.apk
|
||||
adb install build/outputs/apk/release/WiVRn-release.apk
|
||||
|
||||
# When you're done, you can stop the adb server
|
||||
adb kill-server
|
||||
|
||||
+13
-1
@@ -64,7 +64,12 @@ Identifier of the encoder, one of
|
||||
Default value: first supported by both headset and encoder of `av1`, `h264`, `h265`.
|
||||
|
||||
One of `h264`, `h265`, `av1`, `raw`.
|
||||
Not all encoders support every codec, `x264` and `vulkan` only support `h264`. For `raw` codec, only `raw` encoder can be used.
|
||||
|
||||
Not all encoders support every codec:
|
||||
- `x264` encoder only supports `h264` codec
|
||||
- `vulkan` encoder supports `h264` and `h265` codecs
|
||||
- `raw` encoder only supports `raw` codec
|
||||
- `nvenc` and `vaapi` support all codecs, except `raw`
|
||||
|
||||
If `nvenc` encoder is in use, you can refer to [nvidia website](https://developer.nvidia.com/video-encode-decode-support-matrix) to make sure that your GPU supports encoding with the desired codec.
|
||||
|
||||
@@ -207,6 +212,13 @@ If unset, WiVRn will autodetect the path of such a tool as usual (see [the Steam
|
||||
|
||||
If set to an null, WiVRn will not manage the OpenVR configuration.
|
||||
|
||||
## `hid-forwarding`
|
||||
Default value: `false`
|
||||
|
||||
Only available when the `uinput` kernel module is loaded and the user has write access.
|
||||
|
||||
Enables the forwarding of keyboard and mouse input from the client to the server.
|
||||
|
||||
## `debug-gui`
|
||||
Default value: `false`
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
# Keep in sync with CMakeLists.txt monado rev
|
||||
rev = builtins.readFile ./monado-rev;
|
||||
# Nix will output the correct hash when it doesn't match
|
||||
hash = "sha256-0ALB9eLY4NAUqNOYZMwpvYnLxVpHsQDJc1er8Txdezs=";
|
||||
hash = "sha256-E/RlYvUabMKuyTpDkEV4tWpbnLlvXwORDh/VzFNZGv0=";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# kate: syntax yaml
|
||||
id: io.github.wivrn.wivrn
|
||||
runtime: org.kde.Platform
|
||||
runtime-version: '6.8'
|
||||
runtime-version: '6.9'
|
||||
sdk: org.kde.Sdk
|
||||
sdk-extensions:
|
||||
- org.freedesktop.Sdk.Extension.rust-stable
|
||||
@@ -69,6 +69,10 @@ modules:
|
||||
- type: git
|
||||
url: https://github.com/crosstool-ng/crosstool-ng.git
|
||||
tag: 70c2b00ad79a0a21a48e5a0eedc9f91c374af21d
|
||||
- type: shell
|
||||
commands:
|
||||
- sed -i 's/-O2 -g/-O2/' scripts/crosstool-NG.sh
|
||||
- sed -i 's/-g -O2/-O2/' scripts/build/cc/gcc.sh
|
||||
cleanup:
|
||||
- '*'
|
||||
|
||||
@@ -249,9 +253,13 @@ modules:
|
||||
- -Dgtk_doc=false
|
||||
- -Ddocbook_docs=disabled
|
||||
sources:
|
||||
- type: git
|
||||
url: https://github.com/GNOME/libnotify.git
|
||||
tag: 131aad01ff5f563b4863becbb6ed84dac6e75d5a
|
||||
- type: archive
|
||||
url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.7.tar.xz
|
||||
sha256: 4be15202ec4184fce1ac15997ece5530d2be32fe9573875aeb10e3b573858748
|
||||
x-checker-data:
|
||||
type: gnome
|
||||
name: libnotify
|
||||
stable-only: true
|
||||
|
||||
- name: qcoro
|
||||
buildsystem: cmake-ninja
|
||||
|
||||
+223
-151
@@ -1,65 +1,70 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the WiVRn-dashboard package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
# Álvaro De Quinta <blackcherry@danwin1210.de>, 2025.
|
||||
# SPDX-FileCopyrightText: 2025 Álvaro De Quinta <blackcherry@danwin1210.de>
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-10-20 20:55+0200\n"
|
||||
"PO-Revision-Date: 2025-10-21 01:28+0200\n"
|
||||
"POT-Creation-Date: 2025-11-19 14:16+0100\n"
|
||||
"PO-Revision-Date: 2025-11-19 20:20+0100\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish\n"
|
||||
"Language-Team: Spanish <>\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Gtranslator 49.0\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
"X-Language: es\n"
|
||||
"X-Source-Language: en\n"
|
||||
|
||||
#: dashboard/apk_installer.cpp:165
|
||||
#: dashboard/apk_installer.cpp:137
|
||||
#, kde-format
|
||||
msgid "Cannot save APK file: %1"
|
||||
msgstr "No se ha podido guardar el APK: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:171
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB / %2 MB"
|
||||
msgstr "Descargando APK: %1 MB / %2 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:167
|
||||
#: dashboard/apk_installer.cpp:173
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB"
|
||||
msgstr "Descargando APK: %1 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:176
|
||||
#: dashboard/apk_installer.cpp:182
|
||||
#, kde-format
|
||||
msgid "Download cancelled"
|
||||
msgstr "Descarga cancelada"
|
||||
|
||||
#: dashboard/apk_installer.cpp:192
|
||||
#: dashboard/apk_installer.cpp:198
|
||||
#, kde-format
|
||||
msgid "Cannot download APK: %1"
|
||||
msgstr "No se puede descargar el APK: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:215
|
||||
#: dashboard/apk_installer.cpp:221
|
||||
#, kde-format
|
||||
msgid "Installing APK"
|
||||
msgstr "Instalando APK"
|
||||
|
||||
#: dashboard/apk_installer.cpp:219
|
||||
#: dashboard/apk_installer.cpp:225
|
||||
#, kde-format
|
||||
msgid "adb failed to start: %1"
|
||||
msgstr "Error al iniciar adb: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:229
|
||||
#: dashboard/apk_installer.cpp:235
|
||||
#, kde-format
|
||||
msgid "adb exited abnormally: %1"
|
||||
msgstr "adb salió anormalmente: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:237
|
||||
#: dashboard/apk_installer.cpp:243
|
||||
#, kde-format
|
||||
msgid "The 'adb install' command failed: exit code %1"
|
||||
msgstr "El comando 'adb install' falló: código de salida %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:242
|
||||
#: dashboard/apk_installer.cpp:248
|
||||
#, kde-format
|
||||
msgid "Installation successful"
|
||||
msgstr "Instalación completada con éxito"
|
||||
@@ -85,6 +90,12 @@ msgstr "Comprobando la última versión..."
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "No hay ningún APK disponible para esta versión"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:309
|
||||
#: dashboard/qml/Main.qml:394 dashboard/qml/WizardPage.qml:211
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
msgstr "ADB no está instalado"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:47
|
||||
#, kde-format
|
||||
msgid "Connect a headset and make sure developer mode is enabled"
|
||||
@@ -94,13 +105,13 @@ msgstr ""
|
||||
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Follow the instructions in the <a href=\"https://github.com/WiVRn/WiVRn/blob/"
|
||||
"master/docs/building.md#client-headset\">documentation</a> to build your own "
|
||||
"client."
|
||||
"Follow the instructions in the <a "
|
||||
"href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentation</a> "
|
||||
"to build your own client."
|
||||
msgstr ""
|
||||
"Sigue las instrucciones en la <a href=\"https://github.com/WiVRn/WiVRn/blob/"
|
||||
"master/docs/building.md#client-headset\">documentación</a> para compilar tu "
|
||||
"propio cliente."
|
||||
"Sigue las instrucciones en la <a "
|
||||
"href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentación</a> "
|
||||
"para compilar tu propio cliente."
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:67
|
||||
@@ -129,7 +140,7 @@ msgstr "Reinstalar WiVRn"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "Instalar WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:375
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:399
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "Visores"
|
||||
@@ -226,33 +237,28 @@ msgstr "Emparejar un nuevo visor"
|
||||
msgid "Headset statistics"
|
||||
msgstr "Estadísticas del visor"
|
||||
|
||||
#: dashboard/qml/Main.qml:129
|
||||
#: dashboard/qml/Main.qml:108
|
||||
#, kde-format
|
||||
msgid "The server does not have CAP_SYS_NICE capabilities"
|
||||
msgstr "El servidor no tiene capacidades CAP_SYS_NICE"
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "El servicio Avahi no está instalado"
|
||||
|
||||
#: dashboard/qml/Main.qml:136 dashboard/qml/Main.qml:150
|
||||
#: dashboard/qml/Main.qml:116
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "El servicio Avahi no está iniciado"
|
||||
|
||||
#: dashboard/qml/Main.qml:123 dashboard/qml/Main.qml:137
|
||||
#: dashboard/qml/Main.qml:189
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "Arreglarlo"
|
||||
|
||||
#: dashboard/qml/Main.qml:144
|
||||
#: dashboard/qml/Main.qml:131
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "El firewall podría no permitir el puerto 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:159
|
||||
#, kde-format
|
||||
msgid "The CAP_SYS_NICE capability will be used when the server is restarted"
|
||||
msgstr "La capacidad CAP_SYS_NICE se utilizará cuando el servidor se reinicie"
|
||||
|
||||
#: dashboard/qml/Main.qml:165
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "Reiniciar ahora"
|
||||
|
||||
#: dashboard/qml/Main.qml:176
|
||||
#: dashboard/qml/Main.qml:145
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
@@ -260,12 +266,12 @@ msgstr ""
|
||||
"Las GPU NVIDIA requieren al menos la versión 565.77 del controlador, la "
|
||||
"versión actual es %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:182
|
||||
#: dashboard/qml/Main.qml:151
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "Más información"
|
||||
|
||||
#: dashboard/qml/Main.qml:190
|
||||
#: dashboard/qml/Main.qml:159
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
@@ -274,7 +280,7 @@ msgstr ""
|
||||
"Usa el controlador Mesa (radv) para las GPU AMD\n"
|
||||
"La codificación por hardware con vaapi no funciona con AMDVLK y AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:198
|
||||
#: dashboard/qml/Main.qml:167
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -284,76 +290,99 @@ msgstr ""
|
||||
"en VR.\n"
|
||||
"Instala xrizer o OpenComposite."
|
||||
|
||||
#: dashboard/qml/Main.qml:207
|
||||
#: dashboard/qml/Main.qml:175
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr ""
|
||||
"Steam está instalado mediante snap. Los Snaps no son compatibles con WiVRn."
|
||||
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr ""
|
||||
"Steam está instalado con flatpak, pero no tiene los suficientes permisos."
|
||||
|
||||
#: dashboard/qml/Main.qml:198
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "Reinicia el servidor para que los cambios surtan efecto"
|
||||
|
||||
#: dashboard/qml/Main.qml:204
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "Reiniciar ahora"
|
||||
|
||||
#: dashboard/qml/Main.qml:229
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "El servidor no pudo iniciar"
|
||||
|
||||
#: dashboard/qml/Main.qml:213 dashboard/qml/TroubleshootPage.qml:85
|
||||
#: dashboard/qml/Main.qml:235 dashboard/qml/TroubleshootPage.qml:85
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "Abrir registros del servidor"
|
||||
|
||||
#: dashboard/qml/Main.qml:242
|
||||
#: dashboard/qml/Main.qml:264
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "En ejecución"
|
||||
|
||||
#: dashboard/qml/Main.qml:257
|
||||
#: dashboard/qml/Main.qml:279
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "Emparejando"
|
||||
|
||||
#: dashboard/qml/Main.qml:270
|
||||
#: dashboard/qml/Main.qml:292
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "PIN: %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:278 dashboard/qml/WizardPage.qml:374
|
||||
#: dashboard/qml/Main.qml:300 dashboard/qml/WizardPage.qml:374
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Conectar por USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:289
|
||||
#: dashboard/qml/Main.qml:311
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr ""
|
||||
"No hay ningún visor conectado o tu visor no está en modo desarrollador"
|
||||
msgstr "No hay ningún visor conectado o tu visor no está en modo desarrollador"
|
||||
|
||||
#: dashboard/qml/Main.qml:297
|
||||
#: dashboard/qml/Main.qml:319
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: dashboard/qml/Main.qml:314
|
||||
#: dashboard/qml/Main.qml:336
|
||||
#, kde-format
|
||||
msgctxt "automatically started application"
|
||||
msgid "Application"
|
||||
msgstr "Aplicación"
|
||||
|
||||
#: dashboard/qml/Main.qml:335
|
||||
#: dashboard/qml/Main.qml:357
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Información de Steam"
|
||||
|
||||
#: dashboard/qml/Main.qml:354
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Asistente"
|
||||
|
||||
#: dashboard/qml/Main.qml:361
|
||||
#: dashboard/qml/Main.qml:385
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Instalar aplicación"
|
||||
|
||||
#: dashboard/qml/Main.qml:382 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:406 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "Ajustes"
|
||||
|
||||
#: dashboard/qml/Main.qml:389 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:413 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "Solucionar problemas"
|
||||
@@ -370,29 +399,29 @@ msgctxt "choose a custom application to start"
|
||||
msgid "Custom"
|
||||
msgstr "Personalizado"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:76
|
||||
#: dashboard/qml/SelectGame.qml:72
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the application to start"
|
||||
msgid "Browse"
|
||||
msgstr "Explorar"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:41
|
||||
#: dashboard/qml/SettingsPage.qml:31
|
||||
#, kde-format
|
||||
msgctxt "automatic foveation setup"
|
||||
msgid "Manual foveation"
|
||||
msgstr "Foveación manual"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:47
|
||||
#: dashboard/qml/SettingsPage.qml:37
|
||||
#, kde-format
|
||||
msgid "Foveation strength:"
|
||||
msgstr "Fuerza de foveación:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:63
|
||||
#: dashboard/qml/SettingsPage.qml:53
|
||||
#, kde-format
|
||||
msgid "%1 %"
|
||||
msgstr "%1 %"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:69
|
||||
#: dashboard/qml/SettingsPage.qml:59
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A stronger foveation makes the image sharper in the center than in the "
|
||||
@@ -413,157 +442,152 @@ msgstr ""
|
||||
"Los valores recomendados están entre 20% y 50% para visores sin seguimiento "
|
||||
"ocular y entre 50% y 70% para visores con seguimiento ocular."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:75
|
||||
#: dashboard/qml/SettingsPage.qml:65
|
||||
#, kde-format
|
||||
msgctxt "weaker foveation"
|
||||
msgid "Weaker"
|
||||
msgstr "Más débil"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:86
|
||||
#: dashboard/qml/SettingsPage.qml:76
|
||||
#, kde-format
|
||||
msgctxt "stronger foveation"
|
||||
msgid "Stronger"
|
||||
msgstr "Más fuerte"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:96
|
||||
#: dashboard/qml/SettingsPage.qml:86
|
||||
#, kde-format
|
||||
msgid "Bitrate:"
|
||||
msgstr "Tasa de bits:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:100 dashboard/qml/SettingsPage.qml:102
|
||||
#: dashboard/qml/SettingsPage.qml:90 dashboard/qml/SettingsPage.qml:92
|
||||
#, kde-format
|
||||
msgctxt "bitrate"
|
||||
msgid "%1 Mbit/s"
|
||||
msgstr "%1 Mbit/s"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:112
|
||||
#: dashboard/qml/SettingsPage.qml:104
|
||||
#, kde-format
|
||||
msgid "Encoder layout:"
|
||||
msgstr "Configuración del codificador:"
|
||||
msgid "The current encoder configuration is not supported"
|
||||
msgstr "La configuración actual del codificador no está soportada"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:115
|
||||
#: dashboard/qml/SettingsPage.qml:109
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Automatic"
|
||||
msgstr "Automático"
|
||||
msgid "Reset"
|
||||
msgstr "Restablecer"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:119
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Manual"
|
||||
msgstr "Manual"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:123
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Default preset"
|
||||
msgstr "Preajuste predeterminado"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:140
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Low latency preset"
|
||||
msgstr "Preajuste de baja latencia"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:159
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Safe preset"
|
||||
msgstr "Preajuste seguro"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:182
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
|
||||
"Drag an edge to resize or remove encoders."
|
||||
msgstr ""
|
||||
"Para agregar un nuevo codificador, divide un codificador existente haciendo "
|
||||
"clic cerca de un borde.\n"
|
||||
"Arrastra un borde para cambiar el tamaño o eliminar codificadores."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:209
|
||||
#: dashboard/qml/SettingsPage.qml:116
|
||||
#, kde-format
|
||||
msgid "Encoder:"
|
||||
msgstr "Codificador"
|
||||
msgstr "Codificador:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:218
|
||||
#: dashboard/qml/SettingsPage.qml:122
|
||||
#, kde-format
|
||||
msgctxt "automatic encoder setup"
|
||||
msgid "Auto"
|
||||
msgstr "Automático"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:223
|
||||
#: dashboard/qml/SettingsPage.qml:126
|
||||
#, kde-format
|
||||
msgid "nvenc (NVIDIA GPUs)"
|
||||
msgstr "nvenc (NVIDIA GPUs)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:228
|
||||
#: dashboard/qml/SettingsPage.qml:130
|
||||
#, kde-format
|
||||
msgid "vaapi (AMD and Intel GPUs)"
|
||||
msgstr "vaapi (AMD y Intel GPUs)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:233
|
||||
#: dashboard/qml/SettingsPage.qml:134
|
||||
#, kde-format
|
||||
msgid "Vulkan (Any modern GPU)"
|
||||
msgstr "Vulkan (Cualquier GPU moderna)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:138
|
||||
#, kde-format
|
||||
msgid "x264 (software encoding)"
|
||||
msgstr "x264 (codificación por software)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:238
|
||||
#, kde-format
|
||||
msgid "Vulkan (Vulkan Video)"
|
||||
msgstr "Vulkan (Vulkan Video)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:261
|
||||
#: dashboard/qml/SettingsPage.qml:155
|
||||
#, kde-format
|
||||
msgid "\"Auto\" will use hardware acceleration if it is available"
|
||||
msgstr "\"Auto\" utilizará aceleración por hardware si está disponible"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:267
|
||||
#: dashboard/qml/SettingsPage.qml:160
|
||||
#, kde-format
|
||||
msgid "Codec:"
|
||||
msgstr "Códec"
|
||||
msgstr "Códec:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:274
|
||||
#: dashboard/qml/SettingsPage.qml:166
|
||||
#, kde-format
|
||||
msgctxt "automatic codec setup"
|
||||
msgid "Auto"
|
||||
msgstr "Automático"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:278
|
||||
#: dashboard/qml/SettingsPage.qml:170
|
||||
#, kde-format
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:282
|
||||
#: dashboard/qml/SettingsPage.qml:174
|
||||
#, kde-format
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:286
|
||||
#: dashboard/qml/SettingsPage.qml:178
|
||||
#, kde-format
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:308
|
||||
#: dashboard/qml/SettingsPage.qml:206
|
||||
#, kde-format
|
||||
msgid "10 bits"
|
||||
msgstr "10 bits"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:211
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"10-bit encoding improves image quality but is not supported by all codecs "
|
||||
"and hardware"
|
||||
msgstr ""
|
||||
"La codificación de 10-bit mejora la calidad de imagen pero no está soportada "
|
||||
"por todos los codecs ni hardware"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:221
|
||||
#, kde-format
|
||||
msgid "Advanced options"
|
||||
msgstr "Opciones avanzadas"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:314
|
||||
#: dashboard/qml/SettingsPage.qml:227
|
||||
#, kde-format
|
||||
msgid "Check system configuration on start"
|
||||
msgstr "Comprobar configuración del sistema al iniciar"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:318
|
||||
#: dashboard/qml/SettingsPage.qml:233
|
||||
#, kde-format
|
||||
msgid "Forward keyboard & mouse from headset"
|
||||
msgstr "Pasar el teclado y raton del visor"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:236
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Keyboard and mouse connected to the client will act as if connected to the "
|
||||
"server. Client OS may reserve specific keys and combinations, which cannot "
|
||||
"be forwarded."
|
||||
msgstr ""
|
||||
"El teclado y ratón conectados al cliente actuarán como si se hubiesen "
|
||||
"conectado al servidor. El SO del cliente podria reservarse ciertas teclas y "
|
||||
"combinaciones, los cuales no podrán ser enviados."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:241
|
||||
#, kde-format
|
||||
msgid "Enable debug window"
|
||||
msgstr "Habilitar ventana de depuración"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:325
|
||||
#: dashboard/qml/SettingsPage.qml:248
|
||||
#, kde-format
|
||||
msgid "Enable SteamVR tracked devices support"
|
||||
msgstr "Habilitar soporte para dispositivos de seguimiento a través de SteamVR"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:328
|
||||
#: dashboard/qml/SettingsPage.qml:251
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Allows the use of lighthouse-based controllers and trackers.\n"
|
||||
@@ -577,44 +601,44 @@ msgstr ""
|
||||
"Los dispositivos deben de estar encendidos antes de conectarte a WiVRn.\n"
|
||||
"Una herramienta externa como motoc será necesaria para la calibración."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:336
|
||||
#: dashboard/qml/SettingsPage.qml:259
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "Ruta de adb personalizada"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:347
|
||||
#: dashboard/qml/SettingsPage.qml:270
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "Ruta de adb:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:356
|
||||
#: dashboard/qml/SettingsPage.qml:279
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the adb binary"
|
||||
msgid "Browse"
|
||||
msgstr "Explorar"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:366
|
||||
#: dashboard/qml/SettingsPage.qml:289
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "Por defecto"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:380
|
||||
#: dashboard/qml/SettingsPage.qml:303
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "Personalizado"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:385
|
||||
#: dashboard/qml/SettingsPage.qml:308
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "Deshabilitado"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:393
|
||||
#: dashboard/qml/SettingsPage.qml:316
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "Librería de compatibilidad para OpenVR:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:419
|
||||
#: dashboard/qml/SettingsPage.qml:342
|
||||
#, kde-format
|
||||
msgid "Library path, excluding bin/linux64/vrclient.so"
|
||||
msgstr "Ruta de librería, excluyendo bin/linux64/vrclient.so"
|
||||
@@ -697,9 +721,9 @@ msgstr "Tengo un error de \"Servidor WiVRn incompatible\" en mi visor"
|
||||
#: dashboard/qml/TroubleshootPage.qml:37
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"<p>The version of the headset app and the server on your computer must match."
|
||||
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
|
||||
"server version is <b>%1</b></li></ul>"
|
||||
"<p>The version of the headset app and the server on your computer must "
|
||||
"match.</p><ul><li>The headset app version is in the \"About\" "
|
||||
"page</li><li>The server version is <b>%1</b></li></ul>"
|
||||
msgstr ""
|
||||
"<p>La versión de la aplicación del visor y la del servidor en tu computadora "
|
||||
"deben coincidir.</p><ul><li>La versión de la aplicación del visor está en la "
|
||||
@@ -850,11 +874,6 @@ msgstr "O"
|
||||
msgid "Install over USB"
|
||||
msgstr "Instalar por USB"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:211
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
msgstr "ADB no está instalado"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:219
|
||||
#, kde-format
|
||||
msgid ""
|
||||
@@ -892,7 +911,7 @@ msgid ""
|
||||
"running."
|
||||
msgstr ""
|
||||
"WiVRn sustituye completamente a SteamVR, no deberías iniciar SteamVR "
|
||||
"mientras WiVRn esté en ejecución"
|
||||
"mientras WiVRn esté en ejecución."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:359
|
||||
#, kde-format
|
||||
@@ -961,16 +980,69 @@ msgstr "Finalizar"
|
||||
msgid "Finished"
|
||||
msgstr "Terminado"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:594
|
||||
#: dashboard/wivrn_server.cpp:533
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:595
|
||||
#: dashboard/wivrn_server.cpp:534
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "The server does not have CAP_SYS_NICE capabilities"
|
||||
#~ msgstr "El servidor no tiene capacidades CAP_SYS_NICE"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid ""
|
||||
#~ "The CAP_SYS_NICE capability will be used when the server is restarted"
|
||||
#~ msgstr ""
|
||||
#~ "La capacidad CAP_SYS_NICE se utilizará cuando el servidor se reinicie"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "Vulkan (Vulkan Video)"
|
||||
#~ msgstr "Vulkan (Vulkan Video)"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "Encoder layout:"
|
||||
#~ msgstr "Configuración del codificador:"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Automatic"
|
||||
#~ msgstr "Automático"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Manual"
|
||||
#~ msgstr "Manual"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Default preset"
|
||||
#~ msgstr "Preajuste predeterminado"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Low latency preset"
|
||||
#~ msgstr "Preajuste de baja latencia"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Safe preset"
|
||||
#~ msgstr "Preajuste seguro"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid ""
|
||||
#~ "To add a new encoder, split an existing encoder by clicking near an "
|
||||
#~ "edge.\n"
|
||||
#~ "Drag an edge to resize or remove encoders."
|
||||
#~ msgstr ""
|
||||
#~ "Para agregar un nuevo codificador, divide un codificador existente "
|
||||
#~ "haciendo clic cerca de un borde.\n"
|
||||
#~ "Arrastra un borde para cambiar el tamaño o eliminar codificadores."
|
||||
|
||||
#, kde-format
|
||||
#~ msgid ""
|
||||
#~ "If the server is not visible or the connection fails, check that port "
|
||||
|
||||
+184
-152
@@ -1,22 +1,24 @@
|
||||
#
|
||||
# Álvaro De Quinta <blackcherry@danwin1210.de>, 2025.
|
||||
# SPDX-FileCopyrightText: 2025 Álvaro De Quinta <blackcherry@danwin1210.de>
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-10-25 10:30+0200\n"
|
||||
"PO-Revision-Date: 2025-10-25 18:59+0200\n"
|
||||
"POT-Creation-Date: 2025-12-02 19:57+0100\n"
|
||||
"PO-Revision-Date: 2025-11-19 20:23+0100\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish\n"
|
||||
"Language-Team: Spanish <>\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Gtranslator 49.0\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
"X-Language: es\n"
|
||||
"X-Source-Language: en\n"
|
||||
|
||||
#: client/scene.cpp:72
|
||||
#: client/scene.cpp:73
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Formato de swapchain no compatible"
|
||||
|
||||
@@ -31,48 +33,48 @@ msgstr "Connectado a {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:136
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr "Inicia una aplicación en el servidor para empezar la retransmisión"
|
||||
msgstr "Inicia una aplicación en el servidor para empezar la retransmisión."
|
||||
|
||||
#: client/scenes/app_launcher.cpp:146
|
||||
msgid "Start an application on your computer or select one to start streaming."
|
||||
msgstr ""
|
||||
"Inicia una aplicación en tu ordenador o selecciona una para empezar la "
|
||||
"retransmisión"
|
||||
"retransmisión."
|
||||
|
||||
#: client/scenes/app_launcher.cpp:148
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr ""
|
||||
"Inicia una aplicación en {} o selecciona una para empezar la retransmisión"
|
||||
"Inicia una aplicación en {} o selecciona una para empezar la retransmisión."
|
||||
|
||||
#: client/scenes/lobby.cpp:205
|
||||
#: client/scenes/lobby.cpp:230
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "Servidor WiVRn incompatible: no hay campo de protocolo en TXT"
|
||||
|
||||
#: client/scenes/lobby.cpp:208
|
||||
#: client/scenes/lobby.cpp:233
|
||||
#, c++-format
|
||||
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
|
||||
msgstr "Protocolo del servidor WiVRn incompatible (cliente: {}, servidor: {})"
|
||||
|
||||
#: client/scenes/lobby.cpp:223
|
||||
#: client/scenes/lobby.cpp:248
|
||||
#, c++-format
|
||||
msgid "Cannot resolve hostname: {}"
|
||||
msgstr "No se puede resolver el nombre de host: {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:310 client/scenes/lobby.cpp:316
|
||||
#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341
|
||||
#, c++-format
|
||||
msgid "Cannot connect to {} ({}): {}"
|
||||
msgstr "No se puede conectar a {} ({}): {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:399
|
||||
#: client/scenes/lobby.cpp:424
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Esperando conexión"
|
||||
|
||||
#: client/scenes/lobby.cpp:998
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
msgid "Passthrough"
|
||||
msgstr "Exterior"
|
||||
|
||||
#: client/scenes/lobby.cpp:1010
|
||||
#: client/scenes/lobby.cpp:1322
|
||||
msgid "Default environment"
|
||||
msgstr "Entorno por defecto"
|
||||
|
||||
@@ -92,13 +94,13 @@ msgid "Disabled"
|
||||
msgstr "Deshabilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:112 client/scenes/lobby_gui.cpp:256
|
||||
#: client/scenes/stream_gui.cpp:893
|
||||
#: client/scenes/stream_gui.cpp:967
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:132 client/scenes/lobby_gui_customize.cpp:618
|
||||
#: client/scenes/lobby_gui_customize.cpp:707
|
||||
#: client/scenes/lobby_gui_customize.cpp:763 client/scenes/stream_gui.cpp:889
|
||||
#: client/scenes/lobby_gui.cpp:132 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:963
|
||||
msgid "Close"
|
||||
msgstr "Cerrar"
|
||||
|
||||
@@ -135,8 +137,8 @@ msgstr "Puerto"
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:317 client/scenes/lobby_gui_customize.cpp:520
|
||||
#: client/scenes/stream_gui.cpp:857
|
||||
#: client/scenes/lobby_gui.cpp:317 client/scenes/lobby_gui_customize.cpp:651
|
||||
#: client/scenes/stream_gui.cpp:920
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
@@ -181,16 +183,17 @@ msgstr "Idioma"
|
||||
msgid "System language"
|
||||
msgstr "Idioma del sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:577
|
||||
#: client/scenes/lobby_gui.cpp:577 client/scenes/stream_gui.cpp:415
|
||||
msgid "Refresh rate"
|
||||
msgstr "Frecuencia de actualización"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:577 client/scenes/lobby_gui.cpp:579
|
||||
#: client/scenes/stream_gui.cpp:415 client/scenes/stream_gui.cpp:417
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automática"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:586
|
||||
#: client/scenes/lobby_gui.cpp:586 client/scenes/stream_gui.cpp:425
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -199,7 +202,7 @@ msgstr ""
|
||||
"aplicación.\n"
|
||||
"Puede causar parpadeos cuando ocurre un cambio."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:603
|
||||
#: client/scenes/lobby_gui.cpp:603 client/scenes/stream_gui.cpp:443
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Tasa mínima de refresco"
|
||||
|
||||
@@ -222,42 +225,52 @@ msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "La resolución mayor que {}x{} podría no ser compatible con el visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:672
|
||||
msgid "High power mode"
|
||||
msgstr "Modo de alto rendimiento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Incrementa el uso de energía para permitir una mayor resolución y frecuencia "
|
||||
"de refresco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:681
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activar micrófono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:681
|
||||
#: client/scenes/lobby_gui.cpp:690
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Entrada de audio sin procesar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:687
|
||||
#: client/scenes/lobby_gui.cpp:696
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr ""
|
||||
"Forzar la deshabilitación de filtros de audio, asi como la cancelación de "
|
||||
"ruido"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:694
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Activar seguimiento de manos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700 client/scenes/lobby_gui.cpp:712
|
||||
#: client/scenes/lobby_gui.cpp:724 client/scenes/lobby_gui.cpp:741
|
||||
#: client/scenes/lobby_gui_customize.cpp:505
|
||||
#: client/scenes/lobby_gui.cpp:709 client/scenes/lobby_gui.cpp:721
|
||||
#: client/scenes/lobby_gui.cpp:733 client/scenes/lobby_gui.cpp:750
|
||||
#: client/scenes/lobby_gui_customize.cpp:636
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Esta función no es compatible con tu visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:706
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activar seguimiento ocular"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:718
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activar seguimiento facial"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:732
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Habilitar seguimiento corporal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:746
|
||||
#: client/scenes/lobby_gui.cpp:755
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -268,11 +281,11 @@ msgstr ""
|
||||
"si no el seguimiento corporal será medido por la posición de los controles y "
|
||||
"el visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
#: client/scenes/lobby_gui.cpp:765
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Habilitar seguimiento de cintura para abajo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:762
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -283,11 +296,11 @@ msgstr ""
|
||||
"Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de "
|
||||
"movimiento de Quest"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:765
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Habilitar seguimiento de cintura"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -295,11 +308,11 @@ msgstr ""
|
||||
"Solo es funcional si tiene habilitado el seguimiento de cintura para abajo.\n"
|
||||
"Puede ser necesario si está usando otro metodo para seguir la cintura"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:779
|
||||
#: client/scenes/lobby_gui.cpp:788
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Habilitar ventana mientras se juega"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:782
|
||||
#: client/scenes/lobby_gui.cpp:791
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -307,15 +320,15 @@ msgstr ""
|
||||
"Permite que la ventana de configuración se muestre mientras se juega.\n"
|
||||
"Si se habilita, la ventana se activará al presionar ambos joysticks."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:796 client/scenes/stream_gui.cpp:394
|
||||
#: client/scenes/lobby_gui.cpp:805 client/scenes/stream_gui.cpp:463
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-procesamiento de OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:800 client/scenes/stream_gui.cpp:398
|
||||
#: client/scenes/lobby_gui.cpp:809 client/scenes/stream_gui.cpp:467
|
||||
msgid "Supersampling"
|
||||
msgstr "Sobremuestreo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/stream_gui.cpp:419
|
||||
#: client/scenes/lobby_gui.cpp:829 client/scenes/stream_gui.cpp:488
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -324,11 +337,11 @@ msgstr ""
|
||||
"Útil cuando la resolución de entrada es alta comparada con la pantalla del "
|
||||
"visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:825 client/scenes/stream_gui.cpp:424
|
||||
#: client/scenes/lobby_gui.cpp:834 client/scenes/stream_gui.cpp:493
|
||||
msgid "Sharpening"
|
||||
msgstr "Nitidez"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:845 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:854 client/scenes/stream_gui.cpp:514
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -337,129 +350,129 @@ msgstr ""
|
||||
"Útil cuando la resolución de entrada es baja comparada con la pantalla del "
|
||||
"visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1029 client/scenes/lobby_gui.cpp:1037
|
||||
#: client/scenes/stream_gui.cpp:171 client/scenes/stream_gui.cpp:373
|
||||
#: client/scenes/lobby_gui.cpp:1038 client/scenes/lobby_gui.cpp:1046
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:374
|
||||
msgid "CPU time"
|
||||
msgstr "Tiempo de CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1033
|
||||
#: client/scenes/lobby_gui.cpp:1042
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tiempo de CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1043 client/scenes/lobby_gui.cpp:1051
|
||||
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:374
|
||||
#: client/scenes/lobby_gui.cpp:1052 client/scenes/lobby_gui.cpp:1060
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:375
|
||||
msgid "GPU time"
|
||||
msgstr "Tiempo de GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1047
|
||||
#: client/scenes/lobby_gui.cpp:1056
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tiempo de GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1111
|
||||
#: client/scenes/lobby_gui.cpp:1120
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "¿Habilitar micrófono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1116
|
||||
#: client/scenes/lobby_gui.cpp:1125
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "¿Habilitar seguimiento ocular?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1121
|
||||
#: client/scenes/lobby_gui.cpp:1130
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "¿Habilitar seguimiento facial?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1126
|
||||
#: client/scenes/lobby_gui.cpp:1135
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "¿Habilitar seguimiento corporal?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1134
|
||||
#: client/scenes/lobby_gui.cpp:1143
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenido a WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1158
|
||||
#: client/scenes/lobby_gui.cpp:1169
|
||||
msgid "Yes"
|
||||
msgstr "Sí"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1165
|
||||
#: client/scenes/lobby_gui.cpp:1176
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1184 client/scenes/lobby_gui.cpp:1825
|
||||
#: client/scenes/lobby_gui.cpp:1195 client/scenes/lobby_gui.cpp:1836
|
||||
msgid "Licenses"
|
||||
msgstr "Licencias"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1459
|
||||
#: client/scenes/lobby_gui.cpp:1470
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Micrófono activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1460
|
||||
#: client/scenes/lobby_gui.cpp:1471
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Micrófono desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1469
|
||||
#: client/scenes/lobby_gui.cpp:1480
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Seguimiento de manos activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1470
|
||||
#: client/scenes/lobby_gui.cpp:1481
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Seguimiento de manos desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1479
|
||||
#: client/scenes/lobby_gui.cpp:1490
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Seguimiento ocular activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1480
|
||||
#: client/scenes/lobby_gui.cpp:1491
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Seguimiento ocular desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1490
|
||||
#: client/scenes/lobby_gui.cpp:1501
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Seguimiento facial activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1491
|
||||
#: client/scenes/lobby_gui.cpp:1502
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Seguimiento facial desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1501
|
||||
#: client/scenes/lobby_gui.cpp:1512
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Seguimiento corporal está habilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1502
|
||||
#: client/scenes/lobby_gui.cpp:1513
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Seguimiento corporal está deshabilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1518
|
||||
#: client/scenes/lobby_gui.cpp:1529
|
||||
msgid "Add server"
|
||||
msgstr "Agregar servidor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1804
|
||||
#: client/scenes/lobby_gui.cpp:1815
|
||||
msgid "Server list"
|
||||
msgstr "Lista de servidores"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1807 client/scenes/stream_gui.cpp:874
|
||||
#: client/scenes/lobby_gui.cpp:1818 client/scenes/stream_gui.cpp:948
|
||||
msgid "Settings"
|
||||
msgstr "Configuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1810
|
||||
#: client/scenes/lobby_gui.cpp:1821
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-procesamiento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1813
|
||||
#: client/scenes/lobby_gui.cpp:1824
|
||||
msgid "Customize"
|
||||
msgstr "Personalizar"
|
||||
msgstr "Personalización"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1817
|
||||
#: client/scenes/lobby_gui.cpp:1828
|
||||
msgid "Debug"
|
||||
msgstr "Depuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1822
|
||||
#: client/scenes/lobby_gui.cpp:1833
|
||||
msgid "About"
|
||||
msgstr "Acerca de"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1828
|
||||
#: client/scenes/lobby_gui.cpp:1839
|
||||
msgid "Exit"
|
||||
msgstr "Salir"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1845
|
||||
#: client/scenes/lobby_gui.cpp:1856
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -467,30 +480,51 @@ msgstr ""
|
||||
"Pulsa el botón de agarre o pon tu palma hacia arriba\n"
|
||||
"para mover la ventana principal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1847
|
||||
#: client/scenes/lobby_gui.cpp:1858
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Pulsa el botón de agarre para mover la ventana principal"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:328
|
||||
#: client/scenes/lobby_gui_customize.cpp:208
|
||||
msgid "Locally loaded environment"
|
||||
msgstr "Entorno local cargado"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:221
|
||||
#, c++-format
|
||||
msgid "Locally loaded environment ({})"
|
||||
msgstr "Entorno local ({}) cargado"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:296
|
||||
#, c++-format
|
||||
msgid "Cannot load local environment: {}"
|
||||
msgstr "No se ha podido cargar el entorno local: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:329
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "No se ha podido cargar la lista del entorno: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:459
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "Autor: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:332
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "Tamaño: {:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:412
|
||||
#: client/scenes/lobby_gui_customize.cpp:543
|
||||
msgid "Delete this model"
|
||||
msgstr "Borrar este modelo"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:448
|
||||
#: client/scenes/lobby_gui_customize.cpp:579
|
||||
#: client/scenes/lobby_gui_customize.cpp:785
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "Error HTTP {} mientras se descargaba {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:456
|
||||
#: client/scenes/lobby_gui_customize.cpp:587
|
||||
#: client/scenes/lobby_gui_customize.cpp:793
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
@@ -499,183 +533,169 @@ msgstr ""
|
||||
"Error de Curl mientras se descargaba {}\n"
|
||||
"{}: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:517
|
||||
#, c-format
|
||||
msgid "Really delete %s?"
|
||||
msgstr "Seguro que quiere borrar %s?"
|
||||
#: client/scenes/lobby_gui_customize.cpp:648
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "Seguro que quiere borrar {}?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:521
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
msgid "Delete"
|
||||
msgstr "Borrar"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:602
|
||||
#: client/scenes/lobby_gui_customize.cpp:733
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "No se puede cargar el entorno: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:610
|
||||
#: client/scenes/lobby_gui_customize.cpp:741
|
||||
msgid "Loading environment"
|
||||
msgstr "Cargando entorno"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:654
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading index.json"
|
||||
msgstr "Error HTTP {} mientras se descargaba index.json"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:661
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error {} when downloading index.json\n"
|
||||
"{}"
|
||||
msgstr ""
|
||||
"Error de Curl {} mientras se descargaba index.json\n"
|
||||
"{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:687
|
||||
#: client/scenes/lobby_gui_customize.cpp:820
|
||||
msgid "Download more environments"
|
||||
msgstr "Descargar más entornos"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:695
|
||||
#: client/scenes/lobby_gui_customize.cpp:828
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Abrir modelo glTF local"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:173
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
msgid "Reproject"
|
||||
msgstr "Reproyectar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Blit"
|
||||
msgstr "Copia"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "Red"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
|
||||
msgid "Download"
|
||||
msgstr "Descargar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:373
|
||||
msgid "Upload"
|
||||
msgstr "Subir"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:246
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "Decodificador {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "Tiempos [ms]"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:318
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "Codificar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "Enviar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "Recibir"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "Decodificar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "Copiado"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "Mostrado"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "Previsto"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:344
|
||||
#: client/scenes/stream_gui.cpp:345
|
||||
#, c++-format
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "Latencia estimada de movimiento a fotones: {}ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:351
|
||||
#: client/scenes/stream_gui.cpp:352
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr "Pulsa el botón de agarre para mover la ventana"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:817
|
||||
#: client/scenes/stream_gui.cpp:354 client/scenes/stream_gui.cpp:880
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "Pulsa ambos joysticks para mostrar la ventana de WiVRn"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:375
|
||||
#: client/scenes/stream_gui.cpp:376
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "Latencia entre el movimiento y la imagen mostrada"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:452
|
||||
#: client/scenes/stream_gui.cpp:521
|
||||
msgid "Foveation center override"
|
||||
msgstr "Reajustar el centro de la fóvea"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:455
|
||||
#: client/scenes/stream_gui.cpp:524
|
||||
msgid "Enable"
|
||||
msgstr "Habilitar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:463 client/scenes/stream_gui.cpp:510
|
||||
#: client/scenes/stream_gui.cpp:532 client/scenes/stream_gui.cpp:579
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "Altura {:.1f} °"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:464 client/scenes/stream_gui.cpp:511
|
||||
#: client/scenes/stream_gui.cpp:533 client/scenes/stream_gui.cpp:580
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "Distancia {:.2f} m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:465
|
||||
#: client/scenes/stream_gui.cpp:534
|
||||
msgid "Default"
|
||||
msgstr "Por defecto"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:476
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Change"
|
||||
msgstr "Cambiar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:508
|
||||
#: client/scenes/stream_gui.cpp:577
|
||||
msgid "Use the thumbsticks to move the foveation center"
|
||||
msgstr "Usa los joysticks para mover el centro de la fóvea"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/stream_gui.cpp:578
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "Pulsa A para guardar o B para cancelar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:567
|
||||
#: client/scenes/stream_gui.cpp:636
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Aplicaciones XR ejecutandose:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:584
|
||||
#: client/scenes/stream_gui.cpp:653
|
||||
msgid "Overlays"
|
||||
msgstr "Superposiciones"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:623
|
||||
#: client/scenes/stream_gui.cpp:692
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "Pedir salir, puede ser ignorado por la aplicación"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:626
|
||||
msgid "Start"
|
||||
msgstr "Iniciar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:871
|
||||
msgid "Stats"
|
||||
msgstr "Estadísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:877
|
||||
#: client/scenes/stream_gui.cpp:935
|
||||
msgid "Applications"
|
||||
msgstr "Aplicaciones"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:883
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Superponer estadísticas"
|
||||
#: client/scenes/stream_gui.cpp:938
|
||||
msgid "Start"
|
||||
msgstr "Iniciar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:886
|
||||
#: client/scenes/stream_gui.cpp:951
|
||||
msgid "Stats"
|
||||
msgstr "Estadísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:957
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Superponer stats"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:960
|
||||
msgid "Compact view"
|
||||
msgstr "Vista compacta"
|
||||
|
||||
@@ -693,7 +713,19 @@ msgstr "No se puede verificar el PIN"
|
||||
|
||||
#: client/wivrn_client.cpp:182
|
||||
msgid "Pairing is disabled on server"
|
||||
msgstr "El emparejamiento está deshabilitado en el servidor."
|
||||
msgstr "El emparejamiento está deshabilitado en el servidor"
|
||||
|
||||
#, c++-format
|
||||
#~ msgid "HTTP error {} when downloading index.json"
|
||||
#~ msgstr "Error HTTP {} mientras se descargaba index.json"
|
||||
|
||||
#, c++-format
|
||||
#~ msgid ""
|
||||
#~ "Curl error {} when downloading index.json\n"
|
||||
#~ "{}"
|
||||
#~ msgstr ""
|
||||
#~ "Error de Curl {} mientras se descargaba index.json\n"
|
||||
#~ "{}"
|
||||
|
||||
#~ msgid "Enable video passthrough in lobby"
|
||||
#~ msgstr "Activar video passthrough en el lobby"
|
||||
|
||||
+149
-111
@@ -1,12 +1,12 @@
|
||||
#
|
||||
# Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025.
|
||||
# SPDX-FileCopyrightText: 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-10-26 13:46+0100\n"
|
||||
"PO-Revision-Date: 2025-10-26 13:47+0100\n"
|
||||
"POT-Creation-Date: 2025-11-11 21:12+0100\n"
|
||||
"PO-Revision-Date: 2025-11-15 13:39+0100\n"
|
||||
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
|
||||
"Language-Team: French <>\n"
|
||||
"Language: French\n"
|
||||
@@ -14,7 +14,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"X-Generator: Gtranslator 48.0\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
|
||||
#: dashboard/apk_installer.cpp:137
|
||||
#, kde-format
|
||||
@@ -87,8 +87,8 @@ msgstr "Vérification de la dernière version..."
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "Aucun APK n'est disponible pour cette version"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:311
|
||||
#: dashboard/qml/Main.qml:396 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:302
|
||||
#: dashboard/qml/Main.qml:387 dashboard/qml/WizardPage.qml:211
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
msgstr "ADB n'est pas installé"
|
||||
@@ -136,7 +136,7 @@ msgstr "Réinstaller WiVRn"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "Installer WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:401
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:392
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "Casques"
|
||||
@@ -233,44 +233,44 @@ msgstr "Appairer un nouveau casque"
|
||||
msgid "Headset statistics"
|
||||
msgstr "Statistiques"
|
||||
|
||||
#: dashboard/qml/Main.qml:130
|
||||
#: dashboard/qml/Main.qml:121
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "Avahi daemon n'est pas installé"
|
||||
|
||||
#: dashboard/qml/Main.qml:138
|
||||
#: dashboard/qml/Main.qml:129
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "Avahi daemon n'est pas démarré"
|
||||
|
||||
#: dashboard/qml/Main.qml:145 dashboard/qml/Main.qml:160
|
||||
#: dashboard/qml/Main.qml:174
|
||||
#: dashboard/qml/Main.qml:136 dashboard/qml/Main.qml:151
|
||||
#: dashboard/qml/Main.qml:165
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "Corriger"
|
||||
|
||||
#: dashboard/qml/Main.qml:153
|
||||
#: dashboard/qml/Main.qml:144
|
||||
#, kde-format
|
||||
msgid "The server does not have CAP_SYS_NICE capabilities"
|
||||
msgstr "Le serveur n'a pas la capacité CAP_SYS_NICE"
|
||||
|
||||
#: dashboard/qml/Main.qml:168
|
||||
#: dashboard/qml/Main.qml:159
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "Le pare-feu pourrait ne pas autoriser le port 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#: dashboard/qml/Main.qml:174
|
||||
#, kde-format
|
||||
msgid "The CAP_SYS_NICE capability will be used when the server is restarted"
|
||||
msgstr "La capacité CAP_SYS_NICE sera utilisée quand le serveur sera redémarré"
|
||||
|
||||
#: dashboard/qml/Main.qml:189
|
||||
#: dashboard/qml/Main.qml:180
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "Redémarrer"
|
||||
|
||||
#: dashboard/qml/Main.qml:200
|
||||
#: dashboard/qml/Main.qml:191
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
@@ -278,12 +278,12 @@ msgstr ""
|
||||
"Les GPUs NVIDIA nécessitent au moins le driver 565.77, la version actuelle "
|
||||
"est %1."
|
||||
|
||||
#: dashboard/qml/Main.qml:206
|
||||
#: dashboard/qml/Main.qml:197
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "Plus d'infos"
|
||||
|
||||
#: dashboard/qml/Main.qml:214
|
||||
#: dashboard/qml/Main.qml:205
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
@@ -292,7 +292,7 @@ msgstr ""
|
||||
"Utilisez le driver Mesa (redv) pour les GPUs AMD\n"
|
||||
"L'encodage matériel avec vaapi ne fonctionne pas avec AMDVLK et AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:222
|
||||
#: dashboard/qml/Main.qml:213
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -302,75 +302,75 @@ msgstr ""
|
||||
"pourront pas charger le mode VR.\n"
|
||||
"Veuillez installer xrizer ou OpenComposite."
|
||||
|
||||
#: dashboard/qml/Main.qml:231
|
||||
#: dashboard/qml/Main.qml:222
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "Le serveur n'a pas pu démarrer"
|
||||
|
||||
#: dashboard/qml/Main.qml:237 dashboard/qml/TroubleshootPage.qml:85
|
||||
#: dashboard/qml/Main.qml:228 dashboard/qml/TroubleshootPage.qml:85
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "Ouvrir les logs du serveur"
|
||||
|
||||
#: dashboard/qml/Main.qml:266
|
||||
#: dashboard/qml/Main.qml:257
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "Démarré"
|
||||
|
||||
#: dashboard/qml/Main.qml:281
|
||||
#: dashboard/qml/Main.qml:272
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "Appairage"
|
||||
|
||||
#: dashboard/qml/Main.qml:294
|
||||
#: dashboard/qml/Main.qml:285
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "PIN : %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:302 dashboard/qml/WizardPage.qml:374
|
||||
#: dashboard/qml/Main.qml:293 dashboard/qml/WizardPage.qml:374
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Connexion par USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:313
|
||||
#: dashboard/qml/Main.qml:304
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur"
|
||||
|
||||
#: dashboard/qml/Main.qml:321
|
||||
#: dashboard/qml/Main.qml:312
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Déconnecter"
|
||||
|
||||
#: dashboard/qml/Main.qml:338
|
||||
#: dashboard/qml/Main.qml:329
|
||||
#, kde-format
|
||||
msgctxt "automatically started application"
|
||||
msgid "Application"
|
||||
msgstr "Application"
|
||||
|
||||
#: dashboard/qml/Main.qml:359
|
||||
#: dashboard/qml/Main.qml:350
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Informations pour Steam"
|
||||
|
||||
#: dashboard/qml/Main.qml:380
|
||||
#: dashboard/qml/Main.qml:371
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Assistant"
|
||||
|
||||
#: dashboard/qml/Main.qml:387
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Installer l'appli"
|
||||
|
||||
#: dashboard/qml/Main.qml:408 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:399 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: dashboard/qml/Main.qml:415 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:406 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "Dépannage"
|
||||
@@ -393,23 +393,23 @@ msgctxt "browse a file to choose the application to start"
|
||||
msgid "Browse"
|
||||
msgstr "Parcourir"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:41
|
||||
#: dashboard/qml/SettingsPage.qml:35
|
||||
#, kde-format
|
||||
msgctxt "automatic foveation setup"
|
||||
msgid "Manual foveation"
|
||||
msgstr "Fovéation manuelle"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:47
|
||||
#: dashboard/qml/SettingsPage.qml:41
|
||||
#, kde-format
|
||||
msgid "Foveation strength:"
|
||||
msgstr "Intensité de fovéation :"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:63
|
||||
#: dashboard/qml/SettingsPage.qml:57
|
||||
#, kde-format
|
||||
msgid "%1 %"
|
||||
msgstr "%1 %"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:69
|
||||
#: dashboard/qml/SettingsPage.qml:63
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A stronger foveation makes the image sharper in the center than in the "
|
||||
@@ -428,158 +428,153 @@ msgstr ""
|
||||
"Les valeurs recommandées sont entre 20% et 50% pour les casques sans suivi "
|
||||
"des yeux et entre 50% et 70% pour les casques avec suivi des yeux."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:75
|
||||
#: dashboard/qml/SettingsPage.qml:69
|
||||
#, kde-format
|
||||
msgctxt "weaker foveation"
|
||||
msgid "Weaker"
|
||||
msgstr "Faible"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:86
|
||||
#: dashboard/qml/SettingsPage.qml:80
|
||||
#, kde-format
|
||||
msgctxt "stronger foveation"
|
||||
msgid "Stronger"
|
||||
msgstr "Fort"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:96
|
||||
#: dashboard/qml/SettingsPage.qml:90
|
||||
#, kde-format
|
||||
msgid "Bitrate:"
|
||||
msgstr "Débit :"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:100 dashboard/qml/SettingsPage.qml:102
|
||||
#: dashboard/qml/SettingsPage.qml:94 dashboard/qml/SettingsPage.qml:96
|
||||
#, kde-format
|
||||
msgctxt "bitrate"
|
||||
msgid "%1 Mbit/s"
|
||||
msgstr "%1 Mbit/s"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:112
|
||||
#: dashboard/qml/SettingsPage.qml:108
|
||||
#, kde-format
|
||||
msgid "Encoder layout:"
|
||||
msgstr "Disposition :"
|
||||
msgid "The current encoder configuration is not supported"
|
||||
msgstr "La configuration actuelle des encodeurs n'est pas prise en charge"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:115
|
||||
#: dashboard/qml/SettingsPage.qml:113
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatique"
|
||||
msgid "Reset"
|
||||
msgstr "Réinitialiser"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:119
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Manual"
|
||||
msgstr "Manuelle"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:123
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Default preset"
|
||||
msgstr "Configuration prédéfinie : par défaut"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:140
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Low latency preset"
|
||||
msgstr "Configuration prédéfinie : basse latence"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:159
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Safe preset"
|
||||
msgstr "Configuration prédéfinie : sure"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:182
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
|
||||
"Drag an edge to resize or remove encoders."
|
||||
msgstr ""
|
||||
"Pour ajouter un encodeur, découpez un encodeur existant en cliquant près "
|
||||
"d'un bord.\n"
|
||||
"Déplacez un bord pour redimensionner ou supprimer un encodeur."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:209
|
||||
#: dashboard/qml/SettingsPage.qml:120
|
||||
#, kde-format
|
||||
msgid "Encoder:"
|
||||
msgstr "Encodeur :"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:218
|
||||
#: dashboard/qml/SettingsPage.qml:126
|
||||
#, kde-format
|
||||
msgctxt "automatic encoder setup"
|
||||
msgid "Auto"
|
||||
msgstr "Automatique"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:223
|
||||
#: dashboard/qml/SettingsPage.qml:130
|
||||
#, kde-format
|
||||
msgid "nvenc (NVIDIA GPUs)"
|
||||
msgstr "nvenc (GPUs NVIDIA)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:228
|
||||
#: dashboard/qml/SettingsPage.qml:134
|
||||
#, kde-format
|
||||
msgid "vaapi (AMD and Intel GPUs)"
|
||||
msgstr "vaapi (GPUs AMD et Intel)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:233
|
||||
#: dashboard/qml/SettingsPage.qml:138
|
||||
#, kde-format
|
||||
msgid "Vulkan (Any modern GPU)"
|
||||
msgstr "Vulkan (Tout GPU récent)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:142
|
||||
#, kde-format
|
||||
msgid "x264 (software encoding)"
|
||||
msgstr "x264 (encodage logiciel)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:238
|
||||
#, kde-format
|
||||
msgid "Vulkan (Vulkan Video)"
|
||||
msgstr "Vulkan (Vulkan Vidéo)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:261
|
||||
#: dashboard/qml/SettingsPage.qml:159
|
||||
#, kde-format
|
||||
msgid "\"Auto\" will use hardware acceleration if it is available"
|
||||
msgstr ""
|
||||
"« Automatique » utilisera l'accélération matérielle si elle est disponible"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:267
|
||||
#: dashboard/qml/SettingsPage.qml:164
|
||||
#, kde-format
|
||||
msgid "Codec:"
|
||||
msgstr "Codec :"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:274
|
||||
#: dashboard/qml/SettingsPage.qml:170
|
||||
#, kde-format
|
||||
msgctxt "automatic codec setup"
|
||||
msgid "Auto"
|
||||
msgstr "Automatique"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:278
|
||||
#: dashboard/qml/SettingsPage.qml:174
|
||||
#, kde-format
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:282
|
||||
#: dashboard/qml/SettingsPage.qml:178
|
||||
#, kde-format
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:286
|
||||
#: dashboard/qml/SettingsPage.qml:182
|
||||
#, kde-format
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:308
|
||||
#: dashboard/qml/SettingsPage.qml:210
|
||||
#, kde-format
|
||||
msgid "10 bits"
|
||||
msgstr "10 bits"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:215
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"10-bit encoding improves image quality but is not supported by all codecs "
|
||||
"and hardware"
|
||||
msgstr ""
|
||||
"L'encodage 10 bits améliore la qualité d'image mais n'est pas pris en charge "
|
||||
"part tous les codecs et matériel"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:225
|
||||
#, kde-format
|
||||
msgid "Advanced options"
|
||||
msgstr "Paramètres avancés"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:314
|
||||
#: dashboard/qml/SettingsPage.qml:231
|
||||
#, kde-format
|
||||
msgid "Check system configuration on start"
|
||||
msgstr "Vérifier les paramètres système au démarrage"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:318
|
||||
#: dashboard/qml/SettingsPage.qml:237
|
||||
#, kde-format
|
||||
msgid "Forward keyboard & mouse from headset"
|
||||
msgstr "Transmettre le clavier et la souris depuis le casque"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:240
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Keyboard and mouse connected to the client will act as if connected to the "
|
||||
"server. Client OS may reserve specific keys and combinations, which cannot "
|
||||
"be forwarded."
|
||||
msgstr ""
|
||||
"Le clavier et la souris connectés au casque agiront comme s'ils étaient connec"
|
||||
"tés au serveur. L'OS du client peut réserver certaines touches et combinaisons"
|
||||
", qui ne peuvent pas être transmises."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:245
|
||||
#, kde-format
|
||||
msgid "Enable debug window"
|
||||
msgstr "Activer la fenêtre de débogage"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:325
|
||||
#: dashboard/qml/SettingsPage.qml:252
|
||||
#, kde-format
|
||||
msgid "Enable SteamVR tracked devices support"
|
||||
msgstr "Activer le support des manettes SteamVR"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:328
|
||||
#: dashboard/qml/SettingsPage.qml:255
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Allows the use of lighthouse-based controllers and trackers.\n"
|
||||
@@ -593,44 +588,44 @@ msgstr ""
|
||||
"WiVRn.\n"
|
||||
"Un utilitaire tiers tel que motoc est nécessaire pour la calibration."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:336
|
||||
#: dashboard/qml/SettingsPage.qml:263
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "Spécifier l'emplacement d'adb"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:347
|
||||
#: dashboard/qml/SettingsPage.qml:274
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "Emplacement d'adb"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:356
|
||||
#: dashboard/qml/SettingsPage.qml:283
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the adb binary"
|
||||
msgid "Browse"
|
||||
msgstr "Parcourir"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:366
|
||||
#: dashboard/qml/SettingsPage.qml:293
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "Par défaut"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:380
|
||||
#: dashboard/qml/SettingsPage.qml:307
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "Personnalisé"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:385
|
||||
#: dashboard/qml/SettingsPage.qml:312
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "Désactivé"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:393
|
||||
#: dashboard/qml/SettingsPage.qml:320
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "Compatibilité OpenVR :"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:419
|
||||
#: dashboard/qml/SettingsPage.qml:346
|
||||
#, kde-format
|
||||
msgid "Library path, excluding bin/linux64/vrclient.so"
|
||||
msgstr "Chemin de la bibliothèque, en enlevant bin/linux64/vrclient.so"
|
||||
@@ -984,3 +979,46 @@ msgstr "xrizer"
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "Vulkan (Vulkan Video)"
|
||||
#~ msgstr "Vulkan (Vulkan Vidéo)"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "Encoder layout:"
|
||||
#~ msgstr "Disposition :"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Automatic"
|
||||
#~ msgstr "Automatique"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Manual"
|
||||
#~ msgstr "Manuelle"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Default preset"
|
||||
#~ msgstr "Configuration prédéfinie : par défaut"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Low latency preset"
|
||||
#~ msgstr "Configuration prédéfinie : basse latence"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "encoder preset"
|
||||
#~ msgid "Safe preset"
|
||||
#~ msgstr "Configuration prédéfinie : sure"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid ""
|
||||
#~ "To add a new encoder, split an existing encoder by clicking near an "
|
||||
#~ "edge.\n"
|
||||
#~ "Drag an edge to resize or remove encoders."
|
||||
#~ msgstr ""
|
||||
#~ "Pour ajouter un encodeur, découpez un encodeur existant en cliquant près "
|
||||
#~ "d'un bord.\n"
|
||||
#~ "Déplacez un bord pour redimensionner ou supprimer un encodeur."
|
||||
|
||||
+122
-106
@@ -5,18 +5,18 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-10-26 13:17+0100\n"
|
||||
"PO-Revision-Date: 2025-10-26 13:23+0100\n"
|
||||
"POT-Creation-Date: 2025-11-15 13:34+0100\n"
|
||||
"PO-Revision-Date: 2025-11-15 13:32+0100\n"
|
||||
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
|
||||
"Language-Team: French <>\n"
|
||||
"Language: French\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Lokalize 25.08.2\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: client/scene.cpp:72
|
||||
#: client/scene.cpp:73
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Aucun format de swapchain supporté"
|
||||
|
||||
@@ -47,35 +47,35 @@ msgstr ""
|
||||
"Démarrez une application sur {} ou depuis la liste pour commencer la "
|
||||
"transmission."
|
||||
|
||||
#: client/scenes/lobby.cpp:205
|
||||
#: client/scenes/lobby.cpp:230
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "Serveur WiVRn incompatible : pas de champ protocol dans le TXT"
|
||||
|
||||
#: client/scenes/lobby.cpp:208
|
||||
#: client/scenes/lobby.cpp:233
|
||||
#, c++-format
|
||||
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
|
||||
msgstr ""
|
||||
"Version du protocole WiVRn du serveur incompatible (client: {}, serveur: {})"
|
||||
|
||||
#: client/scenes/lobby.cpp:223
|
||||
#: client/scenes/lobby.cpp:248
|
||||
#, c++-format
|
||||
msgid "Cannot resolve hostname: {}"
|
||||
msgstr "Impossible de résoudre le nom: {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:310 client/scenes/lobby.cpp:316
|
||||
#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341
|
||||
#, c++-format
|
||||
msgid "Cannot connect to {} ({}): {}"
|
||||
msgstr "Impossible de se connecter à {} ({}): {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:399
|
||||
#: client/scenes/lobby.cpp:424
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Attente de connexion"
|
||||
|
||||
#: client/scenes/lobby.cpp:1000
|
||||
#: client/scenes/lobby.cpp:1312
|
||||
msgid "Passthrough"
|
||||
msgstr "Vue réelle"
|
||||
|
||||
#: client/scenes/lobby.cpp:1012
|
||||
#: client/scenes/lobby.cpp:1324
|
||||
msgid "Default environment"
|
||||
msgstr "Environnement par défaut"
|
||||
|
||||
@@ -95,13 +95,13 @@ msgid "Disabled"
|
||||
msgstr "Désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:112 client/scenes/lobby_gui.cpp:256
|
||||
#: client/scenes/stream_gui.cpp:893
|
||||
#: client/scenes/stream_gui.cpp:969
|
||||
msgid "Disconnect"
|
||||
msgstr "Déconnecter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:132 client/scenes/lobby_gui_customize.cpp:653
|
||||
#: client/scenes/lobby_gui_customize.cpp:744
|
||||
#: client/scenes/lobby_gui_customize.cpp:800 client/scenes/stream_gui.cpp:889
|
||||
#: client/scenes/lobby_gui_customize.cpp:800 client/scenes/stream_gui.cpp:965
|
||||
msgid "Close"
|
||||
msgstr "Fermer"
|
||||
|
||||
@@ -139,7 +139,7 @@ msgid "TCP only"
|
||||
msgstr "TCP seulement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:317 client/scenes/lobby_gui_customize.cpp:555
|
||||
#: client/scenes/stream_gui.cpp:857
|
||||
#: client/scenes/stream_gui.cpp:933
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
@@ -184,16 +184,17 @@ msgstr "Langue"
|
||||
msgid "System language"
|
||||
msgstr "Langue système"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:577
|
||||
#: client/scenes/lobby_gui.cpp:577 client/scenes/stream_gui.cpp:415
|
||||
msgid "Refresh rate"
|
||||
msgstr "Taux de rafraichissement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:577 client/scenes/lobby_gui.cpp:579
|
||||
#: client/scenes/stream_gui.cpp:415 client/scenes/stream_gui.cpp:417
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatique"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:586
|
||||
#: client/scenes/lobby_gui.cpp:586 client/scenes/stream_gui.cpp:425
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -202,7 +203,7 @@ msgstr ""
|
||||
"des performances mesurées.\n"
|
||||
"Peut causer des clignotements lors du changement de fréquence."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:603
|
||||
#: client/scenes/lobby_gui.cpp:603 client/scenes/stream_gui.cpp:443
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Taux minimal"
|
||||
|
||||
@@ -225,40 +226,50 @@ msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:672
|
||||
msgid "High power mode"
|
||||
msgstr "Mode haute consommation"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Augmente la consommation d'énergie pour permettre une résolution\n"
|
||||
"et une fréquence de rafraîchissement plus élevées"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:681
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activer le micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:681
|
||||
#: client/scenes/lobby_gui.cpp:690
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Utiliser les données brutes du micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:687
|
||||
#: client/scenes/lobby_gui.cpp:696
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "Désactive les traitements tels que la suppression du bruit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:694
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Activer le suivi des mains"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700 client/scenes/lobby_gui.cpp:712
|
||||
#: client/scenes/lobby_gui.cpp:724 client/scenes/lobby_gui.cpp:741
|
||||
#: client/scenes/lobby_gui.cpp:709 client/scenes/lobby_gui.cpp:721
|
||||
#: client/scenes/lobby_gui.cpp:733 client/scenes/lobby_gui.cpp:750
|
||||
#: client/scenes/lobby_gui_customize.cpp:540
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Cette fonctionnalité n'est pas supportée par le casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:706
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activer le suivi des yeux"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:718
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activer le suivi du visage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:732
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Activer le suivi du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:746
|
||||
#: client/scenes/lobby_gui.cpp:755
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -269,11 +280,11 @@ msgstr ""
|
||||
"suivi des mouvements du casque.\n"
|
||||
"Sinon les positions seront déduites de celles des manettes et casque."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
#: client/scenes/lobby_gui.cpp:765
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Activer le suivi du bas du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:762
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -284,11 +295,11 @@ msgstr ""
|
||||
"paramètres\n"
|
||||
"de suivi de mouvements du casque."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:765
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Activer le suivi des hanches"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -296,11 +307,11 @@ msgstr ""
|
||||
"N'a d'effet que si le suivi du bas du corps est activé.\n"
|
||||
"Peut être utile si les hanches sont suivies via un autre moyen."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:779
|
||||
#: client/scenes/lobby_gui.cpp:788
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Activer la fenêtre WiVRn lors de la transmission"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:782
|
||||
#: client/scenes/lobby_gui.cpp:791
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -310,15 +321,15 @@ msgstr ""
|
||||
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
|
||||
"sticks."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:796 client/scenes/stream_gui.cpp:394
|
||||
#: client/scenes/lobby_gui.cpp:805 client/scenes/stream_gui.cpp:463
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-traitement OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:800 client/scenes/stream_gui.cpp:398
|
||||
#: client/scenes/lobby_gui.cpp:809 client/scenes/stream_gui.cpp:467
|
||||
msgid "Supersampling"
|
||||
msgstr "Suréchantillonnage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/stream_gui.cpp:419
|
||||
#: client/scenes/lobby_gui.cpp:829 client/scenes/stream_gui.cpp:488
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -326,11 +337,11 @@ msgstr ""
|
||||
"Réduit le scintillement des contours à haut contraste.\n"
|
||||
"Utile quand la résolution d’entrée est haute comparée à l’écran du casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:825 client/scenes/stream_gui.cpp:424
|
||||
#: client/scenes/lobby_gui.cpp:834 client/scenes/stream_gui.cpp:493
|
||||
msgid "Sharpening"
|
||||
msgstr "Affinage de netteté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:845 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:854 client/scenes/stream_gui.cpp:514
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -338,129 +349,129 @@ msgstr ""
|
||||
"Améliore la clarté des contours à haut contraste et réduit le flou.\n"
|
||||
"Utile quand la résolution d’entrée est basse comparée à l’écran du casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1029 client/scenes/lobby_gui.cpp:1037
|
||||
#: client/scenes/stream_gui.cpp:171 client/scenes/stream_gui.cpp:373
|
||||
#: client/scenes/lobby_gui.cpp:1038 client/scenes/lobby_gui.cpp:1046
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:374
|
||||
msgid "CPU time"
|
||||
msgstr "Temps CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1033
|
||||
#: client/scenes/lobby_gui.cpp:1042
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Temps CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1043 client/scenes/lobby_gui.cpp:1051
|
||||
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:374
|
||||
#: client/scenes/lobby_gui.cpp:1052 client/scenes/lobby_gui.cpp:1060
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:375
|
||||
msgid "GPU time"
|
||||
msgstr "Temps GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1047
|
||||
#: client/scenes/lobby_gui.cpp:1056
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Temps GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1111
|
||||
#: client/scenes/lobby_gui.cpp:1120
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Activer le micro ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1116
|
||||
#: client/scenes/lobby_gui.cpp:1125
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Activer le suivi des yeux ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1121
|
||||
#: client/scenes/lobby_gui.cpp:1130
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Activer le suivi du visage ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1126
|
||||
#: client/scenes/lobby_gui.cpp:1135
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Activer le suivi du corps ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1134
|
||||
#: client/scenes/lobby_gui.cpp:1143
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenue sur WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1158
|
||||
#: client/scenes/lobby_gui.cpp:1169
|
||||
msgid "Yes"
|
||||
msgstr "Oui"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1165
|
||||
#: client/scenes/lobby_gui.cpp:1176
|
||||
msgid "No"
|
||||
msgstr "Non"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1184 client/scenes/lobby_gui.cpp:1825
|
||||
#: client/scenes/lobby_gui.cpp:1195 client/scenes/lobby_gui.cpp:1836
|
||||
msgid "Licenses"
|
||||
msgstr "Licences"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1459
|
||||
#: client/scenes/lobby_gui.cpp:1470
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Le micro est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1460
|
||||
#: client/scenes/lobby_gui.cpp:1471
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Le micro est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1469
|
||||
#: client/scenes/lobby_gui.cpp:1480
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Le suivi des mains est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1470
|
||||
#: client/scenes/lobby_gui.cpp:1481
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Le suivi des mains est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1479
|
||||
#: client/scenes/lobby_gui.cpp:1490
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Le suivi des yeux est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1480
|
||||
#: client/scenes/lobby_gui.cpp:1491
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Le suivi des yeux est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1490
|
||||
#: client/scenes/lobby_gui.cpp:1501
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Le suivi du visage est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1491
|
||||
#: client/scenes/lobby_gui.cpp:1502
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Le suivi du visage est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1501
|
||||
#: client/scenes/lobby_gui.cpp:1512
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Le suivi du corps est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1502
|
||||
#: client/scenes/lobby_gui.cpp:1513
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Le suivi du corps est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1518
|
||||
#: client/scenes/lobby_gui.cpp:1529
|
||||
msgid "Add server"
|
||||
msgstr "Ajouter un serveur"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1804
|
||||
#: client/scenes/lobby_gui.cpp:1815
|
||||
msgid "Server list"
|
||||
msgstr "Serveurs"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1807 client/scenes/stream_gui.cpp:874
|
||||
#: client/scenes/lobby_gui.cpp:1818 client/scenes/stream_gui.cpp:950
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1810
|
||||
#: client/scenes/lobby_gui.cpp:1821
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-traitement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1813
|
||||
#: client/scenes/lobby_gui.cpp:1824
|
||||
msgid "Customize"
|
||||
msgstr "Personnaliser"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1817
|
||||
#: client/scenes/lobby_gui.cpp:1828
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1822
|
||||
#: client/scenes/lobby_gui.cpp:1833
|
||||
msgid "About"
|
||||
msgstr "À propos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1828
|
||||
#: client/scenes/lobby_gui.cpp:1839
|
||||
msgid "Exit"
|
||||
msgstr "Quitter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1845
|
||||
#: client/scenes/lobby_gui.cpp:1856
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -468,10 +479,15 @@ msgstr ""
|
||||
"Serrez la gâchette latérale ou pointez la paume\n"
|
||||
"vers le haut pour bouger la fenêtre principale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1847
|
||||
#: client/scenes/lobby_gui.cpp:1858
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:233
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "Impossible de charger la liste d'environnements: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:363
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
@@ -504,7 +520,7 @@ msgstr ""
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:552
|
||||
#, c-format
|
||||
msgid "Really delete %s?"
|
||||
msgid "Really delete {}?"
|
||||
msgstr "Supprimer {} ?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:556
|
||||
@@ -528,143 +544,143 @@ msgstr "Télécharger plus d'environnements"
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Ouvrir un modèle glTF local"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:173
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
msgid "Reproject"
|
||||
msgstr "Reprojection"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Blit"
|
||||
msgstr "Copie"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "Réseau"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
|
||||
msgid "Download"
|
||||
msgstr "Téléchargement"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:373
|
||||
msgid "Upload"
|
||||
msgstr "Téléversement"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:246
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "Décodeur {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "Durées [ms]"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:318
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "Encodage"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "Envoi"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "Réception"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "Décodage"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "Copie"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "Affichage"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "Prédiction"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:344
|
||||
#: client/scenes/stream_gui.cpp:345
|
||||
#, c++-format
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "Latence mouvement à photons estimée: {}ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:351
|
||||
#: client/scenes/stream_gui.cpp:352
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr "Serrez la gâchette latérale pour bouger la fenêtre"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:817
|
||||
#: client/scenes/stream_gui.cpp:354 client/scenes/stream_gui.cpp:893
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:375
|
||||
#: client/scenes/stream_gui.cpp:376
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "Latence mouvements à photons"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:452
|
||||
#: client/scenes/stream_gui.cpp:521
|
||||
msgid "Foveation center override"
|
||||
msgstr "Zone de fovéation manuelle"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:455
|
||||
#: client/scenes/stream_gui.cpp:524
|
||||
msgid "Enable"
|
||||
msgstr "Activer"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:463 client/scenes/stream_gui.cpp:510
|
||||
#: client/scenes/stream_gui.cpp:532 client/scenes/stream_gui.cpp:579
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "Hauteur: {:.1f} deg"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:464 client/scenes/stream_gui.cpp:511
|
||||
#: client/scenes/stream_gui.cpp:533 client/scenes/stream_gui.cpp:580
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "Distance {:.2f} m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:465
|
||||
#: client/scenes/stream_gui.cpp:534
|
||||
msgid "Default"
|
||||
msgstr "Réinitialiser"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:476
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Change"
|
||||
msgstr "Ajuster"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:508
|
||||
#: client/scenes/stream_gui.cpp:577
|
||||
msgid "Use the thumbsticks to move the foveation center"
|
||||
msgstr "Utiliser le stick pour bouger le centre de fovéation"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/stream_gui.cpp:578
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "A pour sauvegarder, B pour annuler"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:567
|
||||
#: client/scenes/stream_gui.cpp:636
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Applications XR lancées :"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:584
|
||||
#: client/scenes/stream_gui.cpp:653
|
||||
msgid "Overlays"
|
||||
msgstr "Surcouches"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:623
|
||||
#: client/scenes/stream_gui.cpp:692
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "Demande de quitter, peut être ignoré par l'application"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:626
|
||||
#: client/scenes/stream_gui.cpp:695
|
||||
msgid "Start"
|
||||
msgstr "Démarrer"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:871
|
||||
#: client/scenes/stream_gui.cpp:947
|
||||
msgid "Stats"
|
||||
msgstr "Statistiques"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:877
|
||||
#: client/scenes/stream_gui.cpp:953
|
||||
msgid "Applications"
|
||||
msgstr "Applications"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:883
|
||||
#: client/scenes/stream_gui.cpp:959
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Statistiques seules"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:886
|
||||
#: client/scenes/stream_gui.cpp:962
|
||||
msgid "Compact view"
|
||||
msgstr "Vue compacte"
|
||||
|
||||
|
||||
+220
-136
@@ -5,8 +5,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-09-27 16:57+0200\n"
|
||||
"PO-Revision-Date: 2025-09-27 16:57+0200\n"
|
||||
"POT-Creation-Date: 2025-11-06 09:54+0100\n"
|
||||
"PO-Revision-Date: 2025-11-06 10:00+0100\n"
|
||||
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
|
||||
"Language-Team: Italian <>\n"
|
||||
"Language: Italian\n"
|
||||
@@ -19,121 +19,132 @@ msgstr ""
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Nessun formato swapchain supportato"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
#: client/scenes/app_launcher.cpp:128
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Connesso al server WiVRn"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:137
|
||||
#: client/scenes/app_launcher.cpp:130
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connesso a {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:143
|
||||
#: client/scenes/app_launcher.cpp:136
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr "Avvia un applicazione sul server per incominciare a trasmettere."
|
||||
|
||||
#: client/scenes/app_launcher.cpp:153
|
||||
#: client/scenes/app_launcher.cpp:146
|
||||
msgid "Start an application on your computer or select one to start streaming."
|
||||
msgstr ""
|
||||
"Avvia un applicazione sul computer o scegli dalla lista per incominciare a "
|
||||
"trasmettere."
|
||||
|
||||
#: client/scenes/app_launcher.cpp:155
|
||||
#: client/scenes/app_launcher.cpp:148
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr ""
|
||||
"Avvia un applicazione su {} o scegli dalla lista per incominciare a "
|
||||
"trasmettere."
|
||||
|
||||
#: client/scenes/lobby.cpp:185
|
||||
#: client/scenes/lobby.cpp:230
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "Server WiVRn incompatibile: nessun campo protocollo in TXT"
|
||||
|
||||
#: client/scenes/lobby.cpp:188
|
||||
#: client/scenes/lobby.cpp:233
|
||||
#, c++-format
|
||||
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
|
||||
msgstr "Protocollo server WiVRn incompatibile (client: {}, server: {})"
|
||||
|
||||
#: client/scenes/lobby.cpp:203
|
||||
#: client/scenes/lobby.cpp:248
|
||||
#, c++-format
|
||||
msgid "Cannot resolve hostname: {}"
|
||||
msgstr "Impossibile risolvere il nome host: {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
|
||||
#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341
|
||||
#, c++-format
|
||||
msgid "Cannot connect to {} ({}): {}"
|
||||
msgstr "Impossibile connettersi a {} ({}): {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:379
|
||||
#: client/scenes/lobby.cpp:424
|
||||
msgid "Waiting for connection"
|
||||
msgstr "In attesa di connessione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:107
|
||||
#: client/scenes/lobby.cpp:1304
|
||||
msgid "Passthrough"
|
||||
msgstr "Vista reale"
|
||||
|
||||
#: client/scenes/lobby.cpp:1316
|
||||
msgid "Default environment"
|
||||
msgstr "Ambiente di default"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:99
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "Normale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:110
|
||||
#: client/scenes/lobby_gui.cpp:102
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "Alta qualità"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:112
|
||||
#: client/scenes/lobby_gui.cpp:104
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:120 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/stream_gui.cpp:944
|
||||
#: client/scenes/lobby_gui.cpp:112 client/scenes/lobby_gui.cpp:256
|
||||
#: client/scenes/stream_gui.cpp:900
|
||||
msgid "Disconnect"
|
||||
msgstr "Sconnetti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:140 client/scenes/stream_gui.cpp:940
|
||||
#: client/scenes/lobby_gui.cpp:132 client/scenes/lobby_gui_customize.cpp:653
|
||||
#: client/scenes/lobby_gui_customize.cpp:744
|
||||
#: client/scenes/lobby_gui_customize.cpp:800 client/scenes/stream_gui.cpp:896
|
||||
msgid "Close"
|
||||
msgstr "Chiudi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:146
|
||||
#: client/scenes/lobby_gui.cpp:138
|
||||
msgid "Connection"
|
||||
msgstr "Connessione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:148
|
||||
#: client/scenes/lobby_gui.cpp:140
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "Connessione a {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:178
|
||||
#: client/scenes/lobby_gui.cpp:170
|
||||
msgid "PIN"
|
||||
msgstr "PIN"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:200
|
||||
#: client/scenes/lobby_gui.cpp:192
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Digitare il PIN visibile sul server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:290
|
||||
#: client/scenes/lobby_gui.cpp:282
|
||||
msgid "Name"
|
||||
msgstr "Nome"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:301
|
||||
#: client/scenes/lobby_gui.cpp:293
|
||||
msgid "Address"
|
||||
msgstr "Indirizzo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:310
|
||||
#: client/scenes/lobby_gui.cpp:302
|
||||
msgid "Port"
|
||||
msgstr "Porta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:318
|
||||
#: client/scenes/lobby_gui.cpp:310
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:325 client/scenes/stream_gui.cpp:908
|
||||
#: client/scenes/lobby_gui.cpp:317 client/scenes/lobby_gui_customize.cpp:555
|
||||
#: client/scenes/stream_gui.cpp:864
|
||||
msgid "Cancel"
|
||||
msgstr "Annulla"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:339
|
||||
#: client/scenes/lobby_gui.cpp:331
|
||||
msgid "Save"
|
||||
msgstr "Salva"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:392
|
||||
#: client/scenes/lobby_gui.cpp:384
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -141,45 +152,45 @@ msgstr ""
|
||||
"Avvia un server WiVRn sulla\n"
|
||||
"rete locale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:424
|
||||
#: client/scenes/lobby_gui.cpp:416
|
||||
msgid "Autoconnect"
|
||||
msgstr "Connessione automatica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
#: client/scenes/lobby_gui.cpp:442
|
||||
msgid "Connect"
|
||||
msgstr "Connetti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:460 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:452 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Versione del server incompatibile"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:462
|
||||
#: client/scenes/lobby_gui.cpp:454
|
||||
msgid "Server not available"
|
||||
msgstr "Server non disponibile"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
#: client/scenes/lobby_gui.cpp:536
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Italiano"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558
|
||||
#: client/scenes/lobby_gui.cpp:550
|
||||
msgid "Language"
|
||||
msgstr "Lingua"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558 client/scenes/lobby_gui.cpp:560
|
||||
#: client/scenes/lobby_gui.cpp:550 client/scenes/lobby_gui.cpp:552
|
||||
msgid "System language"
|
||||
msgstr "Lingua del sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:585
|
||||
#: client/scenes/lobby_gui.cpp:577
|
||||
msgid "Refresh rate"
|
||||
msgstr "Frequenza di aggiornamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:585 client/scenes/lobby_gui.cpp:587
|
||||
#: client/scenes/lobby_gui.cpp:577 client/scenes/lobby_gui.cpp:579
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:594
|
||||
#: client/scenes/lobby_gui.cpp:586
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -188,60 +199,74 @@ msgstr ""
|
||||
"misurate dell'applicazione.\n"
|
||||
"Può causare un flash quando avviene il cambiamento."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:611
|
||||
#: client/scenes/lobby_gui.cpp:603
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Frequenza minima"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:634
|
||||
#: client/scenes/lobby_gui.cpp:629
|
||||
msgid "Foveation level"
|
||||
msgstr "Intensità di foveazione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:651
|
||||
msgid "Resolution scale"
|
||||
msgstr "Scala di risoluzione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:638
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#, c-format, c++-format
|
||||
msgid "%d%% - {}x{} per eye"
|
||||
msgstr "%d%% - {}x{} per occhio"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:649
|
||||
#: client/scenes/lobby_gui.cpp:666
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr ""
|
||||
"Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#: client/scenes/lobby_gui.cpp:672
|
||||
msgid "High power mode"
|
||||
msgstr "Modalità alto consumo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Aumenta il consumo di energie per permettere una risoluzione e\n"
|
||||
"frequenza d'immagine più alta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:681
|
||||
msgid "Enable microphone"
|
||||
msgstr "Attiva il microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:664
|
||||
#: client/scenes/lobby_gui.cpp:690
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Usare dati grezzi del microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#: client/scenes/lobby_gui.cpp:696
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "Disattiva gli effetti come la cancellazione del rumore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:677
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Abilita il tracciamento delle mani"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:683 client/scenes/lobby_gui.cpp:695
|
||||
#: client/scenes/lobby_gui.cpp:707 client/scenes/lobby_gui.cpp:724
|
||||
#: client/scenes/lobby_gui.cpp:769
|
||||
#: client/scenes/lobby_gui.cpp:709 client/scenes/lobby_gui.cpp:721
|
||||
#: client/scenes/lobby_gui.cpp:733 client/scenes/lobby_gui.cpp:750
|
||||
#: client/scenes/lobby_gui_customize.cpp:540
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Questa funzionalità non è supportata dal visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:689
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Abilita il tracciamento oculare"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Abilita il tracciamento facciale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Abilita il tracciamento del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:729
|
||||
#: client/scenes/lobby_gui.cpp:755
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -254,11 +279,11 @@ msgstr ""
|
||||
"controller e\n"
|
||||
"del visore."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:739
|
||||
#: client/scenes/lobby_gui.cpp:765
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Abilita il tracciamento del basso del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:745
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -269,11 +294,11 @@ msgstr ""
|
||||
"impostazioni,\n"
|
||||
"sezione \"Tracking dei movimenti\"."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:748
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Abilitia il tracciamento delle anche"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:754
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -282,15 +307,11 @@ msgstr ""
|
||||
"Può essere utile se un altro metodo viene usato per il tracciamento\n"
|
||||
"delle anche."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:762
|
||||
msgid "Enable video passthrough in lobby"
|
||||
msgstr "Abilita la visualizzazione reale in ingresso"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:773
|
||||
#: client/scenes/lobby_gui.cpp:788
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Attiva la finestra di WiVRn durante la trasmissione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:776
|
||||
#: client/scenes/lobby_gui.cpp:791
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -298,15 +319,15 @@ msgstr ""
|
||||
"Abilita la finestra di configurazione quando il gioco viene trasmesso.\n"
|
||||
"Se selezionato, la finestra può essere attivata premendo entrambi gli stick."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:790 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:805 client/scenes/stream_gui.cpp:394
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-trattamento OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:794 client/scenes/stream_gui.cpp:449
|
||||
#: client/scenes/lobby_gui.cpp:809 client/scenes/stream_gui.cpp:398
|
||||
msgid "Supersampling"
|
||||
msgstr "Supersamping"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814 client/scenes/stream_gui.cpp:470
|
||||
#: client/scenes/lobby_gui.cpp:829 client/scenes/stream_gui.cpp:419
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -314,11 +335,11 @@ msgstr ""
|
||||
"Riduce i lampeggiamenti sui bordi ad alto contrasto.\n"
|
||||
"Utile quando la risoluzine d'entrata è alta in confronto a quella del visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:819 client/scenes/stream_gui.cpp:475
|
||||
#: client/scenes/lobby_gui.cpp:834 client/scenes/stream_gui.cpp:424
|
||||
msgid "Sharpening"
|
||||
msgstr "Miglioramento della nitidezza"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:839 client/scenes/stream_gui.cpp:496
|
||||
#: client/scenes/lobby_gui.cpp:854 client/scenes/stream_gui.cpp:445
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -327,125 +348,129 @@ msgstr ""
|
||||
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
|
||||
"visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:935 client/scenes/lobby_gui.cpp:943
|
||||
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
|
||||
#: client/scenes/lobby_gui.cpp:1038 client/scenes/lobby_gui.cpp:1046
|
||||
#: client/scenes/stream_gui.cpp:171 client/scenes/stream_gui.cpp:373
|
||||
msgid "CPU time"
|
||||
msgstr "Tempo CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
#: client/scenes/lobby_gui.cpp:1042
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tempo CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:949 client/scenes/lobby_gui.cpp:957
|
||||
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
|
||||
#: client/scenes/lobby_gui.cpp:1052 client/scenes/lobby_gui.cpp:1060
|
||||
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:374
|
||||
msgid "GPU time"
|
||||
msgstr "Tempo GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:953
|
||||
#: client/scenes/lobby_gui.cpp:1056
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tempo GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1120
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Attivare il microfono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1001
|
||||
#: client/scenes/lobby_gui.cpp:1125
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Attivare il tracciamento oculare?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1006
|
||||
#: client/scenes/lobby_gui.cpp:1130
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Attivare il tracciamento facciale?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui.cpp:1135
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Attivare il tracciamento del corpo?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1019
|
||||
#: client/scenes/lobby_gui.cpp:1143
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Benvenuto su WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1043
|
||||
#: client/scenes/lobby_gui.cpp:1167
|
||||
msgid "Yes"
|
||||
msgstr "Sì"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1050
|
||||
#: client/scenes/lobby_gui.cpp:1174
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1069 client/scenes/lobby_gui.cpp:1716
|
||||
#: client/scenes/lobby_gui.cpp:1193 client/scenes/lobby_gui.cpp:1834
|
||||
msgid "Licenses"
|
||||
msgstr "Licenze"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1394
|
||||
#: client/scenes/lobby_gui.cpp:1468
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Microfono attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1395
|
||||
#: client/scenes/lobby_gui.cpp:1469
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Microfono disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1404
|
||||
#: client/scenes/lobby_gui.cpp:1478
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Tracciamento delle mani attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1405
|
||||
#: client/scenes/lobby_gui.cpp:1479
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Tracciamento delle mani disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1414
|
||||
#: client/scenes/lobby_gui.cpp:1488
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Tracciamento oculare attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1415
|
||||
#: client/scenes/lobby_gui.cpp:1489
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Tracciamento oculare disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1425
|
||||
#: client/scenes/lobby_gui.cpp:1499
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Tracciamento facciale attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1426
|
||||
#: client/scenes/lobby_gui.cpp:1500
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Tracciamento facciale disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1436
|
||||
#: client/scenes/lobby_gui.cpp:1510
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Tracciamento del corpo attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1437
|
||||
#: client/scenes/lobby_gui.cpp:1511
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Tracciamento del corpo disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1453
|
||||
#: client/scenes/lobby_gui.cpp:1527
|
||||
msgid "Add server"
|
||||
msgstr "Aggiungi server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
#: client/scenes/lobby_gui.cpp:1813
|
||||
msgid "Server list"
|
||||
msgstr "Elenco dei server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1701 client/scenes/stream_gui.cpp:925
|
||||
#: client/scenes/lobby_gui.cpp:1816 client/scenes/stream_gui.cpp:881
|
||||
msgid "Settings"
|
||||
msgstr "Impostazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1704
|
||||
#: client/scenes/lobby_gui.cpp:1819
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-trattamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
#: client/scenes/lobby_gui.cpp:1822
|
||||
msgid "Customize"
|
||||
msgstr "Personalizzazione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1826
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1713
|
||||
#: client/scenes/lobby_gui.cpp:1831
|
||||
msgid "About"
|
||||
msgstr "Informazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1719
|
||||
#: client/scenes/lobby_gui.cpp:1837
|
||||
msgid "Exit"
|
||||
msgstr "Esci"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1736
|
||||
#: client/scenes/lobby_gui.cpp:1854
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -453,147 +478,203 @@ msgstr ""
|
||||
"Premi il pulsante laterale o punta il palmo della\n"
|
||||
"mano verso l'alto per spostare la finestra principale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1738
|
||||
#: client/scenes/lobby_gui.cpp:1856
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Premi il pulsante laterale per spostare la finestra principale"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:224
|
||||
#: client/scenes/lobby_gui_customize.cpp:363
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "Autore: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:367
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "Dimensioni: {:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:447
|
||||
msgid "Delete this model"
|
||||
msgstr "Elimina il modello"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:483
|
||||
#: client/scenes/lobby_gui_customize.cpp:689
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "Error http {} per scaricare {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:491
|
||||
#: client/scenes/lobby_gui_customize.cpp:697
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
"{}: {}"
|
||||
msgstr ""
|
||||
"Error curle per scaricare {}\n"
|
||||
"{}: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:552
|
||||
#, c-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "Eliminare {}?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:556
|
||||
msgid "Delete"
|
||||
msgstr "Elimina"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:637
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "Impossibile caricare l'ambiente: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:645
|
||||
msgid "Loading environment"
|
||||
msgstr "Caricamento ambiente"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:724
|
||||
msgid "Download more environments"
|
||||
msgstr "Scaricare più ambienti"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:732
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Aprire un modello glTF"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:173
|
||||
msgid "Reproject"
|
||||
msgstr "Riproiezione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:225
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
msgid "Blit"
|
||||
msgstr "Copia"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:227
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
msgid "Network"
|
||||
msgstr "Rete"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
|
||||
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
|
||||
msgid "Download"
|
||||
msgstr "Download"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
|
||||
msgid "Upload"
|
||||
msgstr "Upload"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:297
|
||||
#: client/scenes/stream_gui.cpp:246
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "Decoder {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:309
|
||||
#: client/scenes/stream_gui.cpp:258
|
||||
msgid "Timings [ms]"
|
||||
msgstr "Durata [ms]"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:369
|
||||
#: client/scenes/stream_gui.cpp:318
|
||||
msgid "Encode"
|
||||
msgstr "Compressione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:370
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Send"
|
||||
msgstr "Invio"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Receive"
|
||||
msgstr "Ricezione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Decode"
|
||||
msgstr "Decodifica"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:373
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Blitted"
|
||||
msgstr "Copiato"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:374
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Displayed"
|
||||
msgstr "Visualizzato"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:375
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Predicted"
|
||||
msgstr "Previsto"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:395
|
||||
#: client/scenes/stream_gui.cpp:344
|
||||
#, c++-format
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "Latenza stimata da movimento a fotoni: {}ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:402
|
||||
#: client/scenes/stream_gui.cpp:351
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr "Premi il pulsante laterale per spostare la finestra"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:868
|
||||
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:824
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:426
|
||||
#: client/scenes/stream_gui.cpp:375
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "Latenza da movimento a fotoni"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:503
|
||||
#: client/scenes/stream_gui.cpp:452
|
||||
msgid "Foveation center override"
|
||||
msgstr "Centro di foveazione manuale"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:506
|
||||
#: client/scenes/stream_gui.cpp:455
|
||||
msgid "Enable"
|
||||
msgstr "Attiva"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
|
||||
#: client/scenes/stream_gui.cpp:463 client/scenes/stream_gui.cpp:510
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "Altezza {:.1f} deg"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
|
||||
#: client/scenes/stream_gui.cpp:464 client/scenes/stream_gui.cpp:511
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "Distanza {:.2f} m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:516
|
||||
#: client/scenes/stream_gui.cpp:465
|
||||
msgid "Default"
|
||||
msgstr "Reimposta"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:527
|
||||
#: client/scenes/stream_gui.cpp:476
|
||||
msgid "Change"
|
||||
msgstr "Cambia"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:559
|
||||
#: client/scenes/stream_gui.cpp:508
|
||||
msgid "Use the thumbsticks to move the foveation center"
|
||||
msgstr "Usa gli stick per spostare il centro di foveazione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:560
|
||||
#: client/scenes/stream_gui.cpp:509
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "A per salvare, B per annullare"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:618
|
||||
#: client/scenes/stream_gui.cpp:567
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Applicazioni XR avviate:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:635
|
||||
#: client/scenes/stream_gui.cpp:584
|
||||
msgid "Overlays"
|
||||
msgstr "Overlays"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:674
|
||||
#: client/scenes/stream_gui.cpp:623
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "Chiede di chiudere, può essere ignorato dall'applicazione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:677
|
||||
#: client/scenes/stream_gui.cpp:626
|
||||
msgid "Start"
|
||||
msgstr "Avvio"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:922
|
||||
#: client/scenes/stream_gui.cpp:878
|
||||
msgid "Stats"
|
||||
msgstr "Statistiche"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:928
|
||||
#: client/scenes/stream_gui.cpp:884
|
||||
msgid "Applications"
|
||||
msgstr "Applicazioni"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:934
|
||||
#: client/scenes/stream_gui.cpp:890
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Solo statistiche"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:937
|
||||
#: client/scenes/stream_gui.cpp:893
|
||||
msgid "Compact view"
|
||||
msgstr "Modalità compatta"
|
||||
|
||||
@@ -613,6 +694,9 @@ msgstr "Impossibile verificare il PIN"
|
||||
msgid "Pairing is disabled on server"
|
||||
msgstr "L'associazione è disattivata sul server"
|
||||
|
||||
#~ msgid "Enable video passthrough in lobby"
|
||||
#~ msgstr "Abilita la visualizzazione reale in ingresso"
|
||||
|
||||
#~ msgid "Enable Snapdragon Game Super Resolution"
|
||||
#~ msgstr "Attivare Snapdragon Game Super Resolution"
|
||||
|
||||
|
||||
+154
-136
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-10-21 11:44+0900\n"
|
||||
"POT-Creation-Date: 2025-11-20 11:42+0900\n"
|
||||
"PO-Revision-Date: 2025-04-10 07:14+0900\n"
|
||||
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
|
||||
"Language-Team: Japanese <>\n"
|
||||
@@ -12,47 +12,52 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: dashboard/apk_installer.cpp:165
|
||||
#: dashboard/apk_installer.cpp:137
|
||||
#, kde-format
|
||||
msgid "Cannot save APK file: %1"
|
||||
msgstr "APKファイルを保存できませんでした:%1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:171
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB / %2 MB"
|
||||
msgstr "APKのダウンロード:%1 MB / %2 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:167
|
||||
#: dashboard/apk_installer.cpp:173
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB"
|
||||
msgstr "APKのダウンロード:%1 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:176
|
||||
#: dashboard/apk_installer.cpp:182
|
||||
#, kde-format
|
||||
msgid "Download cancelled"
|
||||
msgstr "ダウンロードはキャンセルされました"
|
||||
|
||||
#: dashboard/apk_installer.cpp:192
|
||||
#: dashboard/apk_installer.cpp:198
|
||||
#, kde-format
|
||||
msgid "Cannot download APK: %1"
|
||||
msgstr "APKをダウンロードできませんでした:%1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:215
|
||||
#: dashboard/apk_installer.cpp:221
|
||||
#, kde-format
|
||||
msgid "Installing APK"
|
||||
msgstr "APKをインストール中"
|
||||
|
||||
#: dashboard/apk_installer.cpp:219
|
||||
#: dashboard/apk_installer.cpp:225
|
||||
#, kde-format
|
||||
msgid "adb failed to start: %1"
|
||||
msgstr "adbの起動に失敗しました:%1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:229
|
||||
#: dashboard/apk_installer.cpp:235
|
||||
#, kde-format
|
||||
msgid "adb exited abnormally: %1"
|
||||
msgstr "adbは失敗しました:%1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:237
|
||||
#: dashboard/apk_installer.cpp:243
|
||||
#, kde-format
|
||||
msgid "The 'adb install' command failed: exit code %1"
|
||||
msgstr "「adb install」コマンドは失敗しました、コード%1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:242
|
||||
#: dashboard/apk_installer.cpp:248
|
||||
#, kde-format
|
||||
msgid "Installation successful"
|
||||
msgstr "インストール成功"
|
||||
@@ -75,8 +80,14 @@ msgstr "最新リリースを確認中"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
|
||||
#, kde-format
|
||||
msgid "No precompiled APK is available for this version"
|
||||
msgstr "現バージョンに対応したAPKはダウンロード不可です"
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "現在バージョン用の公式APKは提供されていません"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:309
|
||||
#: dashboard/qml/Main.qml:394 dashboard/qml/WizardPage.qml:211
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
msgstr "ADBはインストールされていません"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:47
|
||||
#, kde-format
|
||||
@@ -125,7 +136,7 @@ msgstr "WiVRnをインストールする"
|
||||
msgid "Headset statistics"
|
||||
msgstr "HMDの統計情報"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:375
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:399
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "HMD"
|
||||
@@ -211,33 +222,28 @@ msgstr "ペアリングを有効化する"
|
||||
msgid "Pair a new headset"
|
||||
msgstr "新しいHMDをペアリングする"
|
||||
|
||||
#: dashboard/qml/Main.qml:129
|
||||
#: dashboard/qml/Main.qml:108
|
||||
#, kde-format
|
||||
msgid "The server does not have CAP_SYS_NICE capabilities"
|
||||
msgstr "サーバーはCAP_SYS_NICE権限がありません"
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "Avahiデーモンはインストールサれていません"
|
||||
|
||||
#: dashboard/qml/Main.qml:136 dashboard/qml/Main.qml:150
|
||||
#: dashboard/qml/Main.qml:116
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "Avahiデーモンが起動していません"
|
||||
|
||||
#: dashboard/qml/Main.qml:123 dashboard/qml/Main.qml:137
|
||||
#: dashboard/qml/Main.qml:189
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "直す"
|
||||
|
||||
#: dashboard/qml/Main.qml:144
|
||||
#: dashboard/qml/Main.qml:131
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "ファイヤーウォールでポート9757が開いていないようです"
|
||||
|
||||
#: dashboard/qml/Main.qml:159
|
||||
#, kde-format
|
||||
msgid "The CAP_SYS_NICE capability will be used when the server is restarted"
|
||||
msgstr "CAP_SYS_NICE権限を使うため、サーバーの再起動が必要です"
|
||||
|
||||
#: dashboard/qml/Main.qml:165
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "今すぐ再起動する"
|
||||
|
||||
#: dashboard/qml/Main.qml:176
|
||||
#: dashboard/qml/Main.qml:145
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
@@ -245,12 +251,12 @@ msgstr ""
|
||||
"NVIDIAの場合は、GPUドライバー・バージョン565.77以上が必要です。現バージョン:"
|
||||
"%1"
|
||||
|
||||
#: dashboard/qml/Main.qml:182
|
||||
#: dashboard/qml/Main.qml:151
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "詳細情報"
|
||||
|
||||
#: dashboard/qml/Main.qml:190
|
||||
#: dashboard/qml/Main.qml:159
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
@@ -259,7 +265,7 @@ msgstr ""
|
||||
"AMD GPUの場合は「Mesa (radv)」ドライバーを使ってください\n"
|
||||
"AMDVLKやAMDGPU-PROなどはvaapiエンコーダーに対応していません"
|
||||
|
||||
#: dashboard/qml/Main.qml:198
|
||||
#: dashboard/qml/Main.qml:167
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -268,75 +274,98 @@ msgstr ""
|
||||
"OpenVR実装ライブラリーは見つかりませんでした。SteamVRゲームを実行するには、\n"
|
||||
"xrizerかOpenCompositeをインストールしましょう。"
|
||||
|
||||
#: dashboard/qml/Main.qml:207
|
||||
#: dashboard/qml/Main.qml:175
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr "SteamはSnapとしてインストールされていますが、Snapはサポートサれていません。"
|
||||
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr ""
|
||||
"SteamはFlatpakとしてインストールされていますが、必要な権限が設定されていません。"
|
||||
|
||||
#: dashboard/qml/Main.qml:198
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "設定変更を有効にするにはサーバーを再起動してください。"
|
||||
|
||||
#: dashboard/qml/Main.qml:204
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "今すぐ再起動する"
|
||||
|
||||
#: dashboard/qml/Main.qml:229
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "サーバーは起動できませんでした"
|
||||
|
||||
#: dashboard/qml/Main.qml:213 dashboard/qml/TroubleshootPage.qml:85
|
||||
#: dashboard/qml/Main.qml:235 dashboard/qml/TroubleshootPage.qml:85
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "ログを見る"
|
||||
|
||||
#: dashboard/qml/Main.qml:242
|
||||
#: dashboard/qml/Main.qml:264
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "作動中"
|
||||
|
||||
#: dashboard/qml/Main.qml:257
|
||||
#: dashboard/qml/Main.qml:279
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "ペアリング"
|
||||
|
||||
#: dashboard/qml/Main.qml:270
|
||||
#: dashboard/qml/Main.qml:292
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "暗証番号:%1"
|
||||
|
||||
#: dashboard/qml/Main.qml:278 dashboard/qml/WizardPage.qml:374
|
||||
#: dashboard/qml/Main.qml:300 dashboard/qml/WizardPage.qml:374
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "USBで接続する"
|
||||
|
||||
#: dashboard/qml/Main.qml:289
|
||||
#: dashboard/qml/Main.qml:311
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "HMDが接続されていないか、HMDが開発者モードになっていません"
|
||||
|
||||
#: dashboard/qml/Main.qml:297
|
||||
#: dashboard/qml/Main.qml:319
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "切断する"
|
||||
|
||||
#: dashboard/qml/Main.qml:314
|
||||
#: dashboard/qml/Main.qml:336
|
||||
#, kde-format
|
||||
msgctxt "automatically started application"
|
||||
msgid "Application"
|
||||
msgstr "アプリ"
|
||||
|
||||
#: dashboard/qml/Main.qml:335
|
||||
#: dashboard/qml/Main.qml:357
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "ストリーム情報"
|
||||
|
||||
#: dashboard/qml/Main.qml:354
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "セットアップウィザード"
|
||||
|
||||
#: dashboard/qml/Main.qml:361
|
||||
#: dashboard/qml/Main.qml:385
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "アプリをインストール"
|
||||
|
||||
#: dashboard/qml/Main.qml:382 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:406 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "設定"
|
||||
|
||||
#: dashboard/qml/Main.qml:389 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:413 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "問題解決"
|
||||
@@ -353,29 +382,29 @@ msgctxt "choose a custom application to start"
|
||||
msgid "Custom"
|
||||
msgstr "カスタム"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:76
|
||||
#: dashboard/qml/SelectGame.qml:72
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the application to start"
|
||||
msgid "Browse"
|
||||
msgstr "検索"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:41
|
||||
#: dashboard/qml/SettingsPage.qml:31
|
||||
#, kde-format
|
||||
msgctxt "automatic foveation setup"
|
||||
msgid "Manual foveation"
|
||||
msgstr "マニュアル・フォビエーション"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:47
|
||||
#: dashboard/qml/SettingsPage.qml:37
|
||||
#, kde-format
|
||||
msgid "Foveation strength:"
|
||||
msgstr "フォビエーションの強さ"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:63
|
||||
#: dashboard/qml/SettingsPage.qml:53
|
||||
#, kde-format
|
||||
msgid "%1 %"
|
||||
msgstr "%1 %"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:69
|
||||
#: dashboard/qml/SettingsPage.qml:59
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A stronger foveation makes the image sharper in the center than in the "
|
||||
@@ -395,157 +424,151 @@ msgstr ""
|
||||
"お勧めの設定は、アイトラッキングを対応したHMDの場合は20%~50%、アイトラッキン"
|
||||
"グを対応しないHMDの場合は50%~70%です。"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:75
|
||||
#: dashboard/qml/SettingsPage.qml:65
|
||||
#, kde-format
|
||||
msgctxt "weaker foveation"
|
||||
msgid "Weaker"
|
||||
msgstr "弱"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:86
|
||||
#: dashboard/qml/SettingsPage.qml:76
|
||||
#, kde-format
|
||||
msgctxt "stronger foveation"
|
||||
msgid "Stronger"
|
||||
msgstr "強"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:96
|
||||
#: dashboard/qml/SettingsPage.qml:86
|
||||
#, kde-format
|
||||
msgid "Bitrate:"
|
||||
msgstr "ビットレート"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:100 dashboard/qml/SettingsPage.qml:102
|
||||
#: dashboard/qml/SettingsPage.qml:90 dashboard/qml/SettingsPage.qml:92
|
||||
#, kde-format
|
||||
msgctxt "bitrate"
|
||||
msgid "%1 Mbit/s"
|
||||
msgstr "%1 Mbps"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:112
|
||||
#: dashboard/qml/SettingsPage.qml:104
|
||||
#, kde-format
|
||||
msgid "Encoder layout:"
|
||||
msgstr "エンコーダー・レイアウト"
|
||||
msgid "The current encoder configuration is not supported"
|
||||
msgstr "現在のエンコーダー構成はサポートされていません"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:115
|
||||
#: dashboard/qml/SettingsPage.qml:109
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Automatic"
|
||||
msgstr "自動"
|
||||
msgid "Reset"
|
||||
msgstr "もとに戻す"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:119
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Manual"
|
||||
msgstr "マニュアル"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:123
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Default preset"
|
||||
msgstr "デフォルト・プリセット"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:140
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Low latency preset"
|
||||
msgstr "低遅延プリセット"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:159
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Safe preset"
|
||||
msgstr "安定プリセット"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:182
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
|
||||
"Drag an edge to resize or remove encoders."
|
||||
msgstr ""
|
||||
"新しいエンコーダー追加するには、既存エンコーダの角をクリックして分割しましょ"
|
||||
"う。\n"
|
||||
"角を引っ張って大きさの調整をできます。大きさゼロで削除となります。"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:209
|
||||
#: dashboard/qml/SettingsPage.qml:116
|
||||
#, kde-format
|
||||
msgid "Encoder:"
|
||||
msgstr "エンコーダー"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:218
|
||||
#: dashboard/qml/SettingsPage.qml:122
|
||||
#, kde-format
|
||||
msgctxt "automatic encoder setup"
|
||||
msgid "Auto"
|
||||
msgstr "自動"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:223
|
||||
#: dashboard/qml/SettingsPage.qml:126
|
||||
#, kde-format
|
||||
msgid "nvenc (NVIDIA GPUs)"
|
||||
msgstr "nvenc (NVIDIA GPU)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:228
|
||||
#: dashboard/qml/SettingsPage.qml:130
|
||||
#, kde-format
|
||||
msgid "vaapi (AMD and Intel GPUs)"
|
||||
msgstr "vaapi (AMDやIntel GPU)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:233
|
||||
#: dashboard/qml/SettingsPage.qml:134
|
||||
#, kde-format
|
||||
msgid "Vulkan (Any modern GPU)"
|
||||
msgstr "Vulkan(あらゆるGPU)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:138
|
||||
#, kde-format
|
||||
msgid "x264 (software encoding)"
|
||||
msgstr "x264 (ソフトエンコード)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:238
|
||||
#, kde-format
|
||||
msgid "Vulkan (Vulkan Video)"
|
||||
msgstr "Vulkan (Vulkan Video)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:261
|
||||
#: dashboard/qml/SettingsPage.qml:155
|
||||
#, kde-format
|
||||
msgid "\"Auto\" will use hardware acceleration if it is available"
|
||||
msgstr "「自動」で当システムにとって最も安定した設定を使用します。"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:267
|
||||
#: dashboard/qml/SettingsPage.qml:160
|
||||
#, kde-format
|
||||
msgid "Codec:"
|
||||
msgstr "コーデック"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:274
|
||||
#: dashboard/qml/SettingsPage.qml:166
|
||||
#, kde-format
|
||||
msgctxt "automatic codec setup"
|
||||
msgid "Auto"
|
||||
msgstr "自動"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:278
|
||||
#: dashboard/qml/SettingsPage.qml:170
|
||||
#, kde-format
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:282
|
||||
#: dashboard/qml/SettingsPage.qml:174
|
||||
#, kde-format
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:286
|
||||
#: dashboard/qml/SettingsPage.qml:178
|
||||
#, kde-format
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:308
|
||||
#: dashboard/qml/SettingsPage.qml:206
|
||||
#, kde-format
|
||||
msgid "10 bits"
|
||||
msgstr "10ビット"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:211
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"10-bit encoding improves image quality but is not supported by all codecs "
|
||||
"and hardware"
|
||||
msgstr ""
|
||||
"10ビットのエンコードは画質を向上させますが、全てのハードウェアやコーデックが"
|
||||
"対応しているわけではありません"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:221
|
||||
#, kde-format
|
||||
msgid "Advanced options"
|
||||
msgstr "詳細設定"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:314
|
||||
#: dashboard/qml/SettingsPage.qml:227
|
||||
#, kde-format
|
||||
msgid "Check system configuration on start"
|
||||
msgstr "起動時にパソコン設定を確認する"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:318
|
||||
#: dashboard/qml/SettingsPage.qml:233
|
||||
#, kde-format
|
||||
msgid "Forward keyboard & mouse from headset"
|
||||
msgstr "キーボードとマウスの転送"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:236
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Keyboard and mouse connected to the client will act as if connected to the "
|
||||
"server. Client OS may reserve specific keys and combinations, which cannot "
|
||||
"be forwarded."
|
||||
msgstr ""
|
||||
"HMDに接続されたキーボードやマウスは、パソコンに接続されているかのように動作します。"
|
||||
"HMDのOSのグローバルショートカットとして使われているキーコンビネーションは転送できません。"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:241
|
||||
#, kde-format
|
||||
msgid "Enable debug window"
|
||||
msgstr "デバッグ・ウィンドウを表示する"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:325
|
||||
#: dashboard/qml/SettingsPage.qml:248
|
||||
#, kde-format
|
||||
msgid "Enable SteamVR tracked devices support"
|
||||
msgstr "SteamVR・ライトハウス・トラッキング"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:328
|
||||
#: dashboard/qml/SettingsPage.qml:251
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Allows the use of lighthouse-based controllers and trackers.\n"
|
||||
@@ -558,44 +581,44 @@ msgstr ""
|
||||
"すべてのデバイスの電源が入ってからHMDを接続しましょう。\n"
|
||||
"キャリブレーションはmotocなどのソフトウェアで行います。"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:336
|
||||
#: dashboard/qml/SettingsPage.qml:259
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "特定なADBの場所"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:347
|
||||
#: dashboard/qml/SettingsPage.qml:270
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "ADBの場所:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:356
|
||||
#: dashboard/qml/SettingsPage.qml:279
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the adb binary"
|
||||
msgid "Browse"
|
||||
msgstr "検索する"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:366
|
||||
#: dashboard/qml/SettingsPage.qml:289
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "デフォルト"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:380
|
||||
#: dashboard/qml/SettingsPage.qml:303
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "カスタム"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:385
|
||||
#: dashboard/qml/SettingsPage.qml:308
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "無し"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:393
|
||||
#: dashboard/qml/SettingsPage.qml:316
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "OpenVR実装ライブラリー"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:419
|
||||
#: dashboard/qml/SettingsPage.qml:342
|
||||
#, kde-format
|
||||
msgid "Library path, excluding bin/linux64/vrclient.so"
|
||||
msgstr "ライブラリーの場所(bin/linux64/vrclient.so 無し)"
|
||||
@@ -825,11 +848,6 @@ msgstr "か"
|
||||
msgid "Install over USB"
|
||||
msgstr "USBでインストール"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:211
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
msgstr "ADBはインストールされていません"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:219
|
||||
#, kde-format
|
||||
msgid ""
|
||||
@@ -864,7 +882,7 @@ msgid ""
|
||||
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
|
||||
"running."
|
||||
msgstr ""
|
||||
"WiVRnはSteamVRの変わりに使うものです。両方を同時に走らせないように気をつけま"
|
||||
"WiVRnはSteamVRの代わりに使うものです。両方を同時に走らせないように気をつけま"
|
||||
"しょう。"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:359
|
||||
@@ -897,8 +915,8 @@ msgid ""
|
||||
"If the server is not visible or the connection fails, check that ports 5353 "
|
||||
"(UDP) and 9757 (TCP and UDP) are open in your firewall."
|
||||
msgstr ""
|
||||
"サーバーが見えない・サーバーに接続できない場合、ファイアウォールのポート"
|
||||
"5353(UDP)と9757(TCPとUDPの両方)が開いていることを確認しましょう。"
|
||||
"サーバーが見えない・サーバーに接続できない場合、ファイアウォールのポート5353"
|
||||
"(UDP)と9757(TCPとUDPの両方)が開いていることを確認しましょう。"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:406
|
||||
#, kde-format
|
||||
@@ -932,12 +950,12 @@ msgstr "完了"
|
||||
msgid "Finished"
|
||||
msgstr "完了しました"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:594
|
||||
#: dashboard/wivrn_server.cpp:533
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:595
|
||||
#: dashboard/wivrn_server.cpp:534
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "OpenComposite"
|
||||
|
||||
+227
-142
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.16\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-09-29 08:35+0900\n"
|
||||
"POT-Creation-Date: 2025-11-20 11:42+0900\n"
|
||||
"PO-Revision-Date: 2024-06-20 10:33+0900\n"
|
||||
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
|
||||
"Language: Japanese\n"
|
||||
@@ -10,121 +10,132 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: client/scene.cpp:72
|
||||
#: client/scene.cpp:73
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "互換性のあるスワップチェーンは見つからなかった"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
#: client/scenes/app_launcher.cpp:128
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "WiVRnサーバーに接続しました。"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:137
|
||||
#: client/scenes/app_launcher.cpp:130
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "{}に接続しました。"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:143
|
||||
#: client/scenes/app_launcher.cpp:136
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr "VRアプリを起動してVRに入りましょう!"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:153
|
||||
#: client/scenes/app_launcher.cpp:146
|
||||
msgid "Start an application on your computer or select one to start streaming."
|
||||
msgstr "パソコンでVRアプリを起動するか、ここからアプリを選択しましょう。"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:155
|
||||
#: client/scenes/app_launcher.cpp:148
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr "{}でVRアプリを起動するか、ここからアプリを選択しましょう。"
|
||||
|
||||
#: client/scenes/lobby.cpp:185
|
||||
#: client/scenes/lobby.cpp:230
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "互換性のないサーバー(プロトコルのフィールドは欠落)"
|
||||
|
||||
#: client/scenes/lobby.cpp:188
|
||||
#: client/scenes/lobby.cpp:233
|
||||
#, c++-format
|
||||
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
|
||||
msgstr "互換性のないサーバー(クライエント{}、サーバー{})"
|
||||
|
||||
#: client/scenes/lobby.cpp:203
|
||||
#: client/scenes/lobby.cpp:248
|
||||
#, c++-format
|
||||
msgid "Cannot resolve hostname: {}"
|
||||
msgstr "ホスト名解決に失敗:{}"
|
||||
|
||||
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
|
||||
#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341
|
||||
#, c++-format
|
||||
msgid "Cannot connect to {} ({}): {}"
|
||||
msgstr "{}に接続できませんでした:({}) {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:379
|
||||
#: client/scenes/lobby.cpp:424
|
||||
msgid "Waiting for connection"
|
||||
msgstr "接続を待っています"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:107
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
msgid "Passthrough"
|
||||
msgstr "パススルー"
|
||||
|
||||
#: client/scenes/lobby.cpp:1322
|
||||
msgid "Default environment"
|
||||
msgstr "デフォルトのホーム環境"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:99
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "ノーマル"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:110
|
||||
#: client/scenes/lobby_gui.cpp:102
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "クオリティ"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:112
|
||||
#: client/scenes/lobby_gui.cpp:104
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "無効"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:120 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/stream_gui.cpp:944
|
||||
#: client/scenes/lobby_gui.cpp:112 client/scenes/lobby_gui.cpp:256
|
||||
#: client/scenes/stream_gui.cpp:967
|
||||
msgid "Disconnect"
|
||||
msgstr "切断する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:140 client/scenes/stream_gui.cpp:940
|
||||
#: client/scenes/lobby_gui.cpp:132 client/scenes/lobby_gui_customize.cpp:653
|
||||
#: client/scenes/lobby_gui_customize.cpp:744
|
||||
#: client/scenes/lobby_gui_customize.cpp:800 client/scenes/stream_gui.cpp:963
|
||||
msgid "Close"
|
||||
msgstr "やめる"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:146
|
||||
#: client/scenes/lobby_gui.cpp:138
|
||||
msgid "Connection"
|
||||
msgstr "接続"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:148
|
||||
#: client/scenes/lobby_gui.cpp:140
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "{}に接続中"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:178
|
||||
#: client/scenes/lobby_gui.cpp:170
|
||||
msgid "PIN"
|
||||
msgstr "暗証番号"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:200
|
||||
#: client/scenes/lobby_gui.cpp:192
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "パソコンで表示された暗証番号を入力してください"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:290
|
||||
#: client/scenes/lobby_gui.cpp:282
|
||||
msgid "Name"
|
||||
msgstr "表示名"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:301
|
||||
#: client/scenes/lobby_gui.cpp:293
|
||||
msgid "Address"
|
||||
msgstr "アドレス"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:310
|
||||
#: client/scenes/lobby_gui.cpp:302
|
||||
msgid "Port"
|
||||
msgstr "ポート番号"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:318
|
||||
#: client/scenes/lobby_gui.cpp:310
|
||||
msgid "TCP only"
|
||||
msgstr "TCPのみを使用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:325 client/scenes/stream_gui.cpp:908
|
||||
#: client/scenes/lobby_gui.cpp:317 client/scenes/lobby_gui_customize.cpp:555
|
||||
#: client/scenes/stream_gui.cpp:920
|
||||
msgid "Cancel"
|
||||
msgstr "やめる"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:339
|
||||
#: client/scenes/lobby_gui.cpp:331
|
||||
msgid "Save"
|
||||
msgstr "保存する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:392
|
||||
#: client/scenes/lobby_gui.cpp:384
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -132,45 +143,46 @@ msgstr ""
|
||||
"ローカルネットワークでWiVRnサーバーを\n"
|
||||
"起動してみて下さい"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:424
|
||||
#: client/scenes/lobby_gui.cpp:416
|
||||
msgid "Autoconnect"
|
||||
msgstr "自動接続"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
#: client/scenes/lobby_gui.cpp:442
|
||||
msgid "Connect"
|
||||
msgstr "接続する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:460 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:452 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "互換性のないサーバーです"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:462
|
||||
#: client/scenes/lobby_gui.cpp:454
|
||||
msgid "Server not available"
|
||||
msgstr "サーバーは利用不可です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
#: client/scenes/lobby_gui.cpp:536
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "日本語"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558
|
||||
#: client/scenes/lobby_gui.cpp:550
|
||||
msgid "Language"
|
||||
msgstr "言語"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558 client/scenes/lobby_gui.cpp:560
|
||||
#: client/scenes/lobby_gui.cpp:550 client/scenes/lobby_gui.cpp:552
|
||||
msgid "System language"
|
||||
msgstr "デバイス言語"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:585
|
||||
#: client/scenes/lobby_gui.cpp:577 client/scenes/stream_gui.cpp:415
|
||||
msgid "Refresh rate"
|
||||
msgstr "リフレッシュレート"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:585 client/scenes/lobby_gui.cpp:587
|
||||
#: client/scenes/lobby_gui.cpp:577 client/scenes/lobby_gui.cpp:579
|
||||
#: client/scenes/stream_gui.cpp:415 client/scenes/stream_gui.cpp:417
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "自動"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:594
|
||||
#: client/scenes/lobby_gui.cpp:586 client/scenes/stream_gui.cpp:425
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -178,60 +190,72 @@ msgstr ""
|
||||
"アプリケーションのパフォーマンスを基づいて自動的に設定します。\n"
|
||||
"変更時にチラツキが発生する可能性があります。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:611
|
||||
#: client/scenes/lobby_gui.cpp:603 client/scenes/stream_gui.cpp:443
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "最低リフレッシュレート"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:634
|
||||
#: client/scenes/lobby_gui.cpp:629
|
||||
msgid "Foveation level"
|
||||
msgstr "フォビエーション・レベル"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:651
|
||||
msgid "Resolution scale"
|
||||
msgstr "解像度"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:638
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#, c-format, c++-format
|
||||
msgid "%d%% - {}x{} per eye"
|
||||
msgstr "%d%% - 目あたり{}x{}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:649
|
||||
#: client/scenes/lobby_gui.cpp:666
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr ""
|
||||
"{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#: client/scenes/lobby_gui.cpp:672
|
||||
msgid "High power mode"
|
||||
msgstr "高電力モード"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr "HMDの性能問題を緩和するため、電力を増加させます。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:681
|
||||
msgid "Enable microphone"
|
||||
msgstr "マイクを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:664
|
||||
#: client/scenes/lobby_gui.cpp:690
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "未処理のマイク音声"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#: client/scenes/lobby_gui.cpp:696
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "ノイズ除去などのフィルターを無効化する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:677
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "ハンドトラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:683 client/scenes/lobby_gui.cpp:695
|
||||
#: client/scenes/lobby_gui.cpp:707 client/scenes/lobby_gui.cpp:724
|
||||
#: client/scenes/lobby_gui.cpp:769
|
||||
#: client/scenes/lobby_gui.cpp:709 client/scenes/lobby_gui.cpp:721
|
||||
#: client/scenes/lobby_gui.cpp:733 client/scenes/lobby_gui.cpp:750
|
||||
#: client/scenes/lobby_gui_customize.cpp:540
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "デバイスはこの機能をサポートしていません"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:689
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "アイトラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
msgid "Enable face tracking"
|
||||
msgstr "顔トラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
msgid "Enable body tracking"
|
||||
msgstr "ボディラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:729
|
||||
#: client/scenes/lobby_gui.cpp:755
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -242,11 +266,11 @@ msgstr ""
|
||||
"そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ"
|
||||
"とになる。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:739
|
||||
#: client/scenes/lobby_gui.cpp:765
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "下半身トラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:745
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -256,11 +280,11 @@ msgstr ""
|
||||
"Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを"
|
||||
"有効する必要がある。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:748
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "腰のトラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:754
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -268,15 +292,11 @@ msgstr ""
|
||||
"下半身トラッキングが有効な場合に使用可能。\n"
|
||||
"腰トラッカーを持ってる方は無効にしましょう。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:762
|
||||
msgid "Enable video passthrough in lobby"
|
||||
msgstr "ロビーでパススルーを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:773
|
||||
#: client/scenes/lobby_gui.cpp:788
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "ストリーミング中の設定パネル"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:776
|
||||
#: client/scenes/lobby_gui.cpp:791
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -284,15 +304,15 @@ msgstr ""
|
||||
"ストリーミング中にも設定パネルを表示できるようにします。\n"
|
||||
"両方のサムスティックを同時に押して切り替えることができます。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:790 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:805 client/scenes/stream_gui.cpp:463
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "OpenXRポストエフェクト"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:794 client/scenes/stream_gui.cpp:449
|
||||
#: client/scenes/lobby_gui.cpp:809 client/scenes/stream_gui.cpp:467
|
||||
msgid "Supersampling"
|
||||
msgstr "スーパーサンプリング"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814 client/scenes/stream_gui.cpp:470
|
||||
#: client/scenes/lobby_gui.cpp:829 client/scenes/stream_gui.cpp:488
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -300,11 +320,11 @@ msgstr ""
|
||||
"コントラストが高い部分のギザギザを低減する。\n"
|
||||
"ストリームの解像度は、HMDの解像度より高い場合は有用です。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:819 client/scenes/stream_gui.cpp:475
|
||||
#: client/scenes/lobby_gui.cpp:834 client/scenes/stream_gui.cpp:493
|
||||
msgid "Sharpening"
|
||||
msgstr "シャープ"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:839 client/scenes/stream_gui.cpp:496
|
||||
#: client/scenes/lobby_gui.cpp:854 client/scenes/stream_gui.cpp:514
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -312,125 +332,129 @@ msgstr ""
|
||||
"ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n"
|
||||
"ストリームの解像度は、HMDの解像度より低い場合に有用です。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:935 client/scenes/lobby_gui.cpp:943
|
||||
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
|
||||
#: client/scenes/lobby_gui.cpp:1038 client/scenes/lobby_gui.cpp:1046
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:374
|
||||
msgid "CPU time"
|
||||
msgstr "CPU使用時間"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
#: client/scenes/lobby_gui.cpp:1042
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "CPU使用時間、ミリ秒"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:949 client/scenes/lobby_gui.cpp:957
|
||||
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
|
||||
#: client/scenes/lobby_gui.cpp:1052 client/scenes/lobby_gui.cpp:1060
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:375
|
||||
msgid "GPU time"
|
||||
msgstr "GPU使用時間"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:953
|
||||
#: client/scenes/lobby_gui.cpp:1056
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "GPU使用時間、ミリ秒"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1120
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "マイクを有効にしますか?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1001
|
||||
#: client/scenes/lobby_gui.cpp:1125
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "アイトラッキングを有効にしますか?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1006
|
||||
#: client/scenes/lobby_gui.cpp:1130
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "フェースラッキングを有効にしますか?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui.cpp:1135
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "ボディトラッキングを有効にしますか?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1019
|
||||
#: client/scenes/lobby_gui.cpp:1143
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "WiVRnへようこそ!"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1043
|
||||
#: client/scenes/lobby_gui.cpp:1169
|
||||
msgid "Yes"
|
||||
msgstr "はい"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1050
|
||||
#: client/scenes/lobby_gui.cpp:1176
|
||||
msgid "No"
|
||||
msgstr "いいえ"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1069 client/scenes/lobby_gui.cpp:1716
|
||||
#: client/scenes/lobby_gui.cpp:1195 client/scenes/lobby_gui.cpp:1836
|
||||
msgid "Licenses"
|
||||
msgstr "ライセンス"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1394
|
||||
#: client/scenes/lobby_gui.cpp:1470
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "マイクは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1395
|
||||
#: client/scenes/lobby_gui.cpp:1471
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "マイクは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1404
|
||||
#: client/scenes/lobby_gui.cpp:1480
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "ハンドトラッキングは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1405
|
||||
#: client/scenes/lobby_gui.cpp:1481
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "ハンドラッキングは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1414
|
||||
#: client/scenes/lobby_gui.cpp:1490
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "アイトラッキングは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1415
|
||||
#: client/scenes/lobby_gui.cpp:1491
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "アイトラッキングは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1425
|
||||
#: client/scenes/lobby_gui.cpp:1501
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "フェーストラッキングは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1426
|
||||
#: client/scenes/lobby_gui.cpp:1502
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "フェーストラッキングは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1436
|
||||
#: client/scenes/lobby_gui.cpp:1512
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "ボディトラッキングは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1437
|
||||
#: client/scenes/lobby_gui.cpp:1513
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "ボディトラッキングは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1453
|
||||
#: client/scenes/lobby_gui.cpp:1529
|
||||
msgid "Add server"
|
||||
msgstr "サーバーを追加する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
#: client/scenes/lobby_gui.cpp:1815
|
||||
msgid "Server list"
|
||||
msgstr "サーバー"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1701 client/scenes/stream_gui.cpp:925
|
||||
#: client/scenes/lobby_gui.cpp:1818 client/scenes/stream_gui.cpp:948
|
||||
msgid "Settings"
|
||||
msgstr "設定"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1704
|
||||
#: client/scenes/lobby_gui.cpp:1821
|
||||
msgid "Post-processing"
|
||||
msgstr "ポストエフェクト"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
#: client/scenes/lobby_gui.cpp:1824
|
||||
msgid "Customize"
|
||||
msgstr "カスタマイズ"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1828
|
||||
msgid "Debug"
|
||||
msgstr "デバッグ"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1713
|
||||
#: client/scenes/lobby_gui.cpp:1833
|
||||
msgid "About"
|
||||
msgstr "WiVRnについて"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1719
|
||||
#: client/scenes/lobby_gui.cpp:1839
|
||||
msgid "Exit"
|
||||
msgstr "完了"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1736
|
||||
#: client/scenes/lobby_gui.cpp:1856
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -438,147 +462,208 @@ msgstr ""
|
||||
"メイン・パネルを動かすには、グリップを握るか、\n"
|
||||
"手のひらを上向きにしましょう。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1738
|
||||
#: client/scenes/lobby_gui.cpp:1858
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "グリップを握ってパネルを動かしましょう。"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:224
|
||||
#: client/scenes/lobby_gui_customize.cpp:233
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "環境リストをロードできませんでした:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:363
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "作者:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:367
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "サイズ:{:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:447
|
||||
msgid "Delete this model"
|
||||
msgstr "モデルを削除しますか?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:483
|
||||
#: client/scenes/lobby_gui_customize.cpp:689
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "{}をダウンロード中にHTTP {}が発生しました。"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:491
|
||||
#: client/scenes/lobby_gui_customize.cpp:697
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
"{}: {}"
|
||||
msgstr ""
|
||||
"{}をダウンロード中にCurlエラーが発生しました。\n"
|
||||
"{}: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:552
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "{}を削除しますか?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:556
|
||||
msgid "Delete"
|
||||
msgstr "削除"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:637
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "環境をロードできませんでした:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:645
|
||||
msgid "Loading environment"
|
||||
msgstr "ホーム環境をロード中"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:724
|
||||
msgid "Download more environments"
|
||||
msgstr "ホーム環境をダウンロード"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:732
|
||||
msgid "Open local glTF model"
|
||||
msgstr "glTFファイルを開く"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
msgid "Reproject"
|
||||
msgstr "リプロジェクション"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:225
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Blit"
|
||||
msgstr "レンダー"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:227
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "ネットワーク"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
|
||||
msgid "Download"
|
||||
msgstr "ダウンロード"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:373
|
||||
msgid "Upload"
|
||||
msgstr "アップロード"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:297
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "デコーダー {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:309
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "タイミング、ミリ秒"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:369
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "動画エンコード"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:370
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "送信"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "受信"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "デコード"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:373
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "描画"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:374
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "表示"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:375
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "予測時間"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:395
|
||||
#: client/scenes/stream_gui.cpp:345
|
||||
#, c++-format
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "「Motion-to-photon」推定遅延 {}ミリ秒"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:402
|
||||
#: client/scenes/stream_gui.cpp:352
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr "グリップを握ってパネルを動かしましょう。"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:868
|
||||
#: client/scenes/stream_gui.cpp:354 client/scenes/stream_gui.cpp:880
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "両方のサムスティックを同時に押すことで設定表示"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:426
|
||||
#: client/scenes/stream_gui.cpp:376
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "「Motion-to-photon」遅延"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:503
|
||||
#: client/scenes/stream_gui.cpp:521
|
||||
msgid "Foveation center override"
|
||||
msgstr "光学中心の調整"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:506
|
||||
#: client/scenes/stream_gui.cpp:524
|
||||
msgid "Enable"
|
||||
msgstr "有効"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
|
||||
#: client/scenes/stream_gui.cpp:532 client/scenes/stream_gui.cpp:579
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "仰角 {:.1f}°"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
|
||||
#: client/scenes/stream_gui.cpp:533 client/scenes/stream_gui.cpp:580
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "距離 {:.2f}m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:516
|
||||
#: client/scenes/stream_gui.cpp:534
|
||||
msgid "Default"
|
||||
msgstr "デフォルト"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:527
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Change"
|
||||
msgstr "編集"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:559
|
||||
#: client/scenes/stream_gui.cpp:577
|
||||
msgid "Use the thumbsticks to move the foveation center"
|
||||
msgstr "ジョイスティックを使って中心点を調整しましょう。"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:560
|
||||
#: client/scenes/stream_gui.cpp:578
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "AかBを押してキャンセル。"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:618
|
||||
#: client/scenes/stream_gui.cpp:636
|
||||
msgid "Running XR applications:"
|
||||
msgstr "XRアプリの実行"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:635
|
||||
#: client/scenes/stream_gui.cpp:653
|
||||
msgid "Overlays"
|
||||
msgstr "オーバーレイ"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:674
|
||||
#: client/scenes/stream_gui.cpp:692
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "終了シグナルを送信する"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:677
|
||||
msgid "Start"
|
||||
msgstr "実行する"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:922
|
||||
msgid "Stats"
|
||||
msgstr "統計情報"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:928
|
||||
#: client/scenes/stream_gui.cpp:935
|
||||
msgid "Applications"
|
||||
msgstr "アプリ"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:934
|
||||
#: client/scenes/stream_gui.cpp:938
|
||||
msgid "Start"
|
||||
msgstr "実行する"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:951
|
||||
msgid "Stats"
|
||||
msgstr "統計情報"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:957
|
||||
msgid "Statistics overlay"
|
||||
msgstr "統計オーバーレイ"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:937
|
||||
#: client/scenes/stream_gui.cpp:960
|
||||
msgid "Compact view"
|
||||
msgstr "コンパクト・モード"
|
||||
|
||||
|
||||
@@ -0,0 +1,981 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the WiVRn-dashboard package.
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2025 polyborea <patryklimerick@gmail.com>
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-11-11 21:12+0100\n"
|
||||
"PO-Revision-Date: 2025-11-14 09:22+0100\n"
|
||||
"Last-Translator: polyborea <patryklimerick@gmail.com>\n"
|
||||
"Language-Team: Polish <>\n"
|
||||
"Language: pl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
|
||||
#: dashboard/apk_installer.cpp:137
|
||||
#, kde-format
|
||||
msgid "Cannot save APK file: %1"
|
||||
msgstr "Nie można zapisać pliku APK: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:171
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB / %2 MB"
|
||||
msgstr "Pobieranie APK: %1 MB / %2 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:173
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB"
|
||||
msgstr "Pobieranie APK: %1 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:182
|
||||
#, kde-format
|
||||
msgid "Download cancelled"
|
||||
msgstr "Pobieranie anulowane"
|
||||
|
||||
#: dashboard/apk_installer.cpp:198
|
||||
#, kde-format
|
||||
msgid "Cannot download APK: %1"
|
||||
msgstr "Nie można pobrać APK: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:221
|
||||
#, kde-format
|
||||
msgid "Installing APK"
|
||||
msgstr "Instalowanie APK"
|
||||
|
||||
#: dashboard/apk_installer.cpp:225
|
||||
#, kde-format
|
||||
msgid "adb failed to start: %1"
|
||||
msgstr "Nie udało się uruchomić ADB: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:235
|
||||
#, kde-format
|
||||
msgid "adb exited abnormally: %1"
|
||||
msgstr "ADB nieoczekiwanie zakończył pracę: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:243
|
||||
#, kde-format
|
||||
msgid "The 'adb install' command failed: exit code %1"
|
||||
msgstr "Komenda 'adb install' zakończona niepowodzeniem: kod wyjścia %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:248
|
||||
#, kde-format
|
||||
msgid "Installation successful"
|
||||
msgstr "Instalacja przebiegła pomyślnie"
|
||||
|
||||
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "WiVRn"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
|
||||
#, kde-format
|
||||
msgid "Install the WiVRn app on your headset"
|
||||
msgstr "Zainstaluj aplikację WiVRn na swoich goglach"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:41 dashboard/qml/WizardPage.qml:157
|
||||
#: dashboard/qml/WizardPage.qml:192
|
||||
#, kde-format
|
||||
msgid "Checking latest release..."
|
||||
msgstr "Sprawdzanie najnowszego wydania..."
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
|
||||
#, kde-format
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "Nie ma APK dla tej wersji"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:309
|
||||
#: dashboard/qml/Main.qml:394 dashboard/qml/WizardPage.qml:211
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
msgstr "ABD nie jest zainstalowany"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:47
|
||||
#, kde-format
|
||||
msgid "Connect a headset and make sure developer mode is enabled"
|
||||
msgstr "Podłącz gogle i upewnij się że tryb programisty jest włączony"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Follow the instructions in the <a href=\"https://github.com/WiVRn/WiVRn/blob/"
|
||||
"master/docs/building.md#client-headset\">documentation</a> to build your own "
|
||||
"client."
|
||||
msgstr ""
|
||||
"Postępuj zgodnie z instrukcjami w <a href=\"https://github.com/WiVRn/WiVRn/"
|
||||
"blob/master/docs/building.md#client-headset\">dokumentacji</a> by "
|
||||
"skompilować własnego klienta."
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:67
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Wstecz"
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
msgid "Select your headset"
|
||||
msgstr "Wybierz swoje gogle"
|
||||
|
||||
#: dashboard/qml/DeviceCard.qml:46
|
||||
#, kde-format
|
||||
msgid "WiVRn is already installed on this device"
|
||||
msgstr "WiVRn jest już zainstalowany na tym urządzeniu"
|
||||
|
||||
#: dashboard/qml/DeviceCard.qml:54
|
||||
#, kde-format
|
||||
msgid "Reinstall WiVRn"
|
||||
msgstr "Przeinstaluj WiVRn"
|
||||
|
||||
#: dashboard/qml/DeviceCard.qml:54
|
||||
#, kde-format
|
||||
msgid "Install WiVRn"
|
||||
msgstr "Zainstaluj WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:399
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "Gogle"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:29
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 second ago"
|
||||
msgid_plural "Last connection: %1 seconds ago"
|
||||
msgstr[0] "Ostatnie połączenie: %1 sekundę temu"
|
||||
msgstr[1] "Ostatnie połączenie: %1 sekundy temu"
|
||||
msgstr[2] "Ostatnie połączenie: %1 sekund temu"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:31
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 minute ago"
|
||||
msgid_plural "Last connection: %1 minutes ago"
|
||||
msgstr[0] "Ostatnie połączenie: %1 minutę temu"
|
||||
msgstr[1] "Ostatnie połączenie: %1 minuty temu"
|
||||
msgstr[2] "Ostatnie połączenie: %1 minut temu"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:33
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 hour ago"
|
||||
msgid_plural "Last connection: %1 hours ago"
|
||||
msgstr[0] "Ostatnie połączenie: %1 godzinę temu"
|
||||
msgstr[1] "Ostatnie połączenie: %1 godziny temu"
|
||||
msgstr[2] "Ostatnie połączenie: %1 godzin temu"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:35
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 day ago"
|
||||
msgid_plural "Last connection: %1 days ago"
|
||||
msgstr[0] "Ostatnie połączenie: %1 dzień temu"
|
||||
msgstr[1] "Ostatnie połączenie: %1 dni temu"
|
||||
msgstr[2] "Ostatnie połączenie: %1 dni temu"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:40
|
||||
#, kde-format
|
||||
msgid "Rename headset"
|
||||
msgstr "Zmień nazwę gogli"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:48 dashboard/qml/HeadsetsPage.qml:116
|
||||
#, kde-format
|
||||
msgid "Rename"
|
||||
msgstr "Zmień nazwę"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38
|
||||
#: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263
|
||||
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
|
||||
#, kde-format
|
||||
msgid "Cancel"
|
||||
msgstr "Anuluj"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:64
|
||||
#, kde-format
|
||||
msgid "Headset name…"
|
||||
msgstr "Nazwa gogli…"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:128
|
||||
#, kde-format
|
||||
msgid "Remove"
|
||||
msgstr "Usuń"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:143
|
||||
#, kde-format
|
||||
msgid "Pairing enabled, PIN: %1"
|
||||
msgstr "Parowanie włączone, PIN: %1"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:148 dashboard/qml/TroubleshootPage.qml:50
|
||||
#, kde-format
|
||||
msgid "Disable pairing"
|
||||
msgstr "Wyłącz parowanie"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:166
|
||||
#, kde-format
|
||||
msgid "Start the WiVRn app on your headset and use the PIN: %1"
|
||||
msgstr "Uruchom aplikację WiVRn na goglach i użyj PINu: %1"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:166
|
||||
#, kde-format
|
||||
msgid "Enable pairing to allow your headset to connect to this computer"
|
||||
msgstr "Włącz parowanie aby zezwolić goglom na połączenie się z tym komputerem"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:171 dashboard/qml/TroubleshootPage.qml:45
|
||||
#, kde-format
|
||||
msgid "Enable pairing"
|
||||
msgstr "Włącz parowanie"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:191
|
||||
#, kde-format
|
||||
msgid "Pair a new headset"
|
||||
msgstr "Sparuj nowe gogle"
|
||||
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:12
|
||||
#, kde-format
|
||||
msgid "Headset statistics"
|
||||
msgstr "Statystyki gogli"
|
||||
|
||||
#: dashboard/qml/Main.qml:108
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "Daemon Avahi nie jest zainstalowany"
|
||||
|
||||
#: dashboard/qml/Main.qml:116
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "Daemon Avahi nie jest uruchomiony"
|
||||
|
||||
#: dashboard/qml/Main.qml:123 dashboard/qml/Main.qml:137
|
||||
#: dashboard/qml/Main.qml:189
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "Napraw to"
|
||||
|
||||
#: dashboard/qml/Main.qml:131
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "Zapora sieciowa nie przepuszcza portu 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:145
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
msgstr ""
|
||||
"Karty graficzne NVIDIA wymagają sterownika w wersji co najmniej 565.77, a "
|
||||
"aktualna wersja to %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:151
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "Więcej informacji"
|
||||
|
||||
#: dashboard/qml/Main.qml:159
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
"Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO"
|
||||
msgstr ""
|
||||
"Używaj sterownika Mesa (radv) z kartami AMD\n"
|
||||
"Enkodowanie sprzętowe VA-API nie działa ani z AMDVLK ani z AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:167
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
"Install xrizer or OpenComposite."
|
||||
msgstr ""
|
||||
"Nie wykryto kompatybilności OpenVR. Gry ze Steama nie zadziałają w VR.\n"
|
||||
"Zainstaluj xrizer lub OpenComposite."
|
||||
|
||||
#: dashboard/qml/Main.qml:175
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr "Steam jest zainstalowany ze Snapa a WiVRn tego nie wspiera."
|
||||
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr ""
|
||||
"Steam jest zainstalowany z Flatpaka ale nie ma wystarczających uprawnień."
|
||||
|
||||
#: dashboard/qml/Main.qml:198
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "Uruchom ponownie serwer, aby zmiany konfiguracji zaczęły obowiązywać"
|
||||
|
||||
#: dashboard/qml/Main.qml:204
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "Uruchom ponownie teraz"
|
||||
|
||||
#: dashboard/qml/Main.qml:229
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "Uruchomienie serwera nie powiodło się"
|
||||
|
||||
#: dashboard/qml/Main.qml:235 dashboard/qml/TroubleshootPage.qml:85
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "Otwórz logi serwera"
|
||||
|
||||
#: dashboard/qml/Main.qml:264
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "Uruchomiony"
|
||||
|
||||
#: dashboard/qml/Main.qml:279
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "Parowanie"
|
||||
|
||||
#: dashboard/qml/Main.qml:292
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "PIN: %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:300 dashboard/qml/WizardPage.qml:374
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Połącz przez USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:311
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "Gogle są niepodłączone lub nie są w trybie programisty"
|
||||
|
||||
#: dashboard/qml/Main.qml:319
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Rozłącz"
|
||||
|
||||
#: dashboard/qml/Main.qml:336
|
||||
#, kde-format
|
||||
msgctxt "automatically started application"
|
||||
msgid "Application"
|
||||
msgstr "Aplikacja"
|
||||
|
||||
#: dashboard/qml/Main.qml:357
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Informacje o Steamie"
|
||||
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Kreator"
|
||||
|
||||
#: dashboard/qml/Main.qml:385
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Zainstaluj aplikację"
|
||||
|
||||
#: dashboard/qml/Main.qml:406 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "Ustawienia"
|
||||
|
||||
#: dashboard/qml/Main.qml:413 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "Rozwiąż problemy"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
msgid "None"
|
||||
msgstr "Brak"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:20
|
||||
#, kde-format
|
||||
msgctxt "choose a custom application to start"
|
||||
msgid "Custom"
|
||||
msgstr "Niestandardowa"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:72
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the application to start"
|
||||
msgid "Browse"
|
||||
msgstr "Przeglądaj"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:31
|
||||
#, kde-format
|
||||
msgctxt "automatic foveation setup"
|
||||
msgid "Manual foveation"
|
||||
msgstr "Manualna foveacja"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:37
|
||||
#, kde-format
|
||||
msgid "Foveation strength:"
|
||||
msgstr "Siła foveacji:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:53
|
||||
#, kde-format
|
||||
msgid "%1 %"
|
||||
msgstr "%1 %"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:59
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A stronger foveation makes the image sharper in the center than in the "
|
||||
"periphery and makes the decoding faster. This is better for fast paced "
|
||||
"games.\n"
|
||||
"\n"
|
||||
"A weaker foveation gives a uniform sharpness in the whole image.\n"
|
||||
"\n"
|
||||
"The recommended values are between 20% and 50% for headsets without eye "
|
||||
"tracking and between 50% and 70% for headsets with eye tracking."
|
||||
msgstr ""
|
||||
"Z silniejszą foveacją obraz jest ostrzejszy na środku niż na brzegach co "
|
||||
"przyspiesza dekodowanie obrazu. Odpowiednie dla dynamicznych gier.\n"
|
||||
"\n"
|
||||
"Słabsza foveacja daje równomierną ostrość na całym obrazie.\n"
|
||||
"\n"
|
||||
"Zalecane wartości to od 20% do 50% dla gogli bez śledzenia wzroku, oraz "
|
||||
"od 50% do 70% dla gogli ze śledzeniem wzroku."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:65
|
||||
#, kde-format
|
||||
msgctxt "weaker foveation"
|
||||
msgid "Weaker"
|
||||
msgstr "Słabsza"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:76
|
||||
#, kde-format
|
||||
msgctxt "stronger foveation"
|
||||
msgid "Stronger"
|
||||
msgstr "Silniejsza"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:86
|
||||
#, kde-format
|
||||
msgid "Bitrate:"
|
||||
msgstr "Przepływność:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:90 dashboard/qml/SettingsPage.qml:92
|
||||
#, kde-format
|
||||
msgctxt "bitrate"
|
||||
msgid "%1 Mbit/s"
|
||||
msgstr "%1 Mbit/s"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:104
|
||||
#, kde-format
|
||||
msgid "The current encoder configuration is not supported"
|
||||
msgstr "Wybrana obecnie konfiguracja enkodera nie jest wspierana"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:109
|
||||
#, kde-format
|
||||
msgid "Reset"
|
||||
msgstr "Resetuj"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:116
|
||||
#, kde-format
|
||||
msgid "Encoder:"
|
||||
msgstr "Enkoder:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:122
|
||||
#, kde-format
|
||||
msgctxt "automatic encoder setup"
|
||||
msgid "Auto"
|
||||
msgstr "Auto"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:126
|
||||
#, kde-format
|
||||
msgid "nvenc (NVIDIA GPUs)"
|
||||
msgstr "NVENC (GPU NVIDIA)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:130
|
||||
#, kde-format
|
||||
msgid "vaapi (AMD and Intel GPUs)"
|
||||
msgstr "VA-API (GPU AMD i Intel)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:134
|
||||
#, kde-format
|
||||
msgid "Vulkan (Any modern GPU)"
|
||||
msgstr "Vulkan (dowolne współczesne GPU)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:138
|
||||
#, kde-format
|
||||
msgid "x264 (software encoding)"
|
||||
msgstr "x264 (enkodowanie softwarowe)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:155
|
||||
#, kde-format
|
||||
msgid "\"Auto\" will use hardware acceleration if it is available"
|
||||
msgstr "\"Auto\" wykorzysta przyspieszenie sprzętowe jeśli będzie dostępne"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:160
|
||||
#, kde-format
|
||||
msgid "Codec:"
|
||||
msgstr "Kodek:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:166
|
||||
#, kde-format
|
||||
msgctxt "automatic codec setup"
|
||||
msgid "Auto"
|
||||
msgstr "Auto"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:170
|
||||
#, kde-format
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:174
|
||||
#, kde-format
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:178
|
||||
#, kde-format
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:206
|
||||
#, kde-format
|
||||
msgid "10 bits"
|
||||
msgstr "10-bitowy"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:211
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"10-bit encoding improves image quality but is not supported by all codecs "
|
||||
"and hardware"
|
||||
msgstr ""
|
||||
"Enkodowanie 10-bitowe poprawia jakość obrazu, ale nie jest wspierane przez "
|
||||
"każdy sprzęt i kodek"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:221
|
||||
#, kde-format
|
||||
msgid "Advanced options"
|
||||
msgstr "Opcje zaawansowane"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:227
|
||||
#, kde-format
|
||||
msgid "Check system configuration on start"
|
||||
msgstr "Sprawdź konfigurację systemu przy uruchomieniu"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:233
|
||||
#, kde-format
|
||||
msgid "Forward keyboard & mouse from headset"
|
||||
msgstr "Przekaż klawiaturę i mysz z gogli"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:236
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Keyboard and mouse connected to the client will act as if connected to the "
|
||||
"server. Client OS may reserve specific keys and combinations, which cannot "
|
||||
"be forwarded."
|
||||
msgstr ""
|
||||
"Klawiatura i mysz podłączona do klienta będzie się zachowywać jakby była "
|
||||
"podłączona do serwera. System operacyjny klienta może mieć niektóre "
|
||||
"kombinacje klawiszy zarezerwowane, bez możliwości przekazania ich dalej."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:241
|
||||
#, kde-format
|
||||
msgid "Enable debug window"
|
||||
msgstr "Włącz okno debugowania"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:248
|
||||
#, kde-format
|
||||
msgid "Enable SteamVR tracked devices support"
|
||||
msgstr "Włącz wsparcie dla urządzeń śledzących ze SteamVR"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:251
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Allows the use of lighthouse-based controllers and trackers.\n"
|
||||
"Requires SteamVR to be installed.\n"
|
||||
"Devices must be be powered on before connecting to WiVRn.\n"
|
||||
"An external tool such as motoc is needed for calibration."
|
||||
msgstr ""
|
||||
"Zezwala na użycie kontrolerów i trackerów latarniowych.\n"
|
||||
"Wymaga aby SteamVR był zainstalowany.\n"
|
||||
"Urządzenia muszą być włączone przed połączeniem z WiVRn.\n"
|
||||
"Do kalibracji potrzebne jest narzędzie zewnętrzne (np. motoc)."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:259
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "Niestandardowa lokalizacja ADB"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:270
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "Lokalizacja ADB:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:279
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the adb binary"
|
||||
msgid "Browse"
|
||||
msgstr "Przeglądaj"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:289
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "Domyślna"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:303
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "Niestandardowa"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:308
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "Wyłączona"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:316
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "Biblioteka kompatybilności OpenVR:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:342
|
||||
#, kde-format
|
||||
msgid "Library path, excluding bin/linux64/vrclient.so"
|
||||
msgstr "Ścieżka do biblioteki, z wyjątkiem 'bin/linux64/vrclient.so'"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:8
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"For Steam games, right click on the game in Steam, go in Properties > "
|
||||
"General and paste this in \"Launch options\":"
|
||||
msgstr ""
|
||||
"Dla gier Steam, kliknij prawym przyciskiem myszy na grze w Steamie, wybierz "
|
||||
"Właściwości > Ogólne i wklej to do opcji uruchamiania:"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:20
|
||||
#, kde-format
|
||||
msgid "Paste this in the Steam launch options for the app you want to start"
|
||||
msgstr "Wklej to do opcji uruchamiania dla gry ze Steama którą chcesz uruchomić"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:26
|
||||
#, kde-format
|
||||
msgctxt "copy text to the clipboard"
|
||||
msgid "Copy"
|
||||
msgstr "Kopiuj"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:30
|
||||
#, kde-format
|
||||
msgid "Copied Steam launch command"
|
||||
msgstr "Skopiowano opcje uruchamiania Steam"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:20
|
||||
#, kde-format
|
||||
msgid "I cannot find the WiVRn app on my headset"
|
||||
msgstr "Nie mogę znaleźć aplikacji WiVRn na moich goglach"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If you installed WiVRn over USB on a Meta headset, the app is in the "
|
||||
"\"unknown sources\" section."
|
||||
msgstr ""
|
||||
"Jeśli zainstalowano WiVRn przez USB na goglach Meta, aplikacja jest w sekcji "
|
||||
"nieznanych źródeł."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:24
|
||||
#, kde-format
|
||||
msgid "I cannot see my computer in the WiVRn app"
|
||||
msgstr "Nie widzę swojego komputera w aplikacji WiVRn"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:25
|
||||
#, kde-format
|
||||
msgid "If you have a firewall, make sure that port 5353/UDP is open."
|
||||
msgstr "Jeśli masz zaporę sieciową, upewnij się że port 5353/UDP jest otwarty."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:28
|
||||
#, kde-format
|
||||
msgid "Connecting remains stuck on \"Connection to ...\""
|
||||
msgstr "Łączenie utknęło na etapie \"Połączenie z ...\""
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:29 dashboard/qml/TroubleshootPage.qml:33
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If you have a firewall, make sure that port 9757 is open both for TCP and "
|
||||
"UDP."
|
||||
msgstr ""
|
||||
"Jeśli masz zaporę sieciową, upewnij się że port 9757 jest otwarty zarówno "
|
||||
"dla TCP jak i UDP."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:32
|
||||
#, kde-format
|
||||
msgid "Connection fails with \"no route to host\""
|
||||
msgstr "Połączenie nie powiodło się, \"no route to host\""
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:36
|
||||
#, kde-format
|
||||
msgid "I have an \"Incompatible WiVRn server\" error on my headset"
|
||||
msgstr "Mam problem z niekompatybilnością serwera WiVRn na moich goglach"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:37
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"<p>The version of the headset app and the server on your computer must match."
|
||||
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
|
||||
"server version is <b>%1</b></li></ul>"
|
||||
msgstr ""
|
||||
"<p>Wersje aplikacji na goglach i komputerze muszą się zgadzać.</p>"
|
||||
"<ul><li>Wersja aplikacji jest na stronie \"Informacje\"</li><li>Wersja "
|
||||
"serwera to <b>%1</b></li></ul>"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:40
|
||||
#, kde-format
|
||||
msgid "I have a \"Pairing is disabled\" error"
|
||||
msgstr "Mam błąd \"Parowanie jest wyłączone\""
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If you have reinstalled the server or the client or if you want to connect "
|
||||
"another headset, you must enable pairing before connecting."
|
||||
msgstr ""
|
||||
"Jeśli przeinstalowano serwer lub klienta, lub jeśli chcesz połączyć kolejne "
|
||||
"gogle, musisz włączyć tryb parowania przed łączeniem."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
msgid "Pairing is currently enabled with PIN %1."
|
||||
msgstr "Parowanie jest włączone, PIN to %1."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
msgid "Pairing is currently disabled."
|
||||
msgstr "Parowanie jest wyłączone."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:57
|
||||
#, kde-format
|
||||
msgid "I have no sound on my headset"
|
||||
msgstr "Nie mam dźwięku w goglach"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:58 dashboard/qml/WizardPage.qml:441
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"When the headset is connected, select \"WiVRn\" as the default audio output "
|
||||
"device for applications to use it."
|
||||
msgstr ""
|
||||
"Kiedy gogle są połączone, wybierz \"WiVRn\" jako domyślne wyjście dźwięku "
|
||||
"dla aplikacji."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:75
|
||||
#, kde-format
|
||||
msgid "Report an issue"
|
||||
msgstr "Zgłoś problem"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:80
|
||||
#, kde-format
|
||||
msgid "Ask on Discord"
|
||||
msgstr "Zapytaj na Discordzie"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Getting started"
|
||||
msgstr "Wprowadzenie"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78
|
||||
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
|
||||
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
|
||||
#: dashboard/qml/WizardPage.qml:485
|
||||
#, kde-format
|
||||
msgid "Back"
|
||||
msgstr "Wstecz"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:64
|
||||
#, kde-format
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Witamy w WiVRn"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:69
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"This wizard will help you set up WiVRn on your headset and connect it to "
|
||||
"your computer."
|
||||
msgstr "Ten kreator pomoże skonfigurować aplikację WiVRn na goglach i połączyć "
|
||||
"się z tym komputerem."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
|
||||
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
|
||||
#: dashboard/qml/WizardPage.qml:490
|
||||
#, kde-format
|
||||
msgid "Next"
|
||||
msgstr "Dalej"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:112
|
||||
#, kde-format
|
||||
msgid "How to enable developer mode"
|
||||
msgstr "Jak włączyć tryb programisty"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:119
|
||||
#, kde-format
|
||||
msgid "Follow the manufacturer's instructions below:"
|
||||
msgstr "Kieruj się instrukcjami producenta:"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:142
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"In order to use WiVRn, you will have to install the client app on your "
|
||||
"headset.\n"
|
||||
"You can either install it from the Meta store or directly over USB."
|
||||
msgstr ""
|
||||
"Aby używać WiVRn, musisz zainstalować aplikację kliencką na goglach.\n"
|
||||
"Możesz zainstalować ją ze sklepu Meta, albo przez USB."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:148
|
||||
#, kde-format
|
||||
msgid "Install from the Meta store"
|
||||
msgstr "Pobierz ze sklepu Meta"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:152
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"For the Quest 2, 3, 3S, and Pro, you can get the app from the <a "
|
||||
"href=\"https://www.meta.com/experiences/7959676140827574/\">Meta store</a>."
|
||||
msgstr ""
|
||||
"Na gogle Quest 2, 3, 3S, i Pro, możesz pobrać aplikację ze <a href=\"https://"
|
||||
"www.meta.com/experiences/7959676140827574/\">sklepu Meta</a>."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:164
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A newer release is available: %1 → %2, the client app on the Meta store may "
|
||||
"not be compatible."
|
||||
msgstr ""
|
||||
"Nowsza wersja jest dostępna: %1 → %2, klient w sklepie Meta może nie być "
|
||||
"jeszcze kompatybilny."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:171
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"This is a nightly build, the client app on the Meta store may not be "
|
||||
"compatible."
|
||||
msgstr ""
|
||||
"To jest wydanie „nightly”, klient ze sklepu Meta może nie być kompatybilny."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:181
|
||||
#, kde-format
|
||||
msgctxt "displayed between 'meta store' and 'install over USB' in the wizard"
|
||||
msgid "Or"
|
||||
msgstr "Lub"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:187
|
||||
#, kde-format
|
||||
msgid "Install over USB"
|
||||
msgstr "Zainstaluj przez USB"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:219
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"<p>No headset detected. Make sure that:\n"
|
||||
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
||||
"href=\"#\">developer mode</a></li></ul></p>"
|
||||
msgstr ""
|
||||
"<p>Nie wykryto gogli. Upewnij się, że:\n"
|
||||
"<ul><li>Reguły udev z ADB są zainstalowane</li><li>Gogle są w <a "
|
||||
"href=\"#\">trybie programisty</a></li></ul></p>"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:280
|
||||
#, kde-format
|
||||
msgid "Select the application you want to start"
|
||||
msgstr "Wybierz aplikację którą chcesz uruchomić"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:286
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The application you choose will be started automatically when you connect "
|
||||
"your headset."
|
||||
msgstr ""
|
||||
"Wybrana aplikacja zostanie automatycznie uruchomiona po połączeniu z goglami."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:301
|
||||
#, kde-format
|
||||
msgid "Important information"
|
||||
msgstr "Ważne informacje"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:308
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
|
||||
"running."
|
||||
msgstr ""
|
||||
"WiVRn kompletnie zastępuje SteamVR, nie powinieneś uruchamiać SteamVR "
|
||||
"podczas gdy WiVRn jest uruchomiona."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:359
|
||||
#, kde-format
|
||||
msgid "Start the WiVRn app on your headset"
|
||||
msgstr "Uruchom aplikację WiVRn na goglach"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:364
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
|
||||
"and enter PIN \"%2\"."
|
||||
msgstr ""
|
||||
"Aby połączyć się przez WiFi, uruchom aplikację WiVRn na goglach, połącz się z "
|
||||
"\"%1\" i wpisz PIN \"%2\"."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:371
|
||||
#, kde-format
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr "Aby połączyć się przez USB, kliknij \"Połącz przez USB\"."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:384
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
msgstr "Rozwiązywanie problemów"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:393
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If the server is not visible or the connection fails, check that ports 5353 "
|
||||
"(UDP) and 9757 (TCP and UDP) are open in your firewall."
|
||||
msgstr ""
|
||||
"Jeśli serwer nie jest widoczny lub połączenie się nie powodzi, upewnij "
|
||||
"się że porty 5353 (UDP) i 9757 (TCP i UDP) są otwarte w zaporze sieciowej."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:406
|
||||
#, kde-format
|
||||
msgid "Skip"
|
||||
msgstr "Pomiń"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:426
|
||||
#, kde-format
|
||||
msgid "Connection established"
|
||||
msgstr "Połączenie nawiązane"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:431
|
||||
#, kde-format
|
||||
msgid "Your headset is now connected."
|
||||
msgstr "Twoje gogle są połączone."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To connect another headset, make sure pairing is enabled in the dashboard "
|
||||
"before connecting."
|
||||
msgstr ""
|
||||
"Przed połączeniem kolejnych gogli, upewnij się że parowanie jest włączone w "
|
||||
"aplikacji WiVRn na komputerze."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
|
||||
#, kde-format
|
||||
msgid "Finish"
|
||||
msgstr "Zakończ"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:473
|
||||
#, kde-format
|
||||
msgid "Finished"
|
||||
msgstr "Zakończone"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:533
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:534
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "OpenComposite"
|
||||
@@ -0,0 +1,690 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the WiVRn package.
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2025 polyborea <patryklimerick@gmail.com>
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-11-11 22:09+0100\n"
|
||||
"PO-Revision-Date: 2025-11-14 09:36+0100\n"
|
||||
"Last-Translator: polyborea <patryklimerick@gmail.com>\n"
|
||||
"Language-Team: Polish <>\n"
|
||||
"Language: pl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
|
||||
#: client/scene.cpp:73
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Brak wspieranego formatu swapchain"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:128
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Połączono z serwerem WiVRn"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:130
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Połączono z {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:136
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr "Uruchom aplikację na serwerze aby rozpocząć przesyłanie."
|
||||
|
||||
#: client/scenes/app_launcher.cpp:146
|
||||
msgid "Start an application on your computer or select one to start streaming."
|
||||
msgstr ""
|
||||
"Uruchom aplikację na komputerze albo wybierz jakąś by rozpocząć przesyłanie."
|
||||
|
||||
#: client/scenes/app_launcher.cpp:148
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr "Uruchom aplikację na {} albo wybierz jakąś by rozpocząć przesyłanie."
|
||||
|
||||
#: client/scenes/lobby.cpp:230
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "Niekompatybilny serwer WiVRn: brak pola protokołu w TXT"
|
||||
|
||||
#: client/scenes/lobby.cpp:233
|
||||
#, c++-format
|
||||
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
|
||||
msgstr "Niekompatybilny protokół serwera WiVRn (klient: {}, serwer: {})"
|
||||
|
||||
#: client/scenes/lobby.cpp:248
|
||||
#, c++-format
|
||||
msgid "Cannot resolve hostname: {}"
|
||||
msgstr "Nie udało się rozwiązać nazwy hosta: {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341
|
||||
#, c++-format
|
||||
msgid "Cannot connect to {} ({}): {}"
|
||||
msgstr "Nie udało się połączyć z {} ({}): {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:424
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Oczekiwanie na połączenie"
|
||||
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
msgid "Passthrough"
|
||||
msgstr "Podgląd otoczenia"
|
||||
|
||||
#: client/scenes/lobby.cpp:1322
|
||||
msgid "Default environment"
|
||||
msgstr "Domyślne środowisko"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:99
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "Normalny"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:102
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "Jakość"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:104
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Wyłączony"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:112 client/scenes/lobby_gui.cpp:256
|
||||
#: client/scenes/stream_gui.cpp:967
|
||||
msgid "Disconnect"
|
||||
msgstr "Rozłącz"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:132 client/scenes/lobby_gui_customize.cpp:653
|
||||
#: client/scenes/lobby_gui_customize.cpp:744
|
||||
#: client/scenes/lobby_gui_customize.cpp:800 client/scenes/stream_gui.cpp:963
|
||||
msgid "Close"
|
||||
msgstr "Zamknij"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:138
|
||||
msgid "Connection"
|
||||
msgstr "Połączenie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:140
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "Połączenie z {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:170
|
||||
msgid "PIN"
|
||||
msgstr "PIN"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:192
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Wprowadź PIN wyświetlany w aplikacji WiVRn na komputerze"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:282
|
||||
msgid "Name"
|
||||
msgstr "Nazwa"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:293
|
||||
msgid "Address"
|
||||
msgstr "Adres"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:302
|
||||
msgid "Port"
|
||||
msgstr "Port"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:310
|
||||
msgid "TCP only"
|
||||
msgstr "Tylko TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:317 client/scenes/lobby_gui_customize.cpp:555
|
||||
#: client/scenes/stream_gui.cpp:920
|
||||
msgid "Cancel"
|
||||
msgstr "Anuluj"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:331
|
||||
msgid "Save"
|
||||
msgstr "Zapisz"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:384
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
msgstr ""
|
||||
"Uruchom serwer WiVRn w swojej\n"
|
||||
"sieci lokalnej"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:416
|
||||
msgid "Autoconnect"
|
||||
msgstr "Łącz automatycznie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:442
|
||||
msgid "Connect"
|
||||
msgstr "Połącz"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:452 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Niekompatybilna wersja serwera"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:454
|
||||
msgid "Server not available"
|
||||
msgstr "Serwer niedostępny"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:536
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Polski"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:550
|
||||
msgid "Language"
|
||||
msgstr "Język"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:550 client/scenes/lobby_gui.cpp:552
|
||||
msgid "System language"
|
||||
msgstr "Język systemowy"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:577 client/scenes/stream_gui.cpp:415
|
||||
msgid "Refresh rate"
|
||||
msgstr "Częstotliwość odświeżania"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:577 client/scenes/lobby_gui.cpp:579
|
||||
#: client/scenes/stream_gui.cpp:415 client/scenes/stream_gui.cpp:417
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatyczna"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:586 client/scenes/stream_gui.cpp:425
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
msgstr ""
|
||||
"Zmieniaj częstotliwość odświeżania bazując na wydajności aplikacji.\n"
|
||||
"Może powodować migotanie podczas zmian."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:603 client/scenes/stream_gui.cpp:443
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Minimalna częstotliwość odświeżania"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:629
|
||||
msgid "Foveation level"
|
||||
msgstr "Poziom foveacji"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:651
|
||||
msgid "Resolution scale"
|
||||
msgstr "Skala rozdzielczości"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#, c-format, c++-format
|
||||
msgid "%d%% - {}x{} per eye"
|
||||
msgstr "%d%% - {}x{} na oko"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:666
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "Rozdzielczość większa niż {}x{} może nie być wspierana przez te gogle."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:672
|
||||
msgid "High power mode"
|
||||
msgstr "Tryb wysokiej wydajności"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Zwiększ użycie mocy by umożliwić wyższe rozdzielczości i szybsze odświeżanie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:681
|
||||
msgid "Enable microphone"
|
||||
msgstr "Włącz mikrofon"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:690
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Nieprzetwarzany dźwięk z mikrofonu"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:696
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "Wymusza wyłączenie filtrów audio jak np. redukcja szumów"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Włącz śledzenie dłoni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709 client/scenes/lobby_gui.cpp:721
|
||||
#: client/scenes/lobby_gui.cpp:733 client/scenes/lobby_gui.cpp:750
|
||||
#: client/scenes/lobby_gui_customize.cpp:540
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Ta funkcja nie jest wspierana przez twoje gogle"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Włącz śledzenie wzroku"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Włącz śledzenie twarzy"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Włącz śledzenie ciała"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:755
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
"otherwise body data will be guessed from controller and headset positions"
|
||||
msgstr ""
|
||||
"Wymaga aby śledzenie dłoni i ciała było włączone w goglach, w przeciwnym\n"
|
||||
"wypadku pozycja ciała będzie odgadywana z pozycji kontrolerów i gogli"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:765
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Włącz śledzenie dolnej części ciała"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings"
|
||||
msgstr ""
|
||||
"Szacuje pozycje kończyn dolnych z nóg wygenerowanych przez gogle Quest,\n"
|
||||
"wymaga by śledzenie dłoni i ciała było włączone w ustawieniach gogli Quest"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Włącz śledzenie bioder"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
msgstr ""
|
||||
"Ma efekt wyłącznie z włączonym śledzeniem dolnej części ciała\n"
|
||||
"Może być pożądane gdy używasz innego źródła śledzenia bioder"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:788
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Włącz okno w streamie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:791
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
msgstr ""
|
||||
"Włącza pokazywanie okna konfiguracji podczas streamowania gier.\n"
|
||||
"Gdy włączone, okno można aktywować poprzez wciśnięcie obu analogów."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:805 client/scenes/stream_gui.cpp:463
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-processing OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:809 client/scenes/stream_gui.cpp:467
|
||||
msgid "Supersampling"
|
||||
msgstr "Supersampling"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:829 client/scenes/stream_gui.cpp:488
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
msgstr ""
|
||||
"Zmniejsza migotanie na krawędziach z dużym kontrastem.\n"
|
||||
"Użyteczne gdy rozdzielczość wejściowa jest większa niż rozdzielczość gogli"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:834 client/scenes/stream_gui.cpp:493
|
||||
msgid "Sharpening"
|
||||
msgstr "Wyostrzanie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:854 client/scenes/stream_gui.cpp:514
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
msgstr ""
|
||||
"Zwiększa klarowność krawędzi z dużym kontrastem, i przeciwdziała rozmazywaniu "
|
||||
"obrazu.\n"
|
||||
"Użyteczne gdy rozdzielczość wejściowa jest mniejsza niż rozdzielczość gogli"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1038 client/scenes/lobby_gui.cpp:1046
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:374
|
||||
msgid "CPU time"
|
||||
msgstr "Czas CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1042
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Czas CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1052 client/scenes/lobby_gui.cpp:1060
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:375
|
||||
msgid "GPU time"
|
||||
msgstr "Czas GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1056
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Czas GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1120
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Włączyć mikrofon?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1125
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Włączyć śledzenie wzroku?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1130
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Włączyć śledzenie twarzy?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1135
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Włączyć śledzenie ciała?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1143
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Witamy w WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1169
|
||||
msgid "Yes"
|
||||
msgstr "Tak"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1176
|
||||
msgid "No"
|
||||
msgstr "Nie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1195 client/scenes/lobby_gui.cpp:1836
|
||||
msgid "Licenses"
|
||||
msgstr "Licencje"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1470
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Mikrofon jest włączony"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1471
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Mikrofon jest wyłączony"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1480
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Śledzenie dłoni jest włączone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1481
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Śledzenie dłoni jest wyłączone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1490
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Śledzenie wzroku jest włączone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1491
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Śledzenie wzroku jest wyłączone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1501
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Śledzenie twarzy jest włączone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1502
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Śledzenie twarzy jest wyłączone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1512
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Śledzenie ciała jest włączone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1513
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Śledzenie ciała jest wyłączone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1529
|
||||
msgid "Add server"
|
||||
msgstr "Dodaj serwer"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1815
|
||||
msgid "Server list"
|
||||
msgstr "Lista serwerów"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1818 client/scenes/stream_gui.cpp:948
|
||||
msgid "Settings"
|
||||
msgstr "Ustawienia"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1821
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-processing"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1824
|
||||
msgid "Customize"
|
||||
msgstr "Dostosuj"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1828
|
||||
msgid "Debug"
|
||||
msgstr "Debuguj"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1833
|
||||
msgid "About"
|
||||
msgstr "Informacje"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1839
|
||||
msgid "Exit"
|
||||
msgstr "Wyjdź"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1856
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
msgstr ""
|
||||
"Wciśnij uchwyt lub skieruj wnętrze dłoni ku górze by\n"
|
||||
"przesuwać główne okno"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1858
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Wciśnij uchwyt by przesuwać główne okno"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:233
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "Nie można wgrać listy środowisk: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:363
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "Autor: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:367
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "Rozmiar: {:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:447
|
||||
msgid "Delete this model"
|
||||
msgstr "Usuń ten model"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:483
|
||||
#: client/scenes/lobby_gui_customize.cpp:689
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "Błąd HTTP {} podczas pobierania {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:491
|
||||
#: client/scenes/lobby_gui_customize.cpp:697
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
"{}: {}"
|
||||
msgstr ""
|
||||
"Błąd curl podczas pobierania {}\n"
|
||||
"{}: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:552
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "Czy na pewno usunąć {}?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:556
|
||||
msgid "Delete"
|
||||
msgstr "Usuń"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:637
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "Nie udało się wczytać środowiska: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:645
|
||||
msgid "Loading environment"
|
||||
msgstr "Wczytywanie środowiska"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:724
|
||||
msgid "Download more environments"
|
||||
msgstr "Pobierz więcej środowisk"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:732
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Otwórz lokalny model glTF"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
msgid "Reproject"
|
||||
msgstr "Reprojekcja"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Blit"
|
||||
msgstr "Blit"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "Sieć"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
|
||||
msgid "Download"
|
||||
msgstr "Pobieranie"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:373
|
||||
msgid "Upload"
|
||||
msgstr "Przesyłanie"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "Dekoder {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "Czasy [ms]"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "Enkodowanie"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "Wysyłanie"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "Odbieranie"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "Dekodowanie"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "Blitowane"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "Wyświetlone"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "Przewidziane"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:345
|
||||
#, c++-format
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "Przewidywane opóźnienie \"motion-to-photon\": {}ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:352
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr "Wciśnij uchwyt by przesunąć okno"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:354 client/scenes/stream_gui.cpp:880
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "Wciśnij oba analogi by wyświetlić okno WiVRn"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:376
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "Opóźnienie \"motion-to-photon\""
|
||||
|
||||
#: client/scenes/stream_gui.cpp:521
|
||||
msgid "Foveation center override"
|
||||
msgstr "Zmień centrum foveacji"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:524
|
||||
msgid "Enable"
|
||||
msgstr "Włącz"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:532 client/scenes/stream_gui.cpp:579
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "Wysokość {:.1f} stopni"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:533 client/scenes/stream_gui.cpp:580
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "Dystans {:.2f} m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:534
|
||||
msgid "Default"
|
||||
msgstr "Domyślne"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Change"
|
||||
msgstr "Zmień"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:577
|
||||
msgid "Use the thumbsticks to move the foveation center"
|
||||
msgstr "Użyj analogów do przesuwania centrum foveacji"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:578
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "Naciśnij A by zapisać albo B by anulować"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:636
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Uruchomione aplikacje XR:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:653
|
||||
msgid "Overlays"
|
||||
msgstr "Nakładki"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:692
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "Poproś o zamknięcie (może zostać zignorowane przez aplikację)"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:935
|
||||
msgid "Applications"
|
||||
msgstr "Aplikacje"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:938
|
||||
msgid "Start"
|
||||
msgstr "Uruchom"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:951
|
||||
msgid "Stats"
|
||||
msgstr "Statystyki"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:957
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Nakładka statystyk"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:960
|
||||
msgid "Compact view"
|
||||
msgstr "Widok kompaktowy"
|
||||
|
||||
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
|
||||
msgid "Timeout"
|
||||
msgstr "Czas upłynął"
|
||||
|
||||
#: client/wivrn_client.cpp:149
|
||||
msgid "Incorrect PIN"
|
||||
msgstr "Nieprawidłowy PIN"
|
||||
|
||||
#: client/wivrn_client.cpp:153
|
||||
msgid "Unable to check PIN"
|
||||
msgstr "Nie udało się sprawdzić PINu"
|
||||
|
||||
#: client/wivrn_client.cpp:182
|
||||
msgid "Pairing is disabled on server"
|
||||
msgstr "Parowanie jest wyłączone na serwerze"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user