Compare commits

..
70 Commits
Author SHA1 Message Date
Erimel 5ff5f81a88 New Pontoon translations (#912) 2023-12-21 19:29:06 -05:00
Kamilake 99f71088ec Pontoon: Update Korean (ko) localization of GUI
Co-authored-by: Kamilake <[email protected]>
2023-12-21 21:23:46 -03:00
fcdcac1ed2 Pontoon: Update German (de) localization of GUI
Co-authored-by: eric.voigt.1 <[email protected]>
Co-authored-by: Ise_Kaey <[email protected]>
Co-authored-by: Yasu3D <[email protected]>
Co-authored-by: Piranja <[email protected]>
Co-authored-by: unlogisch <[email protected]>
Co-authored-by: Ninsbean <[email protected]>
Co-authored-by: Levi <[email protected]>
2023-12-21 21:22:59 -03:00
Allan 37b57bea1f Pontoon: Update Vietnamese (vi) localization of GUI
Co-authored-by: Allan <[email protected]>
2023-12-21 21:22:59 -03:00
namakeingoandriccardomariatassan 77285787ec Pontoon: Update Italian (it) localization of GUI
Co-authored-by: namakeingo <[email protected]>
Co-authored-by: riccardomariatassan <[email protected]>
2023-12-21 21:22:54 -03:00
VyolexandSmeltie 2f5d2b214e Pontoon: Update Dutch (nl) localization of GUI
Co-authored-by: Vyolex <[email protected]>
Co-authored-by: Smeltie <[email protected]>
2023-12-21 21:22:51 -03:00
Meow Wei 319344254d Pontoon: Update Traditional Chinese (zh-Hant) localization of GUI
Co-authored-by: Meow Wei <[email protected]>
2023-12-21 21:22:50 -03:00
MaxEvil 86011f323b Pontoon: Update Latinamerican Spanish (es-419) localization of GUI
Co-authored-by: MaxEvil <[email protected]>
2023-12-21 21:22:50 -03:00
Butterscotch! f9a8384369 Pontoon: Update Engwish (en-x-owo) localization of GUI
Co-authored-by: Butterscotch! <[email protected]>
2023-12-21 21:22:46 -03:00
Erimel 90ced8cacf Pontoon: Update French (fr) localization of GUI
Co-authored-by: Erimel <[email protected]>
2023-12-19 05:00:09 +00:00
Uriel 8253110130 decrease amount of retries to 1 in serial provisioning (#911) 2023-12-17 04:21:17 -03:00
Uriel 563713e788 New Pontoon translations (#904) 2023-12-16 01:22:55 -03:00
Meow Wei 93c319ce68 Pontoon: Update Traditional Chinese (zh-Hant) localization of GUI
Co-authored-by: Meow Wei <[email protected]>
2023-12-15 23:40:28 -03:00
Meow Wei abaf8a19ae Pontoon: Update Simplified Chinese (zh-Hans) localization of GUI
Co-authored-by: Meow Wei <[email protected]>
2023-12-15 23:40:28 -03:00
Mama-Gen 49becc4f08 Pontoon: Update Portuguese (pt-BR) localization of GUI
Co-authored-by: Mama-Gen <[email protected]>
2023-12-15 23:40:28 -03:00
ReDoXandUriel 24f6fdacae Pontoon: Update Polish (pl) localization of GUI
Co-authored-by: Uriel <[email protected]>
Co-authored-by: ReDoX <[email protected]>
2023-12-15 23:40:28 -03:00
c54b0d4044 Pontoon: Update Italian (it) localization of GUI
Co-authored-by: namakeingo <[email protected]>
Co-authored-by: qHiyokop <[email protected]>
Co-authored-by: Etch9 <[email protected]>
2023-12-15 23:40:23 -03:00
Iris bec4d74ccf Pontoon: Update Finnish (fi) localization of GUI
Co-authored-by: Iris <[email protected]>
2023-12-15 23:40:19 -03:00
adriangoldenhero 583629d8e0 Pontoon: Update Spain Spanish (es-ES) localization of GUI
Co-authored-by: adriangoldenhero <[email protected]>
2023-12-15 23:40:19 -03:00
Uriel 60535bda30 Pontoon: Update Latinamerican Spanish (es-419) localization of GUI
Co-authored-by: Uriel <[email protected]>
2023-12-15 23:40:19 -03:00
3675213820 Pontoon: Update German (de) localization of GUI
Co-authored-by: Ise_Kaey <[email protected]>
Co-authored-by: Zeidurth <[email protected]>
Co-authored-by: Ninsbean <[email protected]>
Co-authored-by: Piranja <[email protected]>
Co-authored-by: unlogisch <[email protected]>
2023-12-15 23:40:05 -03:00
infopcgoodandKamilake 900a5d30f7 Pontoon: Update Korean (ko) localization of GUI
Co-authored-by: infopcgood <[email protected]>
Co-authored-by: Kamilake <[email protected]>
2023-12-15 23:39:59 -03:00
Butterscotch! 4d21b61549 Clarify headset wording and update AutoBone requirements (#910) 2023-12-15 17:19:00 -05:00
Uriel c3c7fc896c Add reboot retries when trying to connect to WiFi (#907) 2023-12-08 16:09:20 -03:00
Uriel c3b4727017 Add a TrackerStatus.TIMED_OUT for temporal timeouts (#903) 2023-12-08 20:31:42 +03:00
Ryan Butler 99d0756997 change codeowners (#908) 2023-11-29 22:55:18 +03:00
Uriel ff218488a7 better checks for tracker id on tracker error (#901) 2023-11-19 13:17:32 -03:00
Butterscotch! 8fa535d8b8 Separate scale from proportions in AutoBone (#846) 2023-11-19 12:50:27 -03:00
Uriel d2a9a21b8f Add default mounting orientation for certain body parts (#898) 2023-11-19 00:40:04 -03:00
lucas lelievre 2dbc25b529 Android serial (#888) 2023-11-18 18:32:41 -03:00
Butterscotch! eefe7efbfa Add pause tracking keybind & protobuf command (#867) 2023-11-18 14:10:50 -03:00
Butterscotch! 25bd05082c Don't set all trackers to "ok" on device reconnect (#883) 2023-11-18 01:06:21 -03:00
UrielandErimel cc5bd5d938 Try forcing manual mounting on setup (#852)
Co-authored-by: Erimel <[email protected]>
2023-11-12 01:48:01 -03:00
Uriel 751c2e2f3b Fix the connected tracker modal not having it's config saved (#896) 2023-11-12 00:27:12 -03:00
Erimel 59863fa7f3 New Pontoon translations (#868) 2023-11-07 19:55:25 -05:00
Erimel 82b5a74a4b Pontoon: Update French (fr) localization of GUI
Co-authored-by: Erimel <[email protected]>
2023-11-08 00:47:37 +00:00
Meow Wei 4079dee383 Pontoon: Update Traditional Chinese (zh-Hant) localization of GUI
Co-authored-by: Meow Wei <[email protected]>
2023-11-07 20:09:46 -03:00
imbluewispandUriel af69d94681 Pontoon: Update Spain Spanish (es-ES) localization of GUI
Co-authored-by: Uriel <[email protected]>
Co-authored-by: imbluewisp <[email protected]>
2023-11-07 20:09:46 -03:00
Uriel 923235aaee Pontoon: Update Latinamerican Spanish (es-419) localization of GUI
Co-authored-by: Uriel <[email protected]>
2023-11-07 20:09:42 -03:00
SlimeVR-botandTheDevMinerTV 79eeca9c1c Pontoon: Update German (de) localization of GUI
Co-authored-by: TheDevMinerTV <[email protected]>
2023-11-07 20:09:33 -03:00
Kamilake 335fe5edeb Pontoon: Update Korean (ko) localization of GUI
Co-authored-by: Kamilake <[email protected]>
2023-11-04 18:04:23 +00:00
Smeltie 68c484b6c5 Pontoon: Update Dutch (nl) localization of GUI
Co-authored-by: Smeltie <[email protected]>
2023-11-04 18:04:23 +00:00
Uriel 70f4925b3e add android to release pipeline (#891) 2023-11-04 21:03:54 +03:00
Collin 3aa0587387 Kotlin leg tweaks (#809) 2023-11-03 19:57:18 -03:00
lucas lelievre 74c3f41867 Refactor of the dropdown component (#875) 2023-11-03 19:23:53 -03:00
lucas lelievre a39c8c2018 Make button and typography children optional (#872) 2023-11-03 18:33:05 -03:00
lucas lelievre 4fa5c3f767 Fix VRMode not going back to home screen when resizing to desktop layout (#873) 2023-11-03 18:06:47 -03:00
lucas lelievre 71d271bfdb fix resize glitches (#874) 2023-11-03 16:59:54 -03:00
lucas lelievre f1b3b56484 Refactor TrashIcon ArrowIcon and LoaderIcon (#876) 2023-11-03 16:44:04 -03:00
Uriel a614c225da Fixed appearance on exit warning modal (#890) 2023-11-03 15:47:34 -03:00
lucas lelievre 8ae3ecc1b3 Add more colors to checkbox (#877) 2023-11-03 15:18:03 -03:00
lucas lelievre e79c7ebf0e Add disabled state to Ratio, Fix typos and bad typing (#878) 2023-11-03 15:08:53 -03:00
lucas lelievre 3a50153980 Add errors and disabled state to Input (#879) 2023-11-03 14:50:51 -03:00
Uriel d37466cf9f Skeleton preview (#817) 2023-11-03 14:29:19 -03:00
Uriel 029bd9da81 add android CI (#889) 2023-11-03 15:50:15 +03:00
Uriel d3f323b438 add me to codeowners in settings parts of GUI (#885) 2023-11-03 15:49:52 +03:00
Uriel ce4639bed0 fix nix not using toolchain version (#857) 2023-11-03 15:49:16 +03:00
Uriel 4ebd863580 Update tauri 2 (#858) 2023-11-03 15:48:52 +03:00
Éric Bonin 1fb32e8458 Prompt before closing SlimeVR when trackers are still connected (#862) 2023-11-02 23:46:28 -03:00
Butterscotch! 871ffa5571 Add new message from firmware for finding server (#870) 2023-11-02 23:22:56 -03:00
0forks 56b105697f Fix pipe crash when SteamVR fails to boot (#887) 2023-11-02 23:08:54 -03:00
0forks 3a0014db25 Fix 3d preview reset math (#881) 2023-11-01 14:15:12 -04:00
ErimelandImUrX c3d10f1407 Use Bones (#787)
Co-authored-by: ImUrX <[email protected]>
2023-10-19 17:42:48 +03:00
Uriel a2bbe7097c Forgot the other task for git force (#861) 2023-09-29 22:56:41 +03:00
Uriel 415a07461e Force git tag fetching (#860) 2023-09-29 21:55:27 +03:00
Uriel 4bd31fb02f Only get first tag on build (#859) 2023-09-28 20:19:27 -04:00
Uriel 2bc50b2bc2 Add preload component (#854) 2023-09-26 07:42:34 -04:00
imgbot[bot] e37b11844f [ImgBot] Optimize images (#838) 2023-09-25 18:39:08 -04:00
Butterscotch! 92f709e2f9 Track connection by socket address if HWID is unavailable (#851) 2023-09-25 00:45:29 -04:00
Butterscotch! 7fe3d82540 Fix NPE when tracking arms from controllers (#853) 2023-09-25 00:11:42 -04:00
136 changed files with 9144 additions and 6387 deletions

No files matched your search

+3 -3
View File
@@ -10,11 +10,11 @@
/gui/src/i18n/ @ImUrX @Louka3000
/l10n.toml @ImUrX @Louka3000
/gui/src/components/settings/ @Louka3000 @loucass003
/gui/src/components/settings/ @Louka3000 @loucass003 @ImUrX
# Rust part of the GUI
/gui/src-tauri/ @ImUrX @TheButlah
/Cargo.lock @ImUrX @TheButlah
/gui/src-tauri/ @ImUrX
/Cargo.lock @ImUrX
# Some server code~
/server/ @ButterscotchV @Eirenliel @Louka3000
+60 -2
View File
@@ -22,8 +22,9 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Get tags
run: git fetch --tags origin --recurse-submodules=no
run: git fetch --tags origin --recurse-submodules=no --force
- name: Set up JDK 17
uses: actions/setup-java@v3
@@ -51,8 +52,9 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Get tags
run: git fetch --tags origin --recurse-submodules=no
run: git fetch --tags origin --recurse-submodules=no --force
- name: Set up JDK 17
uses: actions/setup-java@v3
@@ -84,6 +86,62 @@ jobs:
server/desktop/build/libs/*
bundle-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Get tags
run: git fetch --tags origin --recurse-submodules=no --force
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "adopt"
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'npm'
- name: Build GUI
run: |
npm ci
cd gui && npm run build
- name: Build with Gradle
run: ./gradlew :server:android:assembleDebug
- name: Upload the Android Build Artifact
uses: actions/upload-artifact@v3
with:
# Artifact name
name: "SlimeVR-Android" # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: server/android/build/outputs/apk/*
- name: Prepare for release
if: startsWith(github.ref, 'refs/tags/')
run: |
cp server/android/build/outputs/apk/debug/android-debug.apk ./SlimeVR-android.apk
- name: Upload to draft release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
generate_release_notes: true
files: |
./SlimeVR-android.apk
bundle-linux:
runs-on: ubuntu-22.04
needs: [build, test]
Generated
+787 -246
View File
File diff suppressed because it is too large. Load diff
-5
View File
@@ -15,8 +15,3 @@ repository = "https://github.com/SlimeVR/SlimeVR-Server"
[profile.release]
lto = "thin"
strip = "debuginfo" # Only affects Unix binaries with DWARF
[patch.crates-io]
tauri = { git = "https://github.com/imurx/tauri", branch = "ipc-backport" }
tauri-runtime = { git = "https://github.com/imurx/tauri", branch = "ipc-backport" }
tauri-build = { git = "https://github.com/imurx/tauri", branch = "ipc-backport" }
Generated
+141 -19
View File
@@ -8,11 +8,11 @@
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
"lastModified": 1692203620,
"narHash": "sha256-9SF/H8oCWv166q5o+JtV7tK+koydgFMu02HCB27UWpU=",
"lastModified": 1697058441,
"narHash": "sha256-gjtW+nkM9suMsjyid63HPmt6WZQEvuVqA5cOAf4lLM0=",
"owner": "cachix",
"repo": "devenv",
"rev": "eee80243720b7f284128873a9694a520d9967b2f",
"rev": "55294461a62d90c8626feca22f52b0d3d0e18e39",
"type": "github"
},
"original": {
@@ -21,6 +21,25 @@
"type": "github"
}
},
"fenix": {
"inputs": {
"nixpkgs": "nixpkgs_2",
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1695709315,
"narHash": "sha256-XKzbb4NqYmUVlORwjCT//RGeQiJa+6LuGYllpaLP5lQ=",
"owner": "nix-community",
"repo": "fenix",
"rev": "f5845b16d889d8bf9930fe1098820074da4cbce9",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "fenix",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@@ -42,11 +61,11 @@
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1690933134,
"narHash": "sha256-ab989mN63fQZBFrkk4Q8bYxQCktuHmBIBqUG1jl6/FQ=",
"lastModified": 1696343447,
"narHash": "sha256-B2xAZKLkkeRFG5XcHHSXXcP7To9Xzr59KXeZiRf4vdQ=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "59cf3f1447cfc75087e7273b04b31e689a8599fb",
"rev": "c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4",
"type": "github"
},
"original": {
@@ -73,12 +92,30 @@
}
},
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1653893745,
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_3": {
"locked": {
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
@@ -172,11 +209,11 @@
]
},
"locked": {
"lastModified": 1688922987,
"narHash": "sha256-RnQwrCD5anqWfyDAVbfFIeU+Ha6cwt5QcIwIkaGRzQw=",
"lastModified": 1697285352,
"narHash": "sha256-tRGLm/DO8+anGUCgLYxTF5EPqWv8EZ9MVFWRdh285HU=",
"owner": "nlewo",
"repo": "nix2container",
"rev": "ab381a7d714ebf96a83882264245dbd34f0a7ec8",
"rev": "9d7f33ef0058f4df4c0912025f43c758a3289d76",
"type": "github"
},
"original": {
@@ -185,6 +222,25 @@
"type": "github"
}
},
"nixgl": {
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1685908677,
"narHash": "sha256-E4zUPEUFyVWjVm45zICaHRpfGepfkE9Z2OECV9HXfA4=",
"owner": "guibou",
"repo": "nixGL",
"rev": "489d6b095ab9d289fe11af0219a9ff00fe87c7c5",
"type": "github"
},
"original": {
"owner": "guibou",
"repo": "nixGL",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1678875422,
@@ -204,11 +260,11 @@
"nixpkgs-lib": {
"locked": {
"dir": "lib",
"lastModified": 1690881714,
"narHash": "sha256-h/nXluEqdiQHs1oSgkOOWF+j8gcJMWhwnZ9PFabN6q0=",
"lastModified": 1696019113,
"narHash": "sha256-X3+DKYWJm93DRSdC5M6K5hLqzSya9BjibtBsuARoPco=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9e1960bc196baf6881340d53dccb203a951745a2",
"rev": "f5892ddac112a1e9b3612c39af1b72987ee5783a",
"type": "github"
},
"original": {
@@ -253,11 +309,43 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1692356644,
"narHash": "sha256-AYkPFT+CbCVSBmh0WwIzPpwhEJ4Yy3A7JZvUkGJIg5o=",
"lastModified": 1695360818,
"narHash": "sha256-JlkN3R/SSoMTa+CasbxS1gq+GpGxXQlNZRUh9+LIy/0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e35dcc04a3853da485a396bdd332217d0ac9054f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1695360818,
"narHash": "sha256-JlkN3R/SSoMTa+CasbxS1gq+GpGxXQlNZRUh9+LIy/0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e35dcc04a3853da485a396bdd332217d0ac9054f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1697456312,
"narHash": "sha256-roiSnrqb5r+ehnKCauPLugoU8S36KgmWraHgRqVYndo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8ecc900b2f695d74dea35a92f8a9f9b32c8ea33d",
"rev": "ca012a02bf8327be9e488546faecae5e05d7d749",
"type": "github"
},
"original": {
@@ -298,10 +386,29 @@
"root": {
"inputs": {
"devenv": "devenv",
"fenix": "fenix",
"flake-parts": "flake-parts",
"mk-shell-bin": "mk-shell-bin",
"nix2container": "nix2container",
"nixpkgs": "nixpkgs_2"
"nixgl": "nixgl",
"nixpkgs": "nixpkgs_4"
}
},
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1695642814,
"narHash": "sha256-xR1+YaPcutqXN7BYYCyHPU8VVh/gjW+bVFTfA+vHpv0=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "d3cc3bc00e310ff49268ce0c593eaa6bf4724bbd",
"type": "github"
},
"original": {
"owner": "rust-lang",
"ref": "nightly",
"repo": "rust-analyzer",
"type": "github"
}
},
"systems": {
@@ -318,6 +425,21 @@
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
+33 -5
View File
@@ -7,6 +7,8 @@
nix2container.url = "github:nlewo/nix2container";
nix2container.inputs.nixpkgs.follows = "nixpkgs";
mk-shell-bin.url = "github:rrbutani/nix-mk-shell-bin";
nixgl.url = "github:guibou/nixGL";
fenix.url = "github:nix-community/fenix";
};
nixConfig = {
@@ -14,7 +16,12 @@
extra-substituters = "https://devenv.cachix.org";
};
outputs = inputs @ {flake-parts, ...}:
outputs = inputs @ {
self,
flake-parts,
nixgl,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.devenv.flakeModule
@@ -36,8 +43,15 @@
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
# packages.default = pkgs.hello;
_module.args.pkgs = import self.inputs.nixpkgs {
inherit system;
overlays = [nixgl.overlay];
};
devenv.shells.default = {
devenv.shells.default = let
fenixpkgs = inputs'.fenix.packages;
rust_toolchain = lib.importTOML ./rust-toolchain.toml;
in {
name = "slimevr";
imports = [
@@ -48,8 +62,10 @@
# https://devenv.sh/reference/options/
packages =
[
]
(with pkgs; [
pkgs.nixgl.nixGLIntel
cacert
])
++ lib.optionals pkgs.stdenv.isLinux (with pkgs; [
appimagekit
atk
@@ -59,6 +75,7 @@
dprint
gdk-pixbuf
glib.out
glib-networking
gobject-introspection
gtk3
harfbuzz
@@ -94,7 +111,18 @@
corepack.enable = true;
};
languages.rust.enable = true;
languages.rust = {
enable = true;
toolchain = fenixpkgs.fromToolchainName {
name = rust_toolchain.toolchain.channel;
sha256 = "sha256-rLP8+fTxnPHoR96ZJiCa/5Ans1OojI7MLsmSqR2ip8o=";
};
components = rust_toolchain.toolchain.components;
};
env = {
GIO_EXTRA_MODULES = "${pkgs.glib-networking}/lib/gio/modules:${pkgs.dconf.lib}/lib/gio/modules";
};
enterShell = with pkgs; ''
'';
+17 -14
View File
@@ -7,14 +7,15 @@
"@fluent/react": "^0.14.1",
"@fontsource/poppins": "^4.5.8",
"@formatjs/intl-localematcher": "^0.2.32",
"@react-three/fiber": "^8.10.0",
"@tauri-apps/api": "^2.0.0-alpha.5",
"@tauri-apps/plugin-app": "github:tauri-apps/tauri-plugin-app#v2",
"@tauri-apps/plugin-dialog": "github:tauri-apps/tauri-plugin-dialog#v2",
"@tauri-apps/plugin-fs": "github:tauri-apps/tauri-plugin-fs#v2",
"@tauri-apps/plugin-os": "github:tauri-apps/tauri-plugin-os#v2",
"@tauri-apps/plugin-shell": "github:tauri-apps/tauri-plugin-shell#v2",
"@tauri-apps/plugin-window": "github:tauri-apps/tauri-plugin-window#v2",
"@react-three/drei": "^9.80.3",
"@react-three/fiber": "^8.13.6",
"@tauri-apps/api": "=2.0.0-alpha.8",
"@tauri-apps/plugin-app": "=2.0.0-alpha.1",
"@tauri-apps/plugin-dialog": "=2.0.0-alpha.1",
"@tauri-apps/plugin-fs": "=2.0.0-alpha.1",
"@tauri-apps/plugin-os": "=2.0.0-alpha.2",
"@tauri-apps/plugin-shell": "=2.0.0-alpha.1",
"@tauri-apps/plugin-window": "=2.0.0-alpha.1",
"@vitejs/plugin-react": "^3.0.0",
"browser-fs-access": "^0.34.1",
"browserslist": "^4.18.1",
@@ -31,13 +32,14 @@
"react": "^18.0.0",
"react-dev-utils": "^12.0.0",
"react-dom": "^18.0.0",
"react-helmet": "^6.1.0",
"react-hook-form": "^7.29.0",
"react-modal": "3.15.1",
"react-modal": "^3.15.1",
"react-responsive": "^9.0.2",
"react-router-dom": "^6.2.2",
"semver": "^7.5.3",
"solarxr-protocol": "file:../solarxr-protocol",
"three": "^0.148.0",
"three": "^0.155.0",
"ts-pattern": "^5.0.1",
"typescript": "^5.1.6"
},
@@ -73,12 +75,13 @@
"devDependencies": {
"@dword-design/eslint-plugin-import-alias": "^4.0.8",
"@tailwindcss/forms": "^0.5.3",
"@tauri-apps/cli": "^2.0.0-alpha.10",
"@tauri-apps/cli": "=2.0.0-alpha.17",
"@types/file-saver": "^2.0.5",
"@types/react": "18.0.25",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.5",
"@types/react-helmet": "^6.1.6",
"@types/react-modal": "3.13.1",
"@types/three": "^0.148.0",
"@types/three": "^0.155.0",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"autoprefixer": "^10.4.4",
@@ -90,7 +93,7 @@
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"postcss": "^8.4.24",
"postcss": "^8.4.31",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"rollup-plugin-visualizer": "^5.9.2",
+72 -8
View File
@@ -124,6 +124,7 @@ widget-drift_compensation-clear = Driftkompensation zurücksetzen
## Widget: Clear Reset Mounting
widget-clear_mounting = Befestigungs-Reset zurücksetzen
## Widget: Developer settings
@@ -143,6 +144,11 @@ widget-imu_visualizer-rotation_raw = Rohe Drehung
widget-imu_visualizer-rotation_preview = Vorschau
widget-imu_visualizer-rotation_hide = Ausblenden
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Skelett Vorschau
widget-skeleton_visualizer-hide = Ausblenden
## Tracker status
tracker-status-none = Kein Status
@@ -151,6 +157,7 @@ tracker-status-error = Fehler
tracker-status-disconnected = Getrennt
tracker-status-occluded = Verdeckt
tracker-status-ok = Verbunden
tracker-status-timed_out = Zeitüberschreitung
## Tracker status columns
@@ -241,6 +248,7 @@ tracker_selection_menu-RIGHT_UPPER_LEG = { -tracker_selection-part } dem rechten
tracker_selection_menu-RIGHT_LOWER_LEG = { -tracker_selection-part } dem rechten Unterschenkel zugewiesen werden?
tracker_selection_menu-RIGHT_FOOT = { -tracker_selection-part } dem rechten Fuß zugewiesen werden?
tracker_selection_menu-RIGHT_CONTROLLER = { -tracker_selection-part } dem rechten Controller zugewiesen werden?
tracker_selection_menu-UPPER_CHEST = { -tracker_selection-part } obere Brust?
tracker_selection_menu-CHEST = { -tracker_selection-part } der Brust zugewiesen werden?
tracker_selection_menu-WAIST = { -tracker_selection-part } der Taille zugewiesen werden?
tracker_selection_menu-HIP = { -tracker_selection-part } der Hüfte zugewiesen werden?
@@ -346,15 +354,36 @@ settings-general-fk_settings-leg_tweak-floor_clip-description = Bodenclip kann d
settings-general-fk_settings-leg_tweak-toe_snap-description = Zehen-Ausrichtung versucht, die Rotation Ihrer Füße zu erraten, wenn keine Fuß-Tracker verwendet werden.
settings-general-fk_settings-leg_tweak-foot_plant-description = Fußkorrektur richtet Ihre Füße parallel zum Boden aus, wenn sie den Boden berühren.
settings-general-fk_settings-leg_fk = Beintracking
settings-general-fk_settings-leg_fk-reset_mounting_feet-description = Aktiviert das Zurücksetzen der Fußausrichtung, indem Sie auf die Zehenspitzen stehen.
settings-general-fk_settings-leg_fk-reset_mounting_feet = Fußausrichtung zurücksetzen
settings-general-fk_settings-arm_fk = Arm-Tracking
settings-general-fk_settings-arm_fk-description = Ändern Sie die Art und Weise, wie die Arme berechnet werden.
settings-general-fk_settings-arm_fk-force_arms = Arme vom VR-Headset erzwingen
settings-general-fk_settings-skeleton_settings = Skeletteinstellungen
settings-general-fk_settings-arm_fk-reset_mode-description = Ändern Sie, welche Armhaltung für den Befestigungs-Reset erwartet wird.
settings-general-fk_settings-arm_fk-back = nach Hinten
settings-general-fk_settings-arm_fk-back-description = Der Standardmodus, bei dem die Oberarme nach hinten und die Unterarme nach vorne gehen.
settings-general-fk_settings-arm_fk-tpose_up = T-Pose (oben)
settings-general-fk_settings-arm_fk-tpose_up-description = Erwartet, dass deine Arme während des vollständigen Zurücksetzens seitlich nach unten gerichtet sind und während des Befestigungs-Reset um 90 Grad nach außen gerichtet sind.
settings-general-fk_settings-arm_fk-tpose_down = T-Pose (unten)
settings-general-fk_settings-arm_fk-tpose_down-description = Erwartet, dass deine Arme während des vollständigen Zurücksetzens um 90 Grad nach außen gerichtet sind und während des Befestigungs-Reset seitlich nach unten.
settings-general-fk_settings-arm_fk-forward = Vorwärts
settings-general-fk_settings-arm_fk-forward-description = Erwartet, dass deine Arme um 90 Grad nach vorne gerichtet sind. Nützlich für VTubing.
settings-general-fk_settings-skeleton_settings-toggles = Skelett-Schalter
settings-general-fk_settings-skeleton_settings-description = Schalten Sie Skeletteinstellungen ein oder aus. Es wird empfohlen, diese eingeschaltet zu lassen.
settings-general-fk_settings-skeleton_settings-extended_spine_model = Erweitertes Wirbelsäulen-Modell
settings-general-fk_settings-skeleton_settings-extended_pelvis_model = Erweitertes Pelvis-Modell
settings-general-fk_settings-skeleton_settings-extended_knees_model = Erweitertes Knie-Modell
settings-general-fk_settings-skeleton_settings-ratios = Skelettverhältnisse
settings-general-fk_settings-skeleton_settings-ratios-description = Ändert die Werte der Skeletteinstellungen. Nachdem Sie diese geändert haben, müssen Sie möglicherweise Ihre Proportionen anpassen.
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_hip = Taille aus Brust zu Hüfte berechnen
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = Taille von Brust zu Beine berechnen
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = Hüfte von Brust zu Beine berechnen
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = Hüfte von Taille zu Beine berechnen
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Interpolieren der horizontalen und Torsionsrotation der Hüfte mit denen der Beine
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Interpolation der horizontalen und Torsionsrotationen der Knietracker mit denen der Fußgelenke
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = Interpolation der horizontalen und Torsionsrotationen der Knie mit denen der Fußgelenke
settings-general-fk_settings-self_localization-title = Motion-Capture-Modus
settings-general-fk_settings-self_localization-description = Der Motion-Capture-Modus ermöglicht es dem Skelett, ungefähr die eigene Position ohne Headset oder Tracker zu verfolgen. Beachten Sie, dass diese Funktion Fuß- und Kopf-Tracker benötigt und noch experimentell ist.
settings-general-fk_settings-vive_emulation-title = Vive-Simulierung
settings-general-fk_settings-vive_emulation-description = Simuliere die Tracking-Probleme, welche bei Vive-Trackern auftreten. Dies ist ein Scherz und verschlechtert das Tracking.
settings-general-fk_settings-vive_emulation-label = Vive-Simulierung
@@ -375,8 +404,8 @@ settings-general-gesture_control-taps =
# $amount (Number) - Amount of trackers
settings-general-gesture_control-trackers =
{ $amount ->
[one] Tracker
*[other] Tracker
[one] 1 Tracker
*[other] { $amount } Tracker
}
settings-general-gesture_control-yawResetEnabled = Horizontaler Reset durch Antippen
settings-general-gesture_control-yawResetDelay = Verzögerung für einen horizontalen Reset
@@ -389,6 +418,7 @@ settings-general-gesture_control-mountingResetDelay = Befestigungs-Reset-Verzög
settings-general-gesture_control-mountingResetTaps = Anzahl für Befestigungs-Reset
# The number of trackers that can have higher acceleration before a tap is rejected
settings-general-gesture_control-numberTrackersOverThreshold = Tracker über Schwellwert
settings-general-gesture_control-numberTrackersOverThreshold-description = Erhöhen Sie diesen Wert wenn Tipp-Erkennung nicht funktioniert. Setzen Sie den Wert nicht höher als benötigt, da dies Fehlauslöser verursachen kann.
## Appearance settings
@@ -407,6 +437,7 @@ settings-interface-appearance-font-placeholder = Standard-Schriftart
settings-interface-appearance-font-os_font = Betriebssystem-Schriftart
settings-interface-appearance-font-slime_font = Standard-Schriftart
settings-interface-appearance-font_size = Standard-Schriftgröße
settings-interface-appearance-font_size-description = Verändert die Schriftgröße der gesamten Oberfläche außer diesem Einstellungs-Panel.
## Notification settings
@@ -418,6 +449,9 @@ settings-general-interface-feedback_sound = Feedback-Geräusch
settings-general-interface-feedback_sound-description = Diese Option wird ein Geräusch abspielen, wenn ein Reset ausgeführt wurde.
settings-general-interface-feedback_sound-label = Feedback-Geräusch
settings-general-interface-feedback_sound-volume = Feedback-Sound-Lautstärke
settings-general-interface-connected_trackers_warning = Warnung zu verbundenen Trackern
settings-general-interface-connected_trackers_warning-description = Diese Option zeigt jedes Mal ein Pop-up-Fenster an, wenn Sie versuchen, SlimeVR zu beenden, während ein oder mehrere Tracker verbunden sind. Es erinnert Sie daran, die Tracker auszuschalten, um die Akkulaufzeit zu verlängern.
settings-general-interface-connected_trackers_warning-label = Warnung vor verbundenen Trackern beim Verlassen
## Serial settings
@@ -569,6 +603,13 @@ onboarding-reset_tutorial-1 =
Sie müssen dafür in einer I-Pose stehen. Es gibt eine Verzögerung von 3 Sekunden (konfigurierbar), bevor der Reset tatsächlich durchgeführt wird.
Dadurch werden die Position und Rotation aller Ihrer Tracker vollständig zurückgesetzt. Dies sollte die meisten Probleme beheben.
# Cares about multiline
onboarding-reset_tutorial-2 =
Tippen Sie { $taps } mal auf den markierten Tracker um einen Befestigungs-Reset auszulösen.
Ein Befestigungs-Reset hilft dabei, die Tracker neu auszurichten, so wie diese tatsächlich an Ihnen angebracht sind. Zum Beispiel, wenn Sie ein Tracker versehentlich verschoben haben und dessen Orientierung sich stark verändert hat.
Sie müssen sich in einer "Skifahren"-Pose, wie im Befestigungs-Assistenten gezeigt wird, befinden. Nach dem Auslösen wird der Reset nach 3 Sekunden (konfigurierbar) durchgeführt.
## Setup start
@@ -634,7 +675,8 @@ onboarding-assignment_tutorial = So bereiten Sie einen SlimeVR-Tracker vor, bevo
onboarding-assignment_tutorial-first_step = 1. Platzieren Sie einen Körperteilaufkleber (falls vorhanden) auf dem Tracker Ihrer Wahl
# This text has a character limit of around 11 characters, so please keep it short
onboarding-assignment_tutorial-sticker = Aufkleber
onboarding-assignment_tutorial-second_step-continuation = Die Klettseite für die Verlängerung sollte in dieser Ausrichtung sein:
onboarding-assignment_tutorial-second_step-v2 = 2. Befestigen Sie den Riemen an ihrem Tracker, wobei die Klettseite des Riemens in dieselbe Richtung zeigt wie das SlimeVR Logo Ihres Trackers:
onboarding-assignment_tutorial-second_step-continuation-v2 = Die Klettseite für den Erweiterungstracker sollte nach oben zeigen, wie in der folgenden Abbildung:
onboarding-assignment_tutorial-done = Ich habe Aufkleber und Bänder angebracht!
## Tracker assignment setup
@@ -734,6 +776,13 @@ onboarding-choose_mounting-manual_mounting = Manuelle Befestigungsposition
# Italized text
onboarding-choose_mounting-manual_mounting-label = Empfohlen
onboarding-choose_mounting-manual_mounting-description = Auf diese Weise können Sie die Montagerichtung für jeden Tracker manuell auswählen
# Multiline text
onboarding-choose_mounting-manual_modal-title =
Sind Sie sich sicher, dass Sie
die automatische Tracker-Ausrichtung durchführen möchten?
onboarding-choose_mounting-manual_modal-description = <b>Die manuelle Tracker-Ausrichtung wird für neue Benutzer empfohlen</b>, da die Posen der automatischen Tracker-Ausrichtung anfangs schwer zu treffen sind und möglicherweise etwas Übung erfordern.
onboarding-choose_mounting-manual_modal-confirm = Ich bin mir sicher, was ich tue
onboarding-choose_mounting-manual_modal-cancel = Abbruch
## Tracker manual mounting setup
@@ -771,8 +820,13 @@ onboarding-choose_proportions-auto_proportions = Automatische Proportionen
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = Empfohlen
onboarding-choose_proportions-manual_proportions = Manuelle Körperproportionen
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = Für kleine Anpassungen
onboarding-choose_proportions-manual_proportions-description = Auf diese Weise können Sie Ihre Proportionen manuell anpassen, indem Sie diese direkt ändern
onboarding-choose_proportions-export = Proportionen exportieren
onboarding-choose_proportions-import = Proportionen importieren
onboarding-choose_proportions-import-success = Importiert
onboarding-choose_proportions-import-failed = Fehlgeschlagen
onboarding-choose_proportions-file_type = Körperproportions-Datei
## Tracker manual proportions setup
@@ -799,16 +853,20 @@ onboarding-automatic_proportions-check_height-title = Überprüfen Sie Ihre Kör
onboarding-automatic_proportions-check_height-fetch_height = Ich stehe!
# Context is that the height is unknown
onboarding-automatic_proportions-check_height-unknown = Unbekannt
# Shows an element below it
onboarding-automatic_proportions-check_height-height = Ihre Körpergröße ist
# Shows an element below it
onboarding-automatic_proportions-check_height-hmd_height = Und Ihre Headset-Höhe ist
onboarding-automatic_proportions-start_recording-title = Bereiten Sie sich auf ein paar Bewegungen vor
onboarding-automatic_proportions-start_recording-description = Wir werden nun einige bestimmte Posen und Bewegungen aufnehmen. Diese werden im nächsten Bildschirm angezeigt. Bereiten Sie sicht darauf vor, wenn Sie den Knopf drücken!
onboarding-automatic_proportions-start_recording-next = Aufnahme starten
onboarding-automatic_proportions-recording-title = Aufnahme
onboarding-automatic_proportions-recording-description-p0 = Aufnahme läuft...
onboarding-automatic_proportions-recording-description-p1 = Machen Sie die unten beschriebenen Bewegungen:
# Each line of text is a different list item
onboarding-automatic_proportions-recording-steps =
Stehen Sie aufrecht und drehen Sie den Kopf im Kreis.
Beugen Sie den Rücken nach vorne und gehen Sie in die Hocke. Schauen Sie in der Hocke erst nach links, dann nach rechts.
Drehen Sie Ihren Oberkörper nach links (gegen den Uhrzeigersinn), dann strecken Sie sich nach unten zum Boden.
Drehen Sie Ihren Oberkörper nach rechts (im Uhrzeigersinn) und strecken Sie ihn dann nach unten zum Boden.
Rollen Sie Ihre Hüften in einer kreisförmigen Bewegung, als ob Sie einen Hula-Hoop-Reifen benutzen würden.
Wenn die Aufnahme noch nicht zu Ende ist, können Sie diese Schritte wiederholen, bis sie zu Ende ist.
onboarding-automatic_proportions-recording-processing = Aufnahme wird verarbeitet...
# $time (Number) - Seconds left for the automatic calibration recording to finish (max 20)
onboarding-automatic_proportions-recording-timer =
@@ -824,11 +882,17 @@ onboarding-automatic_proportions-verify_results-redo = Aufnahme wiederholen
onboarding-automatic_proportions-verify_results-confirm = Ergebnisse sind korrekt
onboarding-automatic_proportions-done-title = Körper gemessen und gespeichert.
onboarding-automatic_proportions-done-description = Ihre Körperproportionen-Kalibrierung ist abgeschlossen!
onboarding-automatic_proportions-error_modal-confirm = Verstanden!
## Home
home-no_trackers = Keine Tracker erkannt oder zugewiesen
## Trackers Still On notification
trackers_still_on-modal-confirm = SlimeVR beenden
trackers_still_on-modal-cancel = Bitte warten...
## Status system
status_system-StatusTrackerReset = Es wird empfohlen, einen vollständigen Reset durchzuführen, da ein oder mehrere Tracker nicht kalibriert sind.
+51 -12
View File
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = waw
widget-imu_visualizer-rotation_preview = pwewiew
widget-imu_visualizer-rotation_hide = hoide
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Skeweton pweview
widget-skeleton_visualizer-hide = hoide
## Tracker status
tracker-status-none = no stawtus
@@ -152,6 +157,7 @@ tracker-status-error = ewwow
tracker-status-disconnected = disconnyected
tracker-status-occluded = occwuded
tracker-status-ok = oki
tracker-status-timed_out = Timed owt
## Tracker status columns
@@ -348,9 +354,20 @@ settings-general-fk_settings-leg_tweak-floor_clip-description = fwoow-cwip can r
settings-general-fk_settings-leg_tweak-toe_snap-description = toe-snap atempts to gwess da wotation of ur fweet if fweet tracker thingys arewnt in use
settings-general-fk_settings-leg_tweak-foot_plant-description = pawb-pwant wotates youw feet to be pawawwew to the gwound wen in cawntact.
settings-general-fk_settings-leg_fk = leg twacking
settings-general-fk_settings-leg_fk-reset_mounting_feet-description = Enyabwe pawb Meownting Weset by tiptoeing.
settings-general-fk_settings-leg_fk-reset_mounting_feet = Pawb Meownting Weset
settings-general-fk_settings-arm_fk = awm twacking
settings-general-fk_settings-arm_fk-description = chawnge teh way teh awms awe twacked.
settings-general-fk_settings-arm_fk-force_arms = fowce awms fwom hmd
settings-general-fk_settings-arm_fk-reset_mode-description = Change which awm pose is expected fow meownting weset.
settings-general-fk_settings-arm_fk-back = bak
settings-general-fk_settings-arm_fk-back-description = The defauwt mode, wit da uppew awms going back and wowew awms going fowwawd.
settings-general-fk_settings-arm_fk-tpose_up = T-pose (up)
settings-general-fk_settings-arm_fk-tpose_up-description = Expects youw awms to be down on the sides duwing Fuww Weset, and 90 degwees up to the sides duwing Meownting Weset.
settings-general-fk_settings-arm_fk-tpose_down = T-pose (down)
settings-general-fk_settings-arm_fk-tpose_down-description = Expects youw awms to be 90 degwees up to the sides duwing Fuww Weset, and down on the sides duwing Meownting Weset.
settings-general-fk_settings-arm_fk-forward = Fowwawd
settings-general-fk_settings-arm_fk-forward-description = Expects youw awms to be up 90 degwees fowwawd. Usefuw fow VTubing.
settings-general-fk_settings-skeleton_settings-toggles = skeweton toggews
settings-general-fk_settings-skeleton_settings-description = toggwe skeweton sewttings on owow off. is wowcommended to weawve these on~
settings-general-fk_settings-skeleton_settings-extended_spine_model = extwended spine modew
@@ -364,6 +381,7 @@ settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = impu
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = impute hip fwom waist to wegs
settings-general-fk_settings-skeleton_settings-interp_hip_legs = awewage da hip's yaw and woll wiff da legs'
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = awewage da knee twackews' yaw and woll wiff da ankews'
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = Avewage the knees' yaw and woww with the ankews'
settings-general-fk_settings-self_localization-title = mocap mowd
settings-general-fk_settings-self_localization-description = mocap mowd awwows da skeweton to wuffly twack is own posishun without a hedset or other twackews. note dat dis wequiwes feet and hed twackews to wowk and is stiwll expewimentaw.
settings-general-fk_settings-vive_emulation-title = vive emuwation
@@ -431,6 +449,9 @@ settings-general-interface-feedback_sound = feeback sownd
settings-general-interface-feedback_sound-description = dis awptshun wiww pway a sownd wen a weset is twiggered (meow~!)
settings-general-interface-feedback_sound-label = feeback sownd
settings-general-interface-feedback_sound-volume = feedback sownd volyume
settings-general-interface-connected_trackers_warning = Connected twackews wawning
settings-general-interface-connected_trackers_warning-description = This option wiww show a pop-up evewy time you twy exiting SwimeVR whiwe having one ow mowe connected twackews. It weminds you to tuwn off youw twackews when you awe done to pwesewve battewy wife.
settings-general-interface-connected_trackers_warning-label = Connected twackews wawning on exit
## Serial settings
@@ -513,7 +534,7 @@ settings-osc-vmc = viwtuaw motion captuwe
# This cares about multilines
settings-osc-vmc-description =
change settings specific to the vmc (viwtuaw motion captuwe) pwotocow
to send swimevr's twacking data and weceive twacking data fwom othew apps.
to send SwimeVR's twacking data and weceive twacking data fwom othew apps.
settings-osc-vmc-enable = enaybwe
settings-osc-vmc-enable-description = toggle teh sending awnd wweceiving of data
settings-osc-vmc-enable-label = enaybwe
@@ -597,7 +618,7 @@ onboarding-reset_tutorial-2 =
## Setup start
onboarding-home = wewcome to swimevr
onboarding-home = wewcome to SwimeVR
onboarding-home-start = wets get set up!
## Enter VR part of setup
@@ -760,6 +781,13 @@ onboarding-choose_mounting-manual_mounting = manyul meownting
# Italized text
onboarding-choose_mounting-manual_mounting-label = wecommended
onboarding-choose_mounting-manual_mounting-description = dis will let u chose da meownting diwecshun manuwawwy fow eech twackew
# Multiline text
onboarding-choose_mounting-manual_modal-title =
Awe you suwe you want to do
the automatic mounting cawibwation?
onboarding-choose_mounting-manual_modal-description = <b>The manuaw mounting cawibwation is wecommended fow new usews</b>, as the automatic mounting cawibwation's poses can be hawd to get wight fiwst and may wequiwe some pwactice.
onboarding-choose_mounting-manual_modal-confirm = I'm suwe of what I'm doing
onboarding-choose_mounting-manual_modal-cancel = cancew :o
## Tracker manual mounting setup
@@ -800,15 +828,18 @@ onboarding-choose_proportions-description =
onboarding-choose_proportions-auto_proportions = awtomatic pwopowtions
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = wecommended
onboarding-choose_proportions-auto_proportions-descriptionv2 =
dis wiww guess youw pwopowshuns by wecowding a sampwe of youw movement and passing it thru an algowithm.
onboarding-choose_proportions-auto_proportions-descriptionv3 =
This wiww guess youw pwopowtions by wecowding a sampwe of youw movements and passing it thwough an awgowithm.
<b>dis wequiwes having youw hmd connected to SwimeVR!</b>
<b>This wequiwes having youw headset (HMD) connected to SwimeVR and on youw head!</b>
onboarding-choose_proportions-manual_proportions = manuwal pwopowtions
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = fow smol touchies
onboarding-choose_proportions-manual_proportions-description = dis will let u ajust ur pwopowtions manuwally by modifying dem diwectwy
onboarding-choose_proportions-export = expowt pawpowshuns
onboarding-choose_proportions-import = Impowt pwopowtions
onboarding-choose_proportions-import-success = Impowted
onboarding-choose_proportions-import-failed = Faiwed
onboarding-choose_proportions-file_type = body pawpowshuns file
## Tracker manual proportions setup
@@ -831,13 +862,12 @@ onboarding-automatic_proportions-put_trackers_on-description = to cawybwate yowu
onboarding-automatic_proportions-put_trackers_on-next = i have awl my twackaws on
onboarding-automatic_proportions-requirements-title = wequiyements
# Each line of text is a different list item
onboarding-automatic_proportions-requirements-description =
u have at weast enyough twackews to twack youw pawbs (genyewawwy 5 twackews).
u have youw twackews and headset on.
u awe weawing youw twackews and headset.
ur twackews and headset awe connyected to da SwimeVR sewvew.
ur twackews and headset awe wowking pwopewwy within the SwimeVR sewvew.
ur headset is wepowting positionyaw data to the SwimeVR sewvew (this genyewawwy wenyewawwy means having SteamVR wunnying and connyected to SwimeVR using SwimeVR's SteamVR dwivew).
onboarding-automatic_proportions-requirements-descriptionv2 =
You have at weast enough twackews to twack youw pawbs (genewawwy 5 twackews).
You have youw twackews and headset on and awe weawing them.
Youw twackews and headset awe connected to the SwimeVR sewvew and awe wowking pwopewwy (ex. no stuttewing, disconnecting, etc).
Youw headset is wepowting positionaw data to the SwimeVR sewvew (this genewawwy means having SteamVR wunning and connected to SwimeVR using SwimeVR's SteamVR dwivew).
Youw twacking is wowking and is accuwatewy wepwesenting youw movements (ex. you have pewfowmed a fuww weset and they move the wight diwection when kicking, bending ovew, sitting, etc).
onboarding-automatic_proportions-requirements-next = i have wed da wequiwemens
onboarding-automatic_proportions-check_height-title = check youw height
onboarding-automatic_proportions-check_height-description = we use youw height as a basis of ouw measuwements by using da hmd's height as an appwoximashun of youw actuwaw height, but is better to check if they are right youwsewf!
@@ -889,6 +919,15 @@ onboarding-automatic_proportions-error_modal-confirm = undewstood!
home-no_trackers = no twackaws detecyted owo wowigned
## Trackers Still On notification
trackers_still_on-modal-title = Twackews stiww on
trackers_still_on-modal-description =
One ow mowe twackews awe stiww on.
Do you stiww want to exit SwimeVR?
trackers_still_on-modal-confirm = Exit SwimeVR
trackers_still_on-modal-cancel = Howd on...
## Status system
status_system-StatusTrackerReset = it wecommended to pewfowm a fuwl weset as one or mowe twackews awe unadjussed. -w-
+33 -13
View File
@@ -117,7 +117,7 @@ widget-developer_mode = Developer Mode
widget-developer_mode-high_contrast = High contrast
widget-developer_mode-precise_rotation = Precise rotation
widget-developer_mode-fast_data_feed = Fast data feed
widget-developer_mode-filter_slimes_and_hmd = Filter slimes and HMD
widget-developer_mode-filter_slimes_and_hmd = Filter Slimes and HMD
widget-developer_mode-sort_by_name = Sort by name
widget-developer_mode-raw_slime_rotation = Raw rotation
widget-developer_mode-more_info = More info
@@ -128,6 +128,10 @@ widget-imu_visualizer-rotation_raw = Raw
widget-imu_visualizer-rotation_preview = Preview
widget-imu_visualizer-rotation_hide = Hide
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Skeleton preview
widget-skeleton_visualizer-hide = Hide
## Tracker status
tracker-status-none = No Status
tracker-status-busy = Busy
@@ -135,6 +139,7 @@ tracker-status-error = Error
tracker-status-disconnected = Disconnected
tracker-status-occluded = Occluded
tracker-status-ok = OK
tracker-status-timed_out = Timed out
## Tracker status columns
tracker-table-column-name = Name
@@ -325,7 +330,7 @@ settings-general-fk_settings-leg_fk = Leg tracking
settings-general-fk_settings-leg_fk-reset_mounting_feet-description = Enable feet Mounting Reset by tiptoeing.
settings-general-fk_settings-leg_fk-reset_mounting_feet = Feet Mounting Reset
settings-general-fk_settings-arm_fk = Arm tracking
settings-general-fk_settings-arm_fk-description = Force arms to be tracked from the HMD even if positional hand data is available.
settings-general-fk_settings-arm_fk-description = Force arms to be tracked from the headset (HMD) even if positional hand data is available.
settings-general-fk_settings-arm_fk-force_arms = Force arms from HMD
settings-general-fk_settings-arm_fk-reset_mode-description = Change which arm pose is expected for mounting reset.
settings-general-fk_settings-arm_fk-back = Back
@@ -414,6 +419,9 @@ settings-general-interface-feedback_sound = Feedback sound
settings-general-interface-feedback_sound-description = This option will play a sound when a reset is triggered.
settings-general-interface-feedback_sound-label = Feedback sound
settings-general-interface-feedback_sound-volume = Feedback sound volume
settings-general-interface-connected_trackers_warning = Connected trackers warning
settings-general-interface-connected_trackers_warning-description = This option will show a pop-up every time you try exiting SlimeVR while having one or more connected trackers. It reminds you to turn off your trackers when you are done to preserve battery life.
settings-general-interface-connected_trackers_warning-label = Connected trackers warning on exit
## Serial settings
settings-serial = Serial Console
@@ -463,7 +471,7 @@ settings-osc-router-network-address-placeholder = IPV4 address
settings-osc-vrchat = VRChat OSC Trackers
# This cares about multilines
settings-osc-vrchat-description =
Change VRChat-specific settings to receive HMD data and send
Change VRChat-specific settings to receive headset (HMD) data and send
tracker data for FBT without SteamVR (ex. Quest standalone).
settings-osc-vrchat-enable = Enable
settings-osc-vrchat-enable-description = Toggle the sending and receiving of data.
@@ -554,7 +562,7 @@ onboarding-reset_tutorial-skip = Skip step
# Cares about multiline
onboarding-reset_tutorial-0 = Tap { $taps } times the highlighted tracker for triggering yaw reset.
This will make the trackers face the same direction as your HMD.
This will make the trackers face the same direction as your headset (HMD).
# Cares about multiline
onboarding-reset_tutorial-1 = Tap { $taps } times the highlighted tracker for triggering full reset.
@@ -713,7 +721,12 @@ onboarding-choose_mounting-manual_mounting = Manual mounting
# Italized text
onboarding-choose_mounting-manual_mounting-label = Recommended
onboarding-choose_mounting-manual_mounting-description = This will let you choose the mounting direction manually for each tracker
# Multiline text
onboarding-choose_mounting-manual_modal-title = Are you sure you want to do
the automatic mounting calibration?
onboarding-choose_mounting-manual_modal-description = <b>The manual mounting calibration is recommended for new users</b>, as the automatic mounting calibration's poses can be hard to get right first and may require some practice.
onboarding-choose_mounting-manual_modal-confirm = I'm sure of what I'm doing
onboarding-choose_mounting-manual_modal-cancel = Cancel
## Tracker manual mounting setup
onboarding-manual_mounting-back = Go Back to Enter VR
@@ -750,10 +763,10 @@ onboarding-choose_proportions-description = Body proportions are used to know th
onboarding-choose_proportions-auto_proportions = Automatic proportions
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = Recommended
onboarding-choose_proportions-auto_proportions-descriptionv2 =
onboarding-choose_proportions-auto_proportions-descriptionv3 =
This will guess your proportions by recording a sample of your movements and passing it through an algorithm.
<b>This requires having your HMD connected to SlimeVR!</b>
<b>This requires having your headset (HMD) connected to SlimeVR and on your head!</b>
onboarding-choose_proportions-manual_proportions = Manual proportions
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = For small touches
@@ -782,16 +795,15 @@ onboarding-automatic_proportions-put_trackers_on-description = To calibrate your
onboarding-automatic_proportions-put_trackers_on-next = I have all my trackers on
onboarding-automatic_proportions-requirements-title = Requirements
# Each line of text is a different list item
onboarding-automatic_proportions-requirements-description =
onboarding-automatic_proportions-requirements-descriptionv2 =
You have at least enough trackers to track your feet (generally 5 trackers).
You have your trackers and headset on.
You are wearing your trackers and headset.
Your trackers and headset are connected to the SlimeVR server.
Your trackers and headset are working properly within the SlimeVR server.
You have your trackers and headset on and are wearing them.
Your trackers and headset are connected to the SlimeVR server and are working properly (ex. no stuttering, disconnecting, etc).
Your headset is reporting positional data to the SlimeVR server (this generally means having SteamVR running and connected to SlimeVR using SlimeVR's SteamVR driver).
Your tracking is working and is accurately representing your movements (ex. you have performed a full reset and they move the right direction when kicking, bending over, sitting, etc).
onboarding-automatic_proportions-requirements-next = I have read the requirements
onboarding-automatic_proportions-check_height-title = Check your height
onboarding-automatic_proportions-check_height-description = We use your height as a basis of our measurements by using the HMD's height as an approximation of your actual height, but it's better to check if they are right yourself!
onboarding-automatic_proportions-check_height-description = We use your height as a basis of our measurements by using the headset's (HMD) height as an approximation of your actual height, but it's better to check if they are right yourself!
# All the text is in bold!
onboarding-automatic_proportions-check_height-calculation_warning = Please press the button while standing <u>upright</u> to calculate your height. You have 3 seconds after you press the button!
onboarding-automatic_proportions-check_height-fetch_height = I'm standing!
@@ -838,6 +850,14 @@ onboarding-automatic_proportions-error_modal-confirm = Understood!
## Home
home-no_trackers = No trackers detected or assigned
## Trackers Still On notification
trackers_still_on-modal-title = Trackers still on
trackers_still_on-modal-description =
One or more trackers are still on.
Do you still want to exit SlimeVR?
trackers_still_on-modal-confirm = Exit SlimeVR
trackers_still_on-modal-cancel = Hold on...
## Status system
status_system-StatusTrackerReset = It is recommended to perform a full reset as one or more trackers are unadjusted.
status_system-StatusSteamVRDisconnected = { $type ->
+51 -11
View File
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = Raw
widget-imu_visualizer-rotation_preview = Preview
widget-imu_visualizer-rotation_hide = Ocultar
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Previsualización del esqueleto
widget-skeleton_visualizer-hide = Ocultar
## Tracker status
tracker-status-none = Sin estado
@@ -152,6 +157,7 @@ tracker-status-error = Error
tracker-status-disconnected = Desconectado
tracker-status-occluded = Ocluido
tracker-status-ok = Conectado
tracker-status-timed_out = Conexión interrumpida
## Tracker status columns
@@ -348,9 +354,20 @@ settings-general-fk_settings-leg_tweak-floor_clip-description = El clip del suel
settings-general-fk_settings-leg_tweak-toe_snap-description = El encajado de dedos intenta adivinar la rotación de los pies si sus respectivos trackers no están en uso.
settings-general-fk_settings-leg_tweak-foot_plant-description = El plantado del pie rota los pies para que sean paralelos con el suelo al entrar en contacto.
settings-general-fk_settings-leg_fk = Tracking de piernas
settings-general-fk_settings-leg_fk-reset_mounting_feet-description = Activar reinicio de montura para el pie mediante el pararse de puntillas.
settings-general-fk_settings-leg_fk-reset_mounting_feet = Reinicio de montura de pies
settings-general-fk_settings-arm_fk = Trackeo de brazos
settings-general-fk_settings-arm_fk-description = Cambia cómo el movimiento de los brazos es detectado.
settings-general-fk_settings-arm_fk-force_arms = Forzar brazos desde el HMD
settings-general-fk_settings-arm_fk-reset_mode-description = Cambiar que pose de brazos es esperada para el reinicio de montura.
settings-general-fk_settings-arm_fk-back = Detrás
settings-general-fk_settings-arm_fk-back-description = El modo predeterminado, con el brazo yendo por detrás y el antebrazo yendo para adelante.
settings-general-fk_settings-arm_fk-tpose_up = T-pose (arriba)
settings-general-fk_settings-arm_fk-tpose_up-description = Espera que tus brazos estén abajo hacia los lados durante un reinicio completo, y 90 grados hacia los lados durante un reinicio de montura.
settings-general-fk_settings-arm_fk-tpose_down = T-pose (abajo)
settings-general-fk_settings-arm_fk-tpose_down-description = Espera que tus brazos estén 90 grados arriba hacia los lados durante un reinicio completo, y abajo hacia los lados durante un reinicio de montura.
settings-general-fk_settings-arm_fk-forward = Delante
settings-general-fk_settings-arm_fk-forward-description = Espera que tus brazos estén 90 grados para delante. Útil para VTubing.
settings-general-fk_settings-skeleton_settings-toggles = Interruptores del esqueleto
settings-general-fk_settings-skeleton_settings-description = Habilita o deshabilita los ajustes de esqueleto. Es recomendado dejar estos ajustes habilitados.
settings-general-fk_settings-skeleton_settings-extended_spine_model = Modelo extendido de la columna
@@ -363,7 +380,8 @@ settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = Im
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = Imputar de la cadera al pecho hasta las piernas
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = Imputar de la cadera a la cintura hasta las piernas
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Promediar la rotación del eje vertical y horizontal de la cadera con la de las piernas
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Promediar la rotación del eje vertical y horizontal de la rodilla con la de los tobillos
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Promediar la rotación del eje vertical y horizontal de los trackers de las rodillas con la de los tobillos
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = Promediar la rotación del eje vertical y horizontal de las rodillas con la de los tobillos
settings-general-fk_settings-self_localization-title = Modo mocap
settings-general-fk_settings-self_localization-description = El modo mocap permite al esqueleto rastrear de forma aproximada su propia posición sin un casco o otros sensores. Nota que esto requiere que los trackers en el pie y cabeza estén y sigue siendo experimental.
settings-general-fk_settings-vive_emulation-title = Vive emulation
@@ -431,6 +449,9 @@ settings-general-interface-feedback_sound = Sonido de feedback
settings-general-interface-feedback_sound-description = Esta opción reproducirá un sonido cuando se realice un reinicio.
settings-general-interface-feedback_sound-label = Sonido de feedback
settings-general-interface-feedback_sound-volume = Volumen del sonido de feedback
settings-general-interface-connected_trackers_warning = Advertencia de trackers conectados
settings-general-interface-connected_trackers_warning-description = Esta opción hará que aparezca un pop-up cada vez que intentas salir de SlimeVR mientras tienes uno o más trackers conectados. Te recuerda de apagar tus trackers cuando ya paraste de usarlos así preservas la duración de la batería.
settings-general-interface-connected_trackers_warning-label = Advertencia de trackers conectados al salir
## Serial settings
@@ -760,6 +781,13 @@ onboarding-choose_mounting-manual_mounting = Montura manual
# Italized text
onboarding-choose_mounting-manual_mounting-label = Recomendado
onboarding-choose_mounting-manual_mounting-description = Esto te permitirá elegir la dirección de montura manualmente para cada tracker.
# Multiline text
onboarding-choose_mounting-manual_modal-title =
¿Está seguro de que quiere
hacer la calibración automática de montura?
onboarding-choose_mounting-manual_modal-description = <b>Está recomendado para nuevos usuarios el uso de la calibración manual de montura</b>, ya que las poses de la calibración automática pueden ser difíciles de hacer correctamente en el primer intento y requieran un poco de práctica.
onboarding-choose_mounting-manual_modal-confirm = Estoy seguro de lo que hago
onboarding-choose_mounting-manual_modal-cancel = Cancelar
## Tracker manual mounting setup
@@ -800,14 +828,18 @@ onboarding-choose_proportions-description =
onboarding-choose_proportions-auto_proportions = Proporciones automáticas
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = Recomendado
onboarding-choose_proportions-auto_proportions-descriptionv2 =
Esto adivinará tus proporciones grabando una muestra de tus movimientos y pasándola por un algoritmo.
<b>¡Esto requiere tener tu VR conectado a SlimeVR!</b>
onboarding-choose_proportions-auto_proportions-descriptionv3 =
Esto estimará tus proporciones grabando una muestra de tus movimientos y pasándolos a través de un algoritmo.
<b>¡Esto requiere tener tu visor (HMD) conectado a SlimeVR y en tu cabeza!</b>
onboarding-choose_proportions-manual_proportions = Proporciones manuales
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = Para toques pequeños
onboarding-choose_proportions-manual_proportions-description = Esto te permitirá ajustar tus proporciones manualmente de forma directa
onboarding-choose_proportions-export = Exportar proporciones
onboarding-choose_proportions-import = Importar proporciones
onboarding-choose_proportions-import-success = Importado
onboarding-choose_proportions-import-failed = Error
onboarding-choose_proportions-file_type = Archivo de proporciones del cuerpo
## Tracker manual proportions setup
@@ -830,13 +862,12 @@ onboarding-automatic_proportions-put_trackers_on-description = Para calibrar tus
onboarding-automatic_proportions-put_trackers_on-next = Tengo puestos todos mis sensores
onboarding-automatic_proportions-requirements-title = Requisitos
# Each line of text is a different list item
onboarding-automatic_proportions-requirements-description =
Tienes al menos suficientes trackers para rastrear tus pies (generalmente 5 trackers).
Tienes tus trackers y VR encendidos.
Tienes tus trackers y VR puestos.
Tus trackers y VR están conectados al servidor de SlimeVR.
Tus trackers y VR están funcionando correctamente con el servidor de SlimeVR.
Tu VR está reportando datos posicionales al servidor de SlimeVR (esto generalmente implica que SteamVR esté corriendo y conectado a SlimeVR usando el driver de SlimeVR para SteamVR).
onboarding-automatic_proportions-requirements-descriptionv2 =
Tienes suficientes sensores para mover tus pies (generalmente 5 sensores).
Tienes tus sensores y visor encendidos y los tienes puestos.
Tus sensores y visor están conectados al servidor de SlimeVR y están funcionando correctamente (ej: no se congela, no se desconecta, etc).
Tu visor esta reportando datos posicionales al servidor de SlimeVR (esto generalmente significa tener SteamVR abierto y conectado a SlimeVR usando el driver de SlimeVR para SteamVR).
Tus sensores están funcionando y están representando tus movimientos con precisión (ej: Realizaste un reinicio completo y se mueven en la dirección correcta cuando pateas, te agachas, te sientas, etc).
onboarding-automatic_proportions-requirements-next = He leído los requisitos
onboarding-automatic_proportions-check_height-title = Compruebe su altura
onboarding-automatic_proportions-check_height-description = Utilizamos tu altura como base de nuestras mediciones utilizando la altura del VR como aproximación a tu altura real, ¡Pero es mejor que compruebes tú mismo si son correctas!
@@ -888,6 +919,15 @@ onboarding-automatic_proportions-error_modal-confirm = ¡Entendido!
home-no_trackers = No hay sensores detectados o asignados
## Trackers Still On notification
trackers_still_on-modal-title = Los trackers siguen encendidos
trackers_still_on-modal-description =
Uno o más trackers siguen encendidos.
¿Estás seguro que quieres salir de SlimeVR?
trackers_still_on-modal-confirm = Salir de SlimeVR
trackers_still_on-modal-cancel = Espera un momento...
## Status system
status_system-StatusTrackerReset = Se recomienda realizar un reinicio completo ya que uno o más trackers están sin reiniciar.
+162 -17
View File
@@ -36,7 +36,7 @@ body_part-RIGHT_HAND = Mano derecha
body_part-RIGHT_UPPER_LEG = Muslo derecho
body_part-RIGHT_LOWER_LEG = Tobillo derecho
body_part-RIGHT_FOOT = Pie derecho
body_part-UPPER_CHEST = Abdomen superior
body_part-UPPER_CHEST = Torso superior
body_part-CHEST = Pecho
body_part-WAIST = Cintura
body_part-HIP = Cadera
@@ -60,26 +60,26 @@ skeleton_bone-CHEST = Longitud del pecho
skeleton_bone-WAIST = Longitud de cintura
skeleton_bone-HIP = Longitud de cadera
skeleton_bone-HIP_OFFSET = Compensacion de cadera
skeleton_bone-HIPS_WIDTH = Ancho de la Cadera
skeleton_bone-leg_group = Largo de las piernas
skeleton_bone-UPPER_LEG = Largo de la zona alta de las piernas
skeleton_bone-LOWER_LEG = Largo de la zona baja de las piernas
skeleton_bone-FOOT_LENGTH = Largo del pie
skeleton_bone-HIPS_WIDTH = Ancho de la cadera
skeleton_bone-leg_group = Longitud de la espinilla
skeleton_bone-UPPER_LEG = Longitud del muslo
skeleton_bone-LOWER_LEG = Longitud de la espinilla
skeleton_bone-FOOT_LENGTH = Longitud del pie
skeleton_bone-FOOT_SHIFT = Desplazamiento del pie
skeleton_bone-SKELETON_OFFSET = Compensacion del esqueleto
skeleton_bone-SHOULDERS_DISTANCE = Distancia de los hombros
skeleton_bone-SHOULDERS_WIDTH = Ancho de los hombros
skeleton_bone-arm_group = Largo del brazo
skeleton_bone-UPPER_ARM = Largo de la zona alta del brazo
skeleton_bone-LOWER_ARM = Largo del antebrazo
skeleton_bone-HAND_Y = Distancia de la mano Y
skeleton_bone-HAND_Z = Distancia de la mano Z
skeleton_bone-SHOULDERS_DISTANCE = Distancia de hombros
skeleton_bone-SHOULDERS_WIDTH = Ancho de hombros
skeleton_bone-arm_group = Longitud del brazo
skeleton_bone-UPPER_ARM = Longitud del brazo
skeleton_bone-LOWER_ARM = Longitud del antebrazo
skeleton_bone-HAND_Y = Distancia Y de la mano
skeleton_bone-HAND_Z = Distancia Z de la mano
skeleton_bone-ELBOW_OFFSET = Compensacion de los codos
## Tracker reset buttons
reset-reset_all = Reiniciar todas las proporciones
reset-full = Reiniciar
reset-full = Reinicio completo
reset-mounting = Reiniciar montura
reset-yaw = Restablecimiento horizontal
@@ -96,7 +96,7 @@ serial_detection-close = Cerrar
## Navigation bar
navbar-home = Inicio
navbar-body_proportions = Proporciones corporales
navbar-body_proportions = Proporciones físicas
navbar-trackers_assign = Asignación de trackers
navbar-mounting = Calibración de montura
navbar-onboarding = Asistente de Configuración
@@ -130,6 +130,7 @@ widget-drift_compensation-clear = Eliminar compensacion del drift
widget-developer_mode = Modo de desarrollador
widget-developer_mode-high_contrast = Contraste alto
widget-developer_mode-precise_rotation = Rotación precisa
widget-developer_mode-fast_data_feed = Flujo de datos rápido
widget-developer_mode-filter_slimes_and_hmd = Filtrar Slimes y HMD
widget-developer_mode-sort_by_name = Ordenar por nombre
widget-developer_mode-raw_slime_rotation = Rotación sin filtrar
@@ -142,6 +143,11 @@ widget-imu_visualizer-rotation_raw = Sin filtrar
widget-imu_visualizer-rotation_preview = Previsualización
widget-imu_visualizer-rotation_hide = Ocultar
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Previsualización del esqueleto
widget-skeleton_visualizer-hide = Ocultar
## Tracker status
tracker-status-none = Sin estatus
@@ -175,6 +181,7 @@ tracker-rotation-back = Trasero
tracker-rotation-back_left = Trasero-Izquierdo
tracker-rotation-back_right = Trasero-Derecho
tracker-rotation-custom = Personalizado
tracker-rotation-overriden = (anulado por el reinicio de montura)
## Tracker information
@@ -238,6 +245,8 @@ tracker_selection_menu-RIGHT_HAND = { -tracker_selection-part } mano derecha?
tracker_selection_menu-RIGHT_UPPER_LEG = { -tracker_selection-part } muslo derecho?
tracker_selection_menu-RIGHT_LOWER_LEG = { -tracker_selection-part } tobillo derecho?
tracker_selection_menu-RIGHT_FOOT = { -tracker_selection-part } pie derecho?
tracker_selection_menu-RIGHT_CONTROLLER = { -tracker_selection-part } mando derecho?
tracker_selection_menu-UPPER_CHEST = { -tracker_selection-part } torso superior?
tracker_selection_menu-CHEST = { -tracker_selection-part } pecho?
tracker_selection_menu-WAIST = { -tracker_selection-part } cintura?
tracker_selection_menu-HIP = { -tracker_selection-part } cadera?
@@ -261,7 +270,7 @@ tracker_selection_menu-neck_warning-cancel = Cancelar
## Mounting menu
mounting_selection_menu = ¿Dónde quieres que esté este tracker?
mounting_selection_menu = ¿Dónde quieres colocar el tracker?
mounting_selection_menu-close = Cerrar
## Sidebar settings
@@ -273,8 +282,11 @@ settings-sidebar-fk_settings = Configuración del tracking
settings-sidebar-gesture_control = Control de los gestos
settings-sidebar-interface = Interfaz
settings-sidebar-osc_router = Router OSC
settings-sidebar-osc_trackers = VRChat OSC Trackers
settings-sidebar-utils = Utilidades
settings-sidebar-serial = Consola serial
settings-sidebar-appearance = Apariencia
settings-sidebar-notifications = Notificaciones
## SteamVR settings
@@ -313,6 +325,7 @@ settings-general-tracker_mechanics-filtering-amount = Cantidad
settings-general-tracker_mechanics-drift_compensation = Compensación en la desviación
settings-general-tracker_mechanics-drift_compensation-enabled-label = Compensación en la desviación
settings-general-tracker_mechanics-drift_compensation-amount-label = Cantidad de compensación
settings-general-tracker_mechanics-drift_compensation-max_resets-label = Usar los últimos X reinicios.
## FK/Tracking settings
@@ -320,18 +333,42 @@ settings-general-fk_settings = Configuración de FK Tracking
# Floor clip:
# why the name - came from the idea of noclip in video games, but is the opposite where clipping to the floor is a desired feature
# definition - Prevents the foot trackers from going lower than they where when a reset was performed
settings-general-fk_settings-leg_tweak-floor_clip = Floor clip
settings-general-fk_settings-leg_tweak-floor_clip = Anclado al suelo
# Skating correction:
# why the name - without this enabled the feet will often slide across the ground as if your skating across the ground,
# since this largely prevents this it corrects for it hence skating correction (note this may be renamed to sliding correction)
# definition - Guesses when each foot is in contact with the ground and uses that information to improve tracking
settings-general-fk_settings-leg_tweak-skating_correction = Corrección del patinaje
settings-general-fk_settings-leg_tweak-foot_plant = Planta del pie
settings-general-fk_settings-leg_tweak-skating_correction-amount = Intensidad de la corrección del patinaje
settings-general-fk_settings-leg_tweak-skating_correction-description = Corrección del patinaje corrige el deslizamiento en el suelo, pero puede disminuir la precisión en ciertos movimientos. Activar esta opción requerirá realizar un reinicio general y recalibrar en el juego.
settings-general-fk_settings-leg_fk = Tracking de piernas
settings-general-fk_settings-arm_fk = Tracking de brazos
settings-general-fk_settings-arm_fk-description = Forzar el seguimiento de los brazos desde el HMD incluso si hay datos de posición de la mano disponibles.
settings-general-fk_settings-arm_fk-force_arms = Forzar brazos desde el HMD
settings-general-fk_settings-arm_fk-back = Parte posterior del brazo
settings-general-fk_settings-arm_fk-back-description = Modo predeterminado, con los brazos hacia atrás y los antebrazos hacia adelante.
settings-general-fk_settings-arm_fk-tpose_up = T-pose (arriba)
settings-general-fk_settings-arm_fk-tpose_up-description = Se espera que tus brazos esten relajados, perpendicular a tu cuerpo durante el reinicio completo y 90 grados respecto a tu cuerpo durante el reinicio de montaje.
settings-general-fk_settings-arm_fk-tpose_down = T-pose (abajo)
settings-general-fk_settings-arm_fk-tpose_down-description = Se espera que tus brazos estén a 90 grados respecto a tu cuerpo durante el reinicio completo y relajados, perpendicular a tu cuerpo durante el reinicio del montaje.
settings-general-fk_settings-arm_fk-forward = Siguiente
settings-general-fk_settings-arm_fk-forward-description = Espera que tus brazos estén 90 grados hacia adelante. Útil para VTubing.
settings-general-fk_settings-skeleton_settings-description = Activa o desactiva la configuración del esqueleto. Se recomienda dejar esta opción activada.
settings-general-fk_settings-skeleton_settings-extended_spine_model = Modelo de columna extendida
settings-general-fk_settings-skeleton_settings-extended_pelvis_model = Modelo de pelvis extendida
settings-general-fk_settings-skeleton_settings-extended_knees_model = Modelo de rodilla extendida
settings-general-fk_settings-skeleton_settings-ratios = Proporciones del esqueleto
settings-general-fk_settings-skeleton_settings-ratios-description = Cambia los valores de la configuración del esqueleto. Es posible que debas ajustar tus proporciones de nuevo.
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_hip = Atribuye la cintura desde el pecho hasta la cadera
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = Atribuye la cintura desde el pecho hasta las piernas
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = Atribuye la cadera desde el pecho hasta las piernas
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = Atribuye la cadera desde la cintura hasta las piernas
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Promedia el balanceo de la cadera con el de las piernas
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Promedia el balanceo de los trackers de rodilla con el de los tobillos.
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = Promedia el balanceo de las rodillas con la de los tobillos
settings-general-fk_settings-self_localization-title = Modo Captura de movimiento
settings-general-fk_settings-self_localization-description = El modo captura de movimiento permite al esqueleto seguir aproximadamente tu posición sin auriculares ni otros trackers. Ten en cuenta que esto requiere trrackers de pies y cabeza para funcionar y que aún está en fase experimental.
settings-general-fk_settings-vive_emulation-title = Emulación Vive
settings-general-fk_settings-vive_emulation-description = Emula los problemas de cintura que lo Vive trackers producen. Es una broma y produce peor tracking.
settings-general-fk_settings-vive_emulation-label = Habilitar emulación Vive
@@ -340,27 +377,59 @@ settings-general-fk_settings-vive_emulation-label = Habilitar emulación Vive
settings-general-gesture_control = Control de gestos
settings-general-gesture_control-subtitle = Reinicio basado en toques
settings-general-gesture_control-fullResetEnabled = Activa toque para reinicio completo
settings-general-gesture_control-fullResetDelay = Retraso de reinicio completo
settings-general-gesture_control-fullResetTaps = Da toquecitos para reinicio completo
settings-general-gesture_control-mountingResetEnabled = Activa toquecitos para reiniciar montaje
settings-general-gesture_control-mountingResetDelay = Reinicio de montaje retrasado
settings-general-gesture_control-mountingResetTaps = Da toquecitos para reinicio de montaje
# The number of trackers that can have higher acceleration before a tap is rejected
settings-general-gesture_control-numberTrackersOverThreshold = Trackers por encima del limite
settings-general-gesture_control-numberTrackersOverThreshold-description = Aumenta este valor si la detección de toqueteo no funciona. No lo aumentes por encima de lo necesario para que la detección de toques funcione, ya que crearía más falsos positivos
## Appearance settings
settings-interface-appearance = Apariencia
settings-general-interface-dev_mode = Modo de desarrollador
settings-general-interface-dev_mode-description = Este modo puede ser útil si necesitas datos en profundidad o para interactuar con los trackers conectados a un nivel más avanzado
settings-general-interface-dev_mode-label = Modo de desarrollador
settings-general-interface-theme = Temas
settings-general-interface-lang = Seleccionar idioma
settings-general-interface-lang-description = Cambiar el idioma predeterminado que deseas utilizar.
settings-general-interface-lang-placeholder = Seleccionar el idioma que desea utilizar
settings-interface-appearance-font-description = Esto cambia la fuente utilizada por la interfaz
settings-interface-appearance-font-placeholder = Fuente predeterminada
settings-interface-appearance-font-os_font = Fuente SO
settings-interface-appearance-font-slime_font = Fuente predeterminada
settings-interface-appearance-font_size = Escala de la fuente base
settings-interface-appearance-font_size-description = Esto afecta al tamaño de la fuente de toda la interfaz excepto este panel de configuración
## Notification settings
settings-interface-notifications = Notificaciones
settings-general-interface-serial_detection = Detección de dispositivos seriales
settings-general-interface-serial_detection-description = Esta opción mostrará una ventana emergente cada vez que conectes un nuevo dispositivo serie que podría ser un tracker. Ayuda a mejorar el proceso de configuración de un tracker.
settings-general-interface-serial_detection-label = Detección de dispositivos seriales
settings-general-interface-feedback_sound = Sonido de feedback
settings-general-interface-feedback_sound-description = Esta opción reproducirá un sonido cuando se activa un reinicio
settings-general-interface-feedback_sound-label = Sonido de feedback
settings-general-interface-feedback_sound-volume = Volumen del sonido de feedback
## Serial settings
settings-serial = Consola serial
# This cares about multilines
settings-serial-description =
Esta es una fuente de información en vivo para la comunicación serial.
Puede ser útil si necesitas saber si el firmware está fallando.
settings-serial-connection_lost = Conexión a puerto serial perdida, Reconectando...
settings-serial-reboot = Reiniciar
settings-serial-factory_reset = Restablecimiento de fábrica
# This cares about multilines
# <b>text</b> means that the text should be bold
settings-serial-factory_reset-warning =
<b>Advertencia:</b> Esto restablecerá la configuración de fábrica del tracker.
Esto significa que los ajustes de Wi-Fi y calibración <b>se perderán</b>.
settings-serial-factory_reset-warning-ok = Sé lo que estoy haciendo
settings-serial-factory_reset-warning-cancel = Cancelar
settings-serial-get_infos = Obtener información
@@ -369,7 +438,9 @@ settings-serial-auto_dropdown_item = Automático
## OSC router settings
settings-osc-router = Router OSC
settings-osc-router-enable = Habilitar
settings-osc-router-enable-description = Activar el reenvío de mensajes
settings-osc-router-enable-label = Habilitar
settings-osc-router-network = Puertos de red
settings-osc-router-network-address = Dirección de red
@@ -378,30 +449,38 @@ settings-osc-router-network-address-placeholder = Dirección IPV4
## OSC VRChat settings
settings-osc-vrchat-enable = Habilitar
settings-osc-vrchat-enable-description = Alternar el envío y la recepción de datos
settings-osc-vrchat-enable-label = Habilitar
settings-osc-vrchat-network = Puertos de red
settings-osc-vrchat-network-description = Configura los puertos para escuchar y enviar datos a VRChat.
settings-osc-vrchat-network-address = Dirección de red
settings-osc-vrchat-network-address-placeholder = Dirección IP de VRChat
settings-osc-vrchat-network-trackers = Trackers
settings-osc-vrchat-network-trackers-chest = Pecho
settings-osc-vrchat-network-trackers-hip = Cadera
settings-osc-vrchat-network-trackers-knees = Rodillas
settings-osc-vrchat-network-trackers-feet = Pies
settings-osc-vrchat-network-trackers-elbows = Codos
## VMC OSC settings
settings-osc-vmc = Captura de movimiento virtual
settings-osc-vmc-enable = Habilitar
settings-osc-vmc-enable-description = Alterna el envío y recepción de datos.
settings-osc-vmc-enable-label = Habilitar
settings-osc-vmc-network = Puertos de red
settings-osc-vmc-network-address = Dirección de red
settings-osc-vmc-network-address-placeholder = Dirección IPV4
settings-osc-vmc-vrm-model_unloaded = No hay modelo cargado
settings-osc-vmc-anchor_hip = Anclar a la cadera
settings-osc-vmc-anchor_hip-description = Ancla el tracking a la cadera, útil para VTubing sentado. Si se deshabilita, carga un modelo VRM.
settings-osc-vmc-anchor_hip-label = Anclar a la cadera
## Setup/onboarding menu
onboarding-skip = Omitir configuración
onboarding-continue = Continuar
onboarding-wip = Trabajo en progreso
onboarding-previous_step = Paso anterior
onboarding-setup_warning-skip = Omitir configuración
onboarding-setup_warning-cancel = Continuar con la configuración
@@ -409,12 +488,24 @@ onboarding-setup_warning-cancel = Continuar con la configuración
## Wi-Fi setup
onboarding-wifi_creds-back = Volver a la introducción
onboarding-wifi_creds = Introduce credenciales de Wi-Fi
# This cares about multilines
onboarding-wifi_creds-description =
Los trackers utilizarán estas credenciales para conectarse de forma inalámbrica.
Por favor, utiliza las credenciales a las que está conectado actualmente.
onboarding-wifi_creds-skip = Omitir configuración Wi-Fi
onboarding-wifi_creds-submit = ¡Enviar!
onboarding-wifi_creds-ssid =
.label = Nombre Wi-Fi
.placeholder = Introduce nombre de Wi-Fi
onboarding-wifi_creds-password =
.label = Contraseña
.placeholder = Introduce contraseña
## Mounting setup
onboarding-reset_tutorial = Tutorial para resetteo de trackers
onboarding-reset_tutorial-explanation = Mientras usas tus trackers, es posible que se desalineen debido al balanceo de la IMU o porque es posible que se hayan movido físicamente. Tienes varias formas de solucionar este problema.
onboarding-reset_tutorial-skip = Omitir paso
## Setup start
@@ -424,48 +515,90 @@ onboarding-home-start = ¡Vamos a prepararnos!
## Enter VR part of setup
onboarding-enter_vr-back = Volver a la asignación del tracker
onboarding-enter_vr-title = ¡Hora de entrar en VR!
onboarding-enter_vr-description = ¡Ponte todos tus trackers y luego entra a la realidad virtual!
onboarding-enter_vr-ready = Estoy listo
## Setup done
onboarding-done-title = ¡Todo listo!
onboarding-done-description = Disfruta de la experiencia de full-body tracking
onboarding-done-close = Cerrar configuración
## Tracker connection setup
onboarding-connect_tracker-back = Volver a credenciales de Wi-Fi
onboarding-connect_tracker-title = Conectar trackers
onboarding-connect_tracker-description-p0 = ¡Ahora a la parte divertida, conectando todos los trackers!
onboarding-connect_tracker-description-p1 = Simplemente conecta todos los que aún no están conectados, a través de un puerto USB.
onboarding-connect_tracker-issue-serial = ¡Tengo problemas para conectarme!
onboarding-connect_tracker-usb = Tracker USB
onboarding-connect_tracker-connection_status-none = Buscando trackers
onboarding-connect_tracker-connection_status-serial_init = Conectándose al dispositivo serial
onboarding-connect_tracker-connection_status-provisioning = Enviando credenciales Wi-Fi
onboarding-connect_tracker-connection_status-connecting = Intentando conectarse a una red Wi-Fi
onboarding-connect_tracker-connection_status-looking_for_server = Buscando servidor
onboarding-connect_tracker-connection_status-connection_error = No se puede conectar al Wi-Fi
onboarding-connect_tracker-connection_status-could_not_find_server = No se pudo encontrar el servidor
onboarding-connect_tracker-connection_status-done = Conectado al Server
onboarding-connect_tracker-next = He conectado todos mis trackers
## Tracker calibration tutorial
onboarding-calibration_tutorial = Tutorial de calibración de IMU
onboarding-calibration_tutorial-subtitle = ¡Esto ayudará a reducir el drift de los trackers!
onboarding-calibration_tutorial-calibrate = Mis trackers estan en una superficie plana
onboarding-calibration_tutorial-status-waiting = Esperando por ti
onboarding-calibration_tutorial-status-calibrating = Calibrando
onboarding-calibration_tutorial-status-success = ¡Bien!
onboarding-calibration_tutorial-status-error = El tracker se ha movido
## Tracker assignment tutorial
onboarding-assignment_tutorial = Cómo preparar un Slime Tracker antes de ponértelo
onboarding-assignment_tutorial-first_step = 1. Coloca una pegatina de parte del cuerpo (si tienes una) en el rastreador según tu elección.
# This text has a character limit of around 11 characters, so please keep it short
onboarding-assignment_tutorial-sticker = Sticker
onboarding-assignment_tutorial-second_step-v2 = 2. Conecta la correa con su tracker, manteniendo el lado de velcro de la correa orientado en la misma dirección que la cara de Slime de su rastreador:
onboarding-assignment_tutorial-second_step-continuation-v2 = El lado del velcro de la extensión debe quedar hacia arriba como en la siguiente imagen:
onboarding-assignment_tutorial-done = ¡Le puse pegatinas y correas!
## Tracker assignment setup
onboarding-assign_trackers-back = Volver a credenciales de Wi-Fi
onboarding-assign_trackers-title = Asignar trackers
onboarding-assign_trackers-description = Elije qué tracker va a dónde. Haz clic en la ubicación donde deseas colocar un tracker
onboarding-assign_trackers-advanced = Mostrar ubicaciones de asignación avanzadas
onboarding-assign_trackers-next = He asignado todos los trackers
## Tracker assignment warnings
# Note for devs, number is used for representing boolean states per bit.
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
onboarding-assign_trackers-warning-LEFT_FOOT =
{ $unassigned ->
[0] El pie izquierdo está asignado, pero es necesario que también se asignen el tobillo izquierdo, el muslo izquierdo y el pecho, la cadera o la cintura!
[1] El pie izquierdo está asignado, pero también es necesario que también se asignen el muslo izquierdo y el pecho, la cadera o la cintura!
[2] El pie izquierdo está asignado, pero también es necesario que también se asignen el tobillo izquierdo y el pecho, la cadera o la cintura!
[3] El pie izquierdo está asignado, pero también es necesario que también se asignen el pecho, la cadera o la cintura!
[4] El pie izquierdo está asignado, pero también es necesario que también se asignen el tobillo izquierdo y el muslo izquierdo!
[5] El pie izquierdo está asignado, pero también es necesario que también se asigne el muslo izquierdo!
[6] El pie izquierdo está asignado, pero también es necesario que también se asigne el tobillo izquierdo!
*[other] El pie izquierdo está asignado, pero también es necesario que también se asigne el Parte del cuerpo asignada desconocida.
}
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
onboarding-assign_trackers-warning-RIGHT_FOOT =
{ $unassigned ->
[0] El pie derecho está asignado, pero es necesario que también se asignen el tobillo derecho, el muslo derecho y el pecho, la cadera o la cintura!
[1] El pie derecho está asignado, pero es necesario que también se asignen el muslo derecho y el pecho, la cadera o la cintura!
[2] El pie derecho está asignado, pero es necesario que también se asignen el tobillo derecho y el pecho, la cadera o la cintura!
[3] El pie derecho está asignado, pero es necesario que también se asignen el pecho, la cadera o la cintura!
[4] El pie derecho está asignado, pero es necesario que también se asignen tobillo derecho y el muslo derecho!
[5] El pie derecho está asignado, pero es necesario que también se asigne el muslo derecho!
[6] El pie derecho está asignado, pero es necesario que también se asigne el tobillo derecho!
*[other] Pie derecho asignado, pero necesitas asignar Desconocido
}
## Tracker mounting method choose
@@ -487,18 +620,25 @@ onboarding-automatic_mounting-preparation-title = Preparación
## Tracker proportions method choose
# Multiline string
onboarding-choose_proportions-description =
Las proporciones físicas se usan para saber las medidas de tu cuerpo. Son requeridas para calculas la posición de los trackers.
Si las proporciones guardadas no coinciden con las reales, la calidad de tu tracking será peor y notaras fallos como deslizamiento, desplazamiento o tu cuerpo no coincidirá con tu avatar.
onboarding-choose_proportions-auto_proportions = Proporciones automáticas
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = Recomendado
onboarding-choose_proportions-manual_proportions = Proporciones manuales
onboarding-choose_proportions-export = Exportar proporciones
onboarding-choose_proportions-file_type = Archivo de proporciones físicas
## Tracker manual proportions setup
onboarding-manual_proportions-title = Proporciones físicas manuales
onboarding-manual_proportions-auto = Proporciones automáticas
## Tracker automatic proportions setup
onboarding-automatic_proportions-title = Mide tu cuerpo
onboarding-automatic_proportions-prev_step = Paso anterior
onboarding-automatic_proportions-requirements-title = Requisitos
onboarding-automatic_proportions-requirements-next = He leído los requisitos
@@ -506,9 +646,14 @@ onboarding-automatic_proportions-recording-title = REC
onboarding-automatic_proportions-recording-processing = Procesando los resultados
onboarding-automatic_proportions-verify_results-title = Verificar resultados
onboarding-automatic_proportions-verify_results-processing = Procesando los resultados
onboarding-automatic_proportions-done-title = Proporciones medidas y guardadas.
onboarding-automatic_proportions-done-description = ¡Calibración de las proporciones físicas completada!
## Home
## Trackers Still On notification
## Status system
+34
View File
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = Käsittelemätön
widget-imu_visualizer-rotation_preview = Esikatselu
widget-imu_visualizer-rotation_hide = Piilota
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Luurangon esikatselu
widget-skeleton_visualizer-hide = Piilota
## Tracker status
tracker-status-none = Ei tilaa
@@ -152,6 +157,7 @@ tracker-status-error = Virhe
tracker-status-disconnected = Katkaistu
tracker-status-occluded = Peittynyt
tracker-status-ok = OK
tracker-status-timed_out = Aikakatkaistiin
## Tracker status columns
@@ -348,9 +354,14 @@ settings-general-fk_settings-leg_tweak-floor_clip-description = Floor clip voi v
settings-general-fk_settings-leg_tweak-toe_snap-description = Toe snap yrittää arvata varpaiden asennon jos jalkaterän jäljitintä ei ole käytössä.
settings-general-fk_settings-leg_tweak-foot_plant-description = Foot plant asettaa jalkateräsi yhdensuuntaisesti maan kanssa kosketuksessa.
settings-general-fk_settings-leg_fk = Jalkojen jäljitys
settings-general-fk_settings-leg_fk-reset_mounting_feet = Jalkojen asennuksen nollaus
settings-general-fk_settings-arm_fk = Käsivarsien jäljitys
settings-general-fk_settings-arm_fk-description = Muuta tapaa, jolla käsivarsia jäljitetään.
settings-general-fk_settings-arm_fk-force_arms = Pakota kädet HMD:ltä
settings-general-fk_settings-arm_fk-back = Takaisin
settings-general-fk_settings-arm_fk-tpose_up = T-asento (ylös)
settings-general-fk_settings-arm_fk-tpose_down = T-asento (alas)
settings-general-fk_settings-arm_fk-forward = Eteenpäin
settings-general-fk_settings-skeleton_settings-toggles = Luurankoasetuksia
settings-general-fk_settings-skeleton_settings-description = Ota tai poista käytöstä luurankoasetukset. On suositeltavaa jättää nämä päälle.
settings-general-fk_settings-skeleton_settings-extended_spine_model = Laajennettu selkärankamalli
@@ -659,6 +670,7 @@ onboarding-assignment_tutorial = Kuinka valmistellaan Slime-jäljitin ennen käy
onboarding-assignment_tutorial-first_step = 1. Aseta kehonosatarra (jos sinulla on) jäljittimeen valintasi mukaan
# This text has a character limit of around 11 characters, so please keep it short
onboarding-assignment_tutorial-sticker = Tarra
onboarding-assignment_tutorial-second_step-v2 = 2. Kiinnitä hihna jäljittimeen pitäen hihnan tarranauhaa samaan suuntaan kuin jäljittimen etupuoli:
onboarding-assignment_tutorial-second_step-continuation-v2 = Jatkeen tarranauhapuolen tulee olla ylöspäin seuraavan kuvan mukaisesti:
onboarding-assignment_tutorial-done = Laitoin tarrat ja hihnat!
@@ -759,6 +771,8 @@ onboarding-choose_mounting-manual_mounting = Manuaalinen asennus
# Italized text
onboarding-choose_mounting-manual_mounting-label = Suositeltu
onboarding-choose_mounting-manual_mounting-description = Näin voit valita asennussuunnan manuaalisesti kullekin jäljittimelle
onboarding-choose_mounting-manual_modal-confirm = Tiedän mitä teen
onboarding-choose_mounting-manual_modal-cancel = Peruuta
## Tracker manual mounting setup
@@ -794,6 +808,8 @@ onboarding-automatic_mounting-put_trackers_on-next = Minulla on kaikki jäljitti
onboarding-choose_proportions = Mitä kalibrointimenetelmää käytetään?
onboarding-choose_proportions-auto_proportions = Automaattiset mittasuhteet
onboarding-choose_proportions-manual_proportions = Manuaaliset mittasuhteet
onboarding-choose_proportions-import-failed = Epäonnistui
onboarding-choose_proportions-file_type = Kehon mittasuhteet -tiedosto
## Tracker manual proportions setup
@@ -812,6 +828,9 @@ onboarding-automatic_proportions-put_trackers_on-next = Minulla on kaikki jälji
onboarding-automatic_proportions-requirements-title = Vaatimukset
onboarding-automatic_proportions-requirements-next = Olen lukenut vaatimukset
onboarding-automatic_proportions-check_height-title = Tarkista pituutesi
onboarding-automatic_proportions-check_height-description = Käytämme pituuttasi mittaustemme perustana käyttämällä HMD:n pituutta likiarvona todellisesta pituudestasi, mutta on parempi tarkistaa itse, ovatko ne oikein!
# All the text is in bold!
onboarding-automatic_proportions-check_height-calculation_warning = Paina painiketta <u>pystyasennossa</u> laskeaksesi pituutesi. Sinulla on 3 sekuntia painikkeen painamisen jälkeen!
onboarding-automatic_proportions-check_height-fetch_height = Seison
# Context is that the height is unknown
onboarding-automatic_proportions-check_height-unknown = Tuntematon
@@ -821,7 +840,9 @@ onboarding-automatic_proportions-check_height-hmd_height1 = HMD-korkeus on
onboarding-automatic_proportions-check_height-height1 = Joten todellinen pituutesi on
onboarding-automatic_proportions-check_height-next_step = Ne ovat hyvät
onboarding-automatic_proportions-start_recording-title = Valmistaudu liikkumaan
onboarding-automatic_proportions-start_recording-description = Aiomme nyt tallentaa joitain tiettyä asentoja ja liikkeitä. Näitä kysytään seuraavassa näytössä. Ole valmis aloittamaan, kun painat nappia!
onboarding-automatic_proportions-start_recording-next = Aloita tallennus
onboarding-automatic_proportions-recording-title = REC
onboarding-automatic_proportions-recording-description-p0 = Tallennus käynnissä...
onboarding-automatic_proportions-recording-description-p1 = Tee alla esitetyt liikkeet:
onboarding-automatic_proportions-recording-processing = Käsitellään tuloksia
@@ -835,15 +856,28 @@ onboarding-automatic_proportions-verify_results-title = Vahvista tulokset
onboarding-automatic_proportions-verify_results-description = Tarkista alla olevat tulokset, näyttävätkö ne oikeilta?
onboarding-automatic_proportions-verify_results-results = Tallennuksen tulokset
onboarding-automatic_proportions-verify_results-processing = Käsitellään tuloksia
onboarding-automatic_proportions-verify_results-redo = Tee tallennus uudelleen
onboarding-automatic_proportions-verify_results-confirm = Nämä ovat oikein
onboarding-automatic_proportions-done-title = Keho mitattu ja tallennettu.
onboarding-automatic_proportions-done-description = Kehosi mittasuhteiden kalibrointi on valmis!
onboarding-automatic_proportions-error_modal =
<b>Varoitus:</b> Mittasuhteita arvioitaessa havaittiin virhe!
<docs>Tarkista dokumentit</docs> tai liity <discord>Discordiin</discord> saadaksesi apua ^_^
onboarding-automatic_proportions-error_modal-confirm = Ymmäretty!
## Home
home-no_trackers = Jäjittimiä ei havaittu tai määritetty
## Trackers Still On notification
trackers_still_on-modal-title = Jäljittimet ovat vielä päällä
trackers_still_on-modal-description =
Yksi tai useampi jäljitin on edelleen päällä.
Haluatko silti poistua SlimeVR:stä?
trackers_still_on-modal-confirm = Poistu SlimeVR:stä
trackers_still_on-modal-cancel = Odota...
## Status system
status_system-StatusTrackerReset = On suositeltavaa suorittaa täydellinen nollaus, koska yhtä tai useampaa jäljitintä ei ole säädetty.
+32 -8
View File
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = Brute
widget-imu_visualizer-rotation_preview = Aperçu
widget-imu_visualizer-rotation_hide = Masquer
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Aperçu du squelette
widget-skeleton_visualizer-hide = Masquer
## Tracker status
tracker-status-none = Pas de statut
@@ -152,6 +157,7 @@ tracker-status-error = Erreur
tracker-status-disconnected = Déconnecté
tracker-status-occluded = Obstrué
tracker-status-ok = OK
tracker-status-timed_out = Délai expiré
## Tracker status columns
@@ -443,6 +449,9 @@ settings-general-interface-feedback_sound = Son de retour
settings-general-interface-feedback_sound-description = Cette option va jouer un son lorsqu'une réanitilisation est enclenchée.
settings-general-interface-feedback_sound-label = Son de retour
settings-general-interface-feedback_sound-volume = Volume du son de retour
settings-general-interface-connected_trackers_warning = Avertissement de capteurs connectés
settings-general-interface-connected_trackers_warning-description = Cette option affichera une fenêtre contextuelle chaque fois que vous essaierez de quitter SlimeVR tout en ayant un ou plusieurs capteurs connectés. Il vous rappelle d’éteindre vos capteurs lorsque vous avez terminé pour préserver la durée de vie de la batterie.
settings-general-interface-connected_trackers_warning-label = Avertissement de capteurs connectés en quittant
## Serial settings
@@ -772,6 +781,13 @@ onboarding-choose_mounting-manual_mounting = Alignement manuel
# Italized text
onboarding-choose_mounting-manual_mounting-label = Recommendée
onboarding-choose_mounting-manual_mounting-description = Ceci vous permettra de choisir la direction de chaque capteur manuellement
# Multiline text
onboarding-choose_mounting-manual_modal-title =
Êtes-vous sûr de vouloir faire
la calibration automatique de l'alignement ?
onboarding-choose_mounting-manual_modal-description = <b>La calibration manuel de l'alignement est recommandé pour les nouveaux utilisateurs</b>, car les poses de calibration automatique de l'alignement peuvent être difficiles à reproduire au départ et peuvent nécessiter un peu de pratique.
onboarding-choose_mounting-manual_modal-confirm = Je suis sûr de ce que je fais
onboarding-choose_mounting-manual_modal-cancel = Annuler
## Tracker manual mounting setup
@@ -812,10 +828,10 @@ onboarding-choose_proportions-description =
onboarding-choose_proportions-auto_proportions = Proportions automatiques
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = Recommendée
onboarding-choose_proportions-auto_proportions-descriptionv2 =
onboarding-choose_proportions-auto_proportions-descriptionv3 =
Cela permettra d'estimer vos proportions en enregistrant un échantillon de vos mouvements et en le faisant passer par un algorithme.
<b>Cela nécessite d’avoir votre casque VR connecté à SlimeVR !</b>
<b>Cela nécessite d’avoir votre casque VR connecté à SlimeVR et sur votre tête !</b>
onboarding-choose_proportions-manual_proportions = Proportions manuelles
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = Pour les retouches
@@ -846,13 +862,12 @@ onboarding-automatic_proportions-put_trackers_on-description = Pour calibrer vos
onboarding-automatic_proportions-put_trackers_on-next = J'ai tous mes capteurs
onboarding-automatic_proportions-requirements-title = Exigences
# Each line of text is a different list item
onboarding-automatic_proportions-requirements-description =
onboarding-automatic_proportions-requirements-descriptionv2 =
Vous avez au moins assez de capteurs pour capturer vos pieds (généralement 5 capteurs).
Vos capteurs et votre casque VR sont allumés.
Vous portez vos capteurs et votre casque VR.
Vos capteurs et votre casque VR sont connectés au serveur SlimeVR.
Vos capteurs et votre casque VR fonctionnent correctement au sein du serveur SlimeVR.
Votre casque envoie sa position au serveur SlimeVR (cela signifie généralement que SteamVR est ouvert et connecté à SlimeVR en utilisant le driver SteamVR de SlimeVR).
Vos capteurs et votre casque VR sont allumés et sur vous.
Vos capteurs et votre casque VR sont connectés au serveur SlimeVR et fonctionnent correctement (ex. pas de lag, déconnexions, etc).
Votre casque envoie sa position au serveur SlimeVR (cela signifie généralement que SteamVR est ouvert et connecté à SlimeVR en utilisant le pilote SteamVR de SlimeVR).
La capture des mouvements fonctionne et représente correctement vos mouvements (ex. vous avez effectué une réinitialisation complète des capteurs et ils bougent dans le bon sens lorsque vous donnez des coups de pieds, vous penchez, vous assoyez, etc).
onboarding-automatic_proportions-requirements-next = J'ai lu les exigences
onboarding-automatic_proportions-check_height-title = Vérifiez votre taille
onboarding-automatic_proportions-check_height-description = Nous utilisons votre taille comme la base de nos mesures en utilisant la hauteur de votre casque comme approximation de votre taille réelle, mais il est préférable de vérifier si elles sont correctes vous-même !
@@ -904,6 +919,15 @@ onboarding-automatic_proportions-error_modal-confirm = Compris !
home-no_trackers = Aucun capteur détecté ou attribué
## Trackers Still On notification
trackers_still_on-modal-title = Capteurs encore allumés
trackers_still_on-modal-description =
Un ou plusieurs capteurs sont encore allumés.
Voulez-vous quand même quitter SlimeVR ?
trackers_still_on-modal-confirm = Quitter SlimeVR
trackers_still_on-modal-cancel = Annuler...
## Status system
status_system-StatusTrackerReset = Il est recommandé d'effectuer une réinitialisation complète vu que un ou plusieurs capteurs sont ne sont pas ajustés.
+34 -8
View File
@@ -110,13 +110,13 @@ bvh-recording = Registrazione in corso...
## Tracking pause
tracking-unpaused = Pausa il tracking
tracking-paused = Riprendio il tracking
tracking-paused = Riprendi il tracking
## Widget: Overlay settings
widget-overlay = Overlay
widget-overlay-is_visible_label = Mostra Overlay in SteamVR
widget-overlay-is_mirrored_label = Includi uno specchio nel Overlay
widget-overlay-is_mirrored_label = Mostra Overlay come specchio
## Widget: Drift compensation
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = Non processato
widget-imu_visualizer-rotation_preview = Anteprima
widget-imu_visualizer-rotation_hide = Nascondi
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Anteprima dello scheletro
widget-skeleton_visualizer-hide = Nascondi
## Tracker status
tracker-status-none = Nessuno stato
@@ -152,6 +157,7 @@ tracker-status-error = Errore
tracker-status-disconnected = Disconnesso
tracker-status-occluded = Ostruito
tracker-status-ok = OK
tracker-status-timed_out = Tempo esaurito
## Tracker status columns
@@ -442,6 +448,9 @@ settings-general-interface-feedback_sound = Suono di feedback
settings-general-interface-feedback_sound-description = Questa opzione riprodurrà un suono quando viene effettuato un reset
settings-general-interface-feedback_sound-label = Suono di feedback
settings-general-interface-feedback_sound-volume = Volume del suono di feedback
settings-general-interface-connected_trackers_warning = Avviso di tracker connessi
settings-general-interface-connected_trackers_warning-description = Questa opzione mostrerà un pop-up ogni volta che proverai ad uscire da SmileVR mentre uno o più tracker sono connessi. Ció ti permetterà di ricordarti di spegnere i tuoi tracker per preservarne la durata delle batterie.
settings-general-interface-connected_trackers_warning-label = Avviso di tracker connessi alla chiusura dell'applicazione
## Serial settings
@@ -771,6 +780,13 @@ onboarding-choose_mounting-manual_mounting = Posizionamento manuale
# Italized text
onboarding-choose_mounting-manual_mounting-label = Raccomandato
onboarding-choose_mounting-manual_mounting-description = Questo processo ti lascerá scegliere manualmente le direzioni per la posizione di montaggio di tutti i tracker
# Multiline text
onboarding-choose_mounting-manual_modal-title =
Sei sicuro di voler fare
la calibrazione automatica di posizionamento?
onboarding-choose_mounting-manual_modal-description = <b>La calibrazione manuale è raccomandata per i nuovi utenti</b>, considerando che le pose necessarie per la calibrazione automatica di posizionamento possono risultare complicate al primo tentativo e potrebbero richiedere un po' di pratica.
onboarding-choose_mounting-manual_modal-confirm = Sono sicurə di ciò che sto facendo.
onboarding-choose_mounting-manual_modal-cancel = Annulla
## Tracker manual mounting setup
@@ -811,10 +827,10 @@ onboarding-choose_proportions-description =
onboarding-choose_proportions-auto_proportions = Proporzioni automatiche
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = Raccomandato
onboarding-choose_proportions-auto_proportions-descriptionv2 =
onboarding-choose_proportions-auto_proportions-descriptionv3 =
Questo indovinerà le tue proporzioni registrando un campione dei tuoi movimenti e passandolo attraverso un algoritmo.
<b>Ciò richiede che il tuo HMD sia collegato a SlimeVR!</b>
<b>Ciò richiede che il tuo visore (HMD) sia collegato a SlimeVR e indossato correttaments sulla tua testa</b>
onboarding-choose_proportions-manual_proportions = Proporzioni manuali
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = Per piccole modifiche
@@ -845,12 +861,13 @@ onboarding-automatic_proportions-put_trackers_on-description = Per calibrare le
onboarding-automatic_proportions-put_trackers_on-next = Sto indossando tutti i miei tracker
onboarding-automatic_proportions-requirements-title = Requisiti
# Each line of text is a different list item
onboarding-automatic_proportions-requirements-description =
onboarding-automatic_proportions-requirements-descriptionv2 =
Hai almeno abbastanza tracker per tracciare i tuoi piedi (generalmente 5 tracker).
Hai indossato i tuoi tracker e il visore.
I tuoi tracker e il visore sono connessi al server di SlimeVR.
I tuoi tracker e il visore stanno funzionando correttamente con il server di SlimeVR.
Hai i tuoi tracker e il visore accessi e li stai indossando.
I tuoi tracker e il visore sono connessi al server di SlimeVR e stanno funzionando correttamente (e.g. non si bloccano, disconnettono, etc.)
Il tuo visore sta riportando dati di posizione al server di SlimeVR (ciò significa generalmente avere SteamVR in esecuzione e connesso a SlimeVR usando il driver di SlimeVR per SteamVR).
Il tuo visore sta riportando dati di posizione al server di SlimeVR (ciò significa generalmente avere SteamVR in esecuzione e connesso a SlimeVR usando il driver di SlimeVR per SteamVR).
Il tuo tracciamento funziona e rappresenta accuratamente i tuoi movimenti (e.g. hai eseguito un reset completo e i traker si muovono nella giusta direzione quando calci, ti pieghi, ti siedi, ecc.).
onboarding-automatic_proportions-requirements-next = Ho letto i requisiti.
onboarding-automatic_proportions-check_height-title = Controlla la tua altezza
onboarding-automatic_proportions-check_height-description = Usiamo la tua altezza come base delle nostre misurazioni utilizzando l'altezza dell'HMD come approssimazione della tua altezza effettiva, ma è meglio controllare se il valore è giusto!
@@ -902,6 +919,15 @@ onboarding-automatic_proportions-error_modal-confirm = Ho capito!
home-no_trackers = Nessun tracker rilevato o assegnato
## Trackers Still On notification
trackers_still_on-modal-title = I tracker sono ancora accesi
trackers_still_on-modal-description =
Uno o più tracker ancora accesi.
Vuoi uscire comunque da SmileVR?
trackers_still_on-modal-confirm = Chiudi SlimeVR
trackers_still_on-modal-cancel = Attendi un momento...
## Status system
status_system-StatusTrackerReset = É consigliato eseguire un reset completo poiché uno o più tracker non sono regolati.
+95 -18
View File
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = Raw
widget-imu_visualizer-rotation_preview = 미리보기
widget-imu_visualizer-rotation_hide = 숨기기
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = 골격 비율 미리보기
widget-skeleton_visualizer-hide = 숨기기
## Tracker status
tracker-status-none = 알 수 없음
@@ -152,6 +157,7 @@ tracker-status-error = 오류
tracker-status-disconnected = 연결되지 않음
tracker-status-occluded = 사용할 수 없음
tracker-status-ok = 연결됨
tracker-status-timed_out = 시간 초과
## Tracker status columns
@@ -330,7 +336,7 @@ settings-general-tracker_mechanics-drift_compensation-max_resets-label = 보정
## FK/Tracking settings
settings-general-fk_settings = FK 설정
settings-general-fk_settings = 트래킹 설정
# Floor clip:
# why the name - came from the idea of noclip in video games, but is the opposite where clipping to the floor is a desired feature
# definition - Prevents the foot trackers from going lower than they where when a reset was performed
@@ -348,11 +354,34 @@ settings-general-fk_settings-leg_tweak-floor_clip-description = 플로어 클립
settings-general-fk_settings-leg_tweak-toe_snap-description = 토 스냅은 발 트래커가 없을 때, 발 트래커가 있는 것처럼 예측해서 움직여주는 기능이에요.
settings-general-fk_settings-leg_tweak-foot_plant-description = 풋 플랜트는 발이 바닥에 닿았을 때 바닥과 평평하게 회전시켜 줘요.
settings-general-fk_settings-leg_fk = 발 트래킹
settings-general-fk_settings-arm_fk = 팔 운동학
settings-general-fk_settings-arm_fk-description = 팔이 추적되는 방식을 변경할 수 있어요.
settings-general-fk_settings-leg_fk-reset_mounting_feet-description = 까치발을 들어 발 트래커의 착용 방향 정렬을 활성화하기
settings-general-fk_settings-leg_fk-reset_mounting_feet = 발 트래커 착용 방향 정렬
settings-general-fk_settings-arm_fk = 팔 트래킹
settings-general-fk_settings-arm_fk-description = 손 컨트롤러 위치 데이터를 사용할 수 없는 경우에도 VR 헤드셋(HMD)으로부터 팔을 추적하도록 할 수 있어요.
settings-general-fk_settings-arm_fk-force_arms = 팔을 HMD에서만 받아오기
settings-general-fk_settings-arm_fk-reset_mode-description = 착용 방향 정렬에 사용되는 팔 자세 설정
settings-general-fk_settings-arm_fk-back = 뒤쪽
settings-general-fk_settings-arm_fk-back-description = 기본값. 위쪽 팔은 뒤를 향하고 아래쪽 팔은 앞을 향하게 하는 자세.
settings-general-fk_settings-arm_fk-tpose_up = T-포즈(올리기)
settings-general-fk_settings-arm_fk-tpose_up-description = 전체 정렬을 수행할 때에는 팔을 차렷 자세로 내리고, 착용 방향 정렬 중에는 팔을 좌우로 나란히 동작으로 펼치는 자세.
settings-general-fk_settings-arm_fk-tpose_down = T-포즈(내리기)
settings-general-fk_settings-arm_fk-tpose_down-description = 전체 정렬에서는 좌우로 나란히 자세, 착용 방향 정렬에서는 팔을 차렷 동작으로 내리는 자세
settings-general-fk_settings-arm_fk-forward = 앞쪽
settings-general-fk_settings-arm_fk-forward-description = 앞으로 나란히 자세. 앉아있거나 버튜버 활동 등에서 유용해요.
settings-general-fk_settings-skeleton_settings-toggles = 골격 설정 제어
settings-general-fk_settings-skeleton_settings-description = 골격 설정을 설정하거나 해제해요. 이것들은 켜두는 게 좋아요.
settings-general-fk_settings-skeleton_settings-extended_spine_model = 확장된 척추 모델
settings-general-fk_settings-skeleton_settings-extended_pelvis_model = 확장된 골반 모델
settings-general-fk_settings-skeleton_settings-extended_knees_model = 확장된 무릎 모델
settings-general-fk_settings-skeleton_settings-ratios = 골격 비율
settings-general-fk_settings-skeleton_settings-ratios-description = 골격 비율을 변경하면 신체 비율 설정을 다시 조절해야 할 수 있어요.
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_hip = 가슴, 골반으로부터 추측한 허리 데이터
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = 가슴, 다리로부터 추측한 허리 데이터
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = 다리로부터 추측한 골반 데이터
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = 허리, 다리로부터 추측한 골반 데이터
settings-general-fk_settings-skeleton_settings-interp_hip_legs = 골반 각도를 계산할 때 다리 각도를 합산
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = 무릎 트래커 각도를 계산할 때 발목 각도를 합산
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = 무릎 각도를 계산할 때 발목 각도를 합산
settings-general-fk_settings-self_localization-title = Mocap 모드
settings-general-fk_settings-self_localization-description = Mocap 모드에서는 헤드셋이나 다른 트래커 없이 골격이 자신의 위치를 대략적으로 추적할 수 있어요. 발과 머리 트래커가 필요하고 아직 실험적이에요.
settings-general-fk_settings-vive_emulation-title = VIVE 에뮬레이션
@@ -415,6 +444,9 @@ settings-general-interface-feedback_sound = 피드백 사운드
settings-general-interface-feedback_sound-description = 이 옵션을 켜면 트래커를 정렬할 때 효과음을 재생해요
settings-general-interface-feedback_sound-label = 피드백 사운드
settings-general-interface-feedback_sound-volume = 피드백 사운드 음량
settings-general-interface-connected_trackers_warning = 작동 중인 트래커 경고
settings-general-interface-connected_trackers_warning-description = 이 옵션은 트래커가 연결되어 있는 채로 SlimeVR을 종료하려고 할 때 팝업을 표시합니다. 그렇게 하면 실수로 트래커를 끄지 않아 배터리가 방전되는 일을 예방할 수 있어요.
settings-general-interface-connected_trackers_warning-label = 종료 시 작동 중인 트래커 경고 활성화
## Serial settings
@@ -633,7 +665,11 @@ onboarding-calibration_tutorial-subtitle = 트래커 틀어짐을 줄이는 데
onboarding-calibration_tutorial-description =
매번 트래커의 전원을 켤 때마다 평평한 바닥에 트래커를 두고 잠시 기다려서 보정을 수행해야 해요. <b>(트래커를 움직이지 마세요!)</b>
어떻게 하면 되는지 "{ onboarding-calibration_tutorial-calibrate }"를 눌러 같이 따라해보죠!
onboarding-calibration_tutorial-calibrate = 트래커들을 책상에 올려놓았습니다
onboarding-calibration_tutorial-status-waiting = 대기 중
onboarding-calibration_tutorial-status-calibrating = 캘리브레이팅
onboarding-calibration_tutorial-status-success = 좋아요!
onboarding-calibration_tutorial-status-error = 트래커가 움직였습니다
## Tracker assignment tutorial
@@ -641,8 +677,8 @@ onboarding-assignment_tutorial = 슬라임 트래커를 착용하기 전에 준
onboarding-assignment_tutorial-first_step = 1. 신체 부위가 적힌 스티커를 가지고 있다면 트래커에 붙여보세요
# This text has a character limit of around 11 characters, so please keep it short
onboarding-assignment_tutorial-sticker = 스티커
onboarding-assignment_tutorial-second_step = 2. 스트랩의 벨크로 테이프 쪽을 그림과 같은 방향으로 유지하면서 스트랩을 트래커에 끼우세요:
onboarding-assignment_tutorial-second_step-continuation = 익스텐션 트래커의 벨크로 테이프는 다음과 같은 방향으로 끼워주세요:
onboarding-assignment_tutorial-second_step-v2 = 스트랩의 벨크로 접착면이 Slime 얼굴 그림 쪽을 향하게 끼워주세요:
onboarding-assignment_tutorial-second_step-continuation-v2 = 확장 모듈의 벨크로 접착면이 다음 이미지처럼 위를 바라봐야 합니다:
onboarding-assignment_tutorial-done = 스트랩과 스티커를 트래커에 잘 부착했어요!
## Tracker assignment setup
@@ -731,9 +767,18 @@ onboarding-choose_mounting = 착용 방향을 정렬하기 위해 어떤 방법
# Multiline text
onboarding-choose_mounting-description = 착용 방향 정렬은 트래커가 몸에 착용된 방향을 찾아 수정하도록 도와줘요.
onboarding-choose_mounting-auto_mounting = 자동으로 방향 설정
# Italized text
onboarding-choose_mounting-auto_mounting-label = 실험적
onboarding-choose_mounting-auto_mounting-description = 이렇게 하면 두 가지 자세로 모든 트래커의 착용 방향을 자동으로 설정할 수 있어요
onboarding-choose_mounting-manual_mounting = 수동으로 방향 설정
# Italized text
onboarding-choose_mounting-manual_mounting-label = 권장됨
onboarding-choose_mounting-manual_mounting-description = 이렇게 하면 각 트래커의 착용 방향을 직접 고를 수 있어요
# Multiline text
onboarding-choose_mounting-manual_modal-title = 자동으로 착용 방향을 설정하시겠어요?
onboarding-choose_mounting-manual_modal-description = 자동 착용 방향 정렬은 복잡한 자세와 올바르게 설정된 트래커가 필요하기 때문에 처음 사용하시는 분에게는 조금 어려울 수 있어요. 그래서 <b>수동 착용 방향 정렬을 추천드려요!</b>
onboarding-choose_mounting-manual_modal-confirm = 네, 알고 있어요!
onboarding-choose_mounting-manual_modal-cancel = 취소
## Tracker manual mounting setup
@@ -767,14 +812,25 @@ onboarding-automatic_mounting-put_trackers_on-next = 모든 트래커를 착용
## Tracker proportions method choose
onboarding-choose_proportions = 신체 비율을 설정하기 위해 어떤 방법을 사용할래요?
# Multiline string
onboarding-choose_proportions-description =
신체 비율은 신체 각 부분의 길이를 파악하는데 사용됩니다. 이 값은 트래커의 위치를 정확히 계산하기 위해 필수적입니다.
신체 비율이 저장된 비율과 일치하지 않으면 추적 정밀도가 떨어지고 스케이트를 타거나 미끄러지는 것처럼 보이고 아바타와 실제 몸이 잘 일치하지 않을 수 있어요.
onboarding-choose_proportions-auto_proportions = 자동으로 비율 설정
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = 권장
onboarding-choose_proportions-auto_proportions-descriptionv3 =
몸을 이리저리 움직여 샘플을 기록한 다음 알고리즘을 통해 연산하는 방식으로 신체 비율을 추산합니다.
<b>사용하기 위해서는 VR 헤드셋이 SlimeVR과 연결되어 있어야 해요</b>
onboarding-choose_proportions-manual_proportions = 수동으로 비율 설정
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = 정밀하게 설정하고 싶다면
onboarding-choose_proportions-manual_proportions-description = 이렇게 하면 신체 비율을 직접 수정하여 수동으로 조절할 수 있어요
onboarding-choose_proportions-manual_proportions-description = 이 옵션을 사용하면 신체 비율을 직접 입력해 수동으로 조절할 수 있어요.
onboarding-choose_proportions-export = 다른 이름으로 저장
onboarding-choose_proportions-import = 신체 비율 가져오기
onboarding-choose_proportions-import-success = 가져오기 완료
onboarding-choose_proportions-import-failed = 가져오기 실패
onboarding-choose_proportions-file_type = 신체 비율 파일
## Tracker manual proportions setup
@@ -793,18 +849,29 @@ onboarding-automatic_proportions-manual = 수동 신체 비율 설정
onboarding-automatic_proportions-prev_step = 뒤로
onboarding-automatic_proportions-put_trackers_on-title = 트래커를 착용하세요
onboarding-automatic_proportions-put_trackers_on-description = 비율을 조정하기 위해 방금 할당한 트래커를 사용할 거예요. 모든 트래커를 착용하면 오른쪽 그림에서 어떤 것이 있는지 알 수 있어요.
onboarding-automatic_proportions-put_trackers_on-next = 트래커를 다 착용했어요
onboarding-automatic_proportions-put_trackers_on-next = 트래커를 모두 착용했어요
onboarding-automatic_proportions-requirements-title = 요구사항
# Each line of text is a different list item
onboarding-automatic_proportions-requirements-description =
발까지 추적할 수 있는 적어도 5개의 트래커가 있어야 해요.
전원이 켜진 트래커와 헤드셋이 필요해요.
트래커와 헤드셋을 착용하고 있어야 해요.
트래커와 헤드셋이 SlimeVR 서버와 연결되어 있어야 해요.
트래커와 헤드셋이 SlimeVR 서버에서 제대로 작동하고 있어야 해요.
헤드셋이 SlimeVR 서버에 위치 데이터를 보고하고 있어야 해요. (SteamVR이 실행 중이고 SlimeVR의 SteamVR 드라이버를 사용하여 SlimeVR에 연결되어 있어야 해요).
onboarding-automatic_proportions-requirements-descriptionv2 =
다리를 추적하기 위해 최소 5개 이상의 트래커를 착용하세요.
VR 헤드셋을 착용하세요.
VR 헤드셋과 컨트롤러의 위치 정보가 SlimeVR 서버에 실시간으로 표시되는지 확인하세요.
SlimeVR 서버에 연결된 트래커와 VR 헤드셋이 끊김이나 렉 없이 제대로 표시되는지 확인하세요. (이것은 SteamVR이 실행 중이며 SlimeVR의 SteamVR 드라이버를 사용하여 SlimeVR에 올바르게 연결되어 있다는 것을 의미합니다)
트래커의 제대로 작동하고 나의 움직임을 올바르게 반영중인지 확인하세요. (예: 전체 정렬을 수행했으며 발차기, 허리 숙이기, 앉기 등 올바른 방향으로 움직임)
onboarding-automatic_proportions-requirements-next = 요구사항을 모두 읽었어요
onboarding-automatic_proportions-start_recording-title = 움직일 준비
onboarding-automatic_proportions-check_height-title = 키를 확인하세요
onboarding-automatic_proportions-check_height-description = 이 과정에서는 VR 헤드셋(HMD)의 높이를 사용하여 실제 키의 대략적인 값으로 삼고, 이를 측정의 기준으로 활용합니다. 하지만 직접 확인하는 것이 더 정확해요!
# All the text is in bold!
onboarding-automatic_proportions-check_height-calculation_warning = 버튼을 누른 후 3초 이내에 <u>바르게 서서</u> 키를 측정해 주세요!
onboarding-automatic_proportions-check_height-fetch_height = 서 있어요!
# Context is that the height is unknown
onboarding-automatic_proportions-check_height-unknown = 알 수 없음
# Shows an element below it
onboarding-automatic_proportions-check_height-hmd_height1 = VR 헤드셋(HMD) 높이
# Shows an element below it
onboarding-automatic_proportions-check_height-height1 = 실제 키
onboarding-automatic_proportions-check_height-next_step = 괜찮아 보여요
onboarding-automatic_proportions-start_recording-title = 움직일 준비를 해요
onboarding-automatic_proportions-start_recording-description = 이제 몇 가지 특정 포즈와 동작을 기록할 거예요. 다음 화면에서 메시지가 표시되면 버튼을 눌러서 시작하세요!
onboarding-automatic_proportions-start_recording-next = 기록 시작하기
onboarding-automatic_proportions-recording-title = REC
@@ -832,18 +899,28 @@ onboarding-automatic_proportions-verify_results-redo = 다시 기록하기
onboarding-automatic_proportions-verify_results-confirm = 정확해요!
onboarding-automatic_proportions-done-title = 몸을 측정하고 저장했어요
onboarding-automatic_proportions-done-description = 신체 비율 보정이 완료되었어요!
onboarding-automatic_proportions-error_modal =
<b>경고:</b> 신체 비율을 계산하는 동안 오류가 발생했습니다!
<docs>도움말</docs>을 확인하거나 <discord>디스코드</discord> 서버에서 도움을 받으세요 ^_^
onboarding-automatic_proportions-error_modal-confirm = 이해했어요!
## Home
home-no_trackers = 감지되거나 할당된 트래커가 없어요.
## Trackers Still On notification
trackers_still_on-modal-title = 트래커가 아직 켜져 있어요!
trackers_still_on-modal-description = 하나 이상의 트래커가 여전히 켜져 있는 것으로 보여요. SlimeVR을 종료할까요?
trackers_still_on-modal-confirm = SlimeVR 종료
trackers_still_on-modal-cancel = 돌아가기
## Status system
status_system-StatusTrackerReset = 아직 정렬되지 않은 트래커가 있어서 전체 정렬을 수행해주세요.
status_system-StatusTrackerReset = 전체 정렬을 수행해 아직 정렬되지 않은 트래커를 정렬해주세요.
status_system-StatusSteamVRDisconnected =
{ $type ->
[steamvr_feeder] SlimeVR 피더와 통신할 수 없어요.
*[other] SlimeVR 드라이버를 통해 SteamVR과 통신할 수 없어요.
[steamvr_feeder] SlimeVR 피더와 연결되지 않음
*[other] SlimeVR 드라이버가 SteamVR과 연결되지 않음
}
status_system-StatusTrackerError = { $trackerName } 트래커에 문제가 발생했어요.
+30 -11
View File
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = Rauw
widget-imu_visualizer-rotation_preview = Preview
widget-imu_visualizer-rotation_hide = Verbergen
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Skelet voorbeeld
widget-skeleton_visualizer-hide = Verbergen
## Tracker status
tracker-status-none = Geen status
@@ -152,6 +157,7 @@ tracker-status-error = Fout
tracker-status-disconnected = Verbinding verbroken
tracker-status-occluded = Verborgen
tracker-status-ok = OK
tracker-status-timed_out = Timed Out
## Tracker status columns
@@ -350,10 +356,20 @@ settings-general-fk_settings-leg_tweak-floor_clip-description =
settings-general-fk_settings-leg_tweak-toe_snap-description = Toe-snap probeert de rotatie van uw voeten te raden als voet-trackers niet worden gebruikt.
settings-general-fk_settings-leg_tweak-foot_plant-description = Foot-plant roteert je voeten zodat ze evenwijdig aan de grond zijn wanneer ze in contact zijn.
settings-general-fk_settings-leg_fk = Been tracking
settings-general-fk_settings-leg_fk-reset_mounting_feet-description = Schakel Montage Reset voor de voeten in door op je tenen te staan.
settings-general-fk_settings-leg_fk-reset_mounting_feet = Voeten montage reset.
settings-general-fk_settings-arm_fk = Arm tracking
settings-general-fk_settings-arm_fk-description = Verander de manier waarop de armen worden getrackt.
settings-general-fk_settings-arm_fk-force_arms = Dwing armen vanuit HMD
settings-general-fk_settings-arm_fk-reset_mode-description = Pas de verwachte armhouding aan voor het resetten van de montage.
settings-general-fk_settings-arm_fk-back = Achterzijde
settings-general-fk_settings-arm_fk-back-description = De standaardmodus, waarbij de bovenarmen naar achteren gaan en de onderarmen naar voren.
settings-general-fk_settings-arm_fk-tpose_up = T-pose (omhoog)
settings-general-fk_settings-arm_fk-tpose_up-description = Verwacht je armen langs je zeiden te hangen tijdens een volledige reset, en 90 graden omhoog langs je zeiden tijdens een Montage Reset.
settings-general-fk_settings-arm_fk-tpose_down = T-pose (omlaag)
settings-general-fk_settings-arm_fk-tpose_down-description = Verwacht dat je armen 90 graden naar de zijkanten zijn tijdens een Volledige reset, en aan de zijkanten naar beneden tijdens een montage reset.
settings-general-fk_settings-arm_fk-forward = Voorwaards
settings-general-fk_settings-arm_fk-forward-description = Verwacht dat je armen 90 graden naar voren staan. Handig voor VTubing.
settings-general-fk_settings-skeleton_settings-toggles = Skelet schakelaars
settings-general-fk_settings-skeleton_settings-description = Schakel skeleton instellingen in of uit. Het is aanbevolen om deze aan te laten.
settings-general-fk_settings-skeleton_settings-extended_spine_model = Uitgebreid ruggengraat model
@@ -367,6 +383,7 @@ settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = Bere
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = Bereken heup van taille naar benen
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Bereken het gemiddelde van de 'yaw en roll van de heup met die van de benen'
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Bereken het gemiddelde van de 'yaw en roll van de knie trackers met die van de enkels'
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = Bereken het gemiddelde van de 'yaw en roll van de knie trackers met die van de enkels'
settings-general-fk_settings-self_localization-title = Mocap modus
settings-general-fk_settings-self_localization-description = Mocap modus staat het skelet model toe om zijn eigen positie te bepalen zonder het gebruik van een headset of andere trackers. Dit vergt wel het gebruik van voet en hoofd trackers, dit is momenteel nog expirimenteel.
settings-general-fk_settings-vive_emulation-title = Vive-emulatie
@@ -434,6 +451,8 @@ settings-general-interface-feedback_sound = Feedback geluid
settings-general-interface-feedback_sound-description = Speelt een geluid telkens de reset wordt uitgevoerd
settings-general-interface-feedback_sound-label = Feedback geluid
settings-general-interface-feedback_sound-volume = Feedback geluid volume
settings-general-interface-connected_trackers_warning = Waarschuwing voor verbonden trackers
settings-general-interface-connected_trackers_warning-label = Waarschuwing voor verbonden trackers bij het afsluiten
## Serial settings
@@ -763,6 +782,8 @@ onboarding-choose_mounting-manual_mounting = Handmatige bevestiging
# Italized text
onboarding-choose_mounting-manual_mounting-label = Aanbevolen
onboarding-choose_mounting-manual_mounting-description = Hiermee kunt u de montagerichting handmatig kiezen voor elke tracker
onboarding-choose_mounting-manual_modal-confirm = Ik weet zeker wat ik doe
onboarding-choose_mounting-manual_modal-cancel = Annuleren
## Tracker manual mounting setup
@@ -801,9 +822,6 @@ onboarding-choose_proportions-description = Lichaamsverhoudingen worden gebruikt
onboarding-choose_proportions-auto_proportions = Automatische verhoudingen
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = Aanbevolen
onboarding-choose_proportions-auto_proportions-descriptionv2 =
Dit zal je proporties gokken met jouw bewegingen op basis van een opname, waarna deze door een algoritme gehaald worden.
<b>Hiervoor moet een HMD verbonden zijn aan SlimeVR!</b>
onboarding-choose_proportions-manual_proportions = Handmatige lichaamsverhoudingen
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = Voor kleine details
@@ -833,14 +851,6 @@ onboarding-automatic_proportions-put_trackers_on-title = Doe je trackers aan
onboarding-automatic_proportions-put_trackers_on-description = Om je verhoudingen te kalibreren, gaan we gebruik maken van de trackers die je net hebt toegewezen. Doe al je trackers aan, je kunt zien welke trackers welke zijn in de figuur rechts.
onboarding-automatic_proportions-put_trackers_on-next = Ik heb al mijn trackers aan
onboarding-automatic_proportions-requirements-title = Vereisten
# Each line of text is a different list item
onboarding-automatic_proportions-requirements-description =
Je hebt in ieder geval genoeg trackers om je voeten te volgen (over het algemeen 5 trackers).
Je hebt je trackers en headset op.
Je draagt je trackers en headset.
Je trackers en headset zijn verbonden met de SlimeVR server.
Je trackers en headset werken goed binnen de SlimeVR server.
Je headset rapporteert positiegegevens aan de SlimeVR-server (dit betekent over het algemeen dat SteamVR wordt uitgevoerd en verbonden met SlimeVR met behulp van SlimeVR's SteamVR-stuurprogramma).
onboarding-automatic_proportions-requirements-next = Ik heb de vereisten gelezen
onboarding-automatic_proportions-check_height-title = Controleer je lengte
onboarding-automatic_proportions-check_height-description =
@@ -894,6 +904,15 @@ onboarding-automatic_proportions-error_modal-confirm = Begrepen!
home-no_trackers = Geen trackers gedetecteerd of toegewezen
## Trackers Still On notification
trackers_still_on-modal-title = Trackers staan nog steeds aan
trackers_still_on-modal-description =
Een of meer trackers staan nog aan.
Wil je SlimeVR toch afsluiten?
trackers_still_on-modal-confirm = SlimeVR afsluiten
trackers_still_on-modal-cancel = Wacht even...
## Status system
status_system-StatusTrackerReset = Het wordt aanbevolen om een volledige reset uit te voeren omdat een of meer trackers niet zijn aangepast.
+24
View File
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = Raw
widget-imu_visualizer-rotation_preview = Podgląd
widget-imu_visualizer-rotation_hide = Ukryj
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Podgląd szkieletu
widget-skeleton_visualizer-hide = Ukryj
## Tracker status
tracker-status-none = Brak Statusu
@@ -447,6 +452,9 @@ settings-general-interface-feedback_sound = Dźwięk Informacji
settings-general-interface-feedback_sound-description = Ta opcja odtworzy dźwięk, gdy reset zostanie uruchomiony
settings-general-interface-feedback_sound-label = Dźwięk Informacji
settings-general-interface-feedback_sound-volume = Poziom głośności sprzężenia zwrotnego
settings-general-interface-connected_trackers_warning = Ostrzeżenie o podłączonych trackerach
settings-general-interface-connected_trackers_warning-description = Ta opcja wyświetli wyskakujące okienko za każdym razem, gdy spróbujesz wyjść ze SlimeVR, mając jeden lub więcej podłączonych trackerów. Przypomina o wyłączeniu trackerów, gdy skończysz, aby wydłużyć żywotność baterii.
settings-general-interface-connected_trackers_warning-label = Ostrzeżenie o podłączonych trackerach przy wyjściu
## Serial settings
@@ -780,6 +788,13 @@ onboarding-choose_mounting-manual_mounting = Montaż ręczny
# Italized text
onboarding-choose_mounting-manual_mounting-label = Zalecany
onboarding-choose_mounting-manual_mounting-description = Umożliwi to ręczne wybranie kierunku montażu dla każdego trackera
# Multiline text
onboarding-choose_mounting-manual_modal-title =
Czy na pewno chcesz to zrobić
automatyczna kalibracja montażu?
onboarding-choose_mounting-manual_modal-description = <b> Ręczna kalibracja montażu jest zalecana dla nowych użytkowników </b> , ponieważ prawidłowe ustawienie pozycji automatycznej kalibracji montażu może być trudne i może wymagać pewnej praktyki.
onboarding-choose_mounting-manual_modal-confirm = Jestem pewien tego, co robię
onboarding-choose_mounting-manual_modal-cancel = Anuluj
## Tracker manual mounting setup
@@ -914,6 +929,15 @@ onboarding-automatic_proportions-error_modal-confirm = Zrozumiano!
home-no_trackers = Nie wykryto trackerów
## Trackers Still On notification
trackers_still_on-modal-title = Trackery nadal włączone
trackers_still_on-modal-description =
Jeden lub więcej modułów śledzących jest nadal włączonych.
Czy nadal chcesz wyjść ze SlimeVR?
trackers_still_on-modal-confirm = Wyjdź ze SlimeVR
trackers_still_on-modal-cancel = Poczekaj!
## Status system
status_system-StatusTrackerReset = Zaleca się wykonanie pełnego resetu, ponieważ jeden lub więcej trackerów nie jest wyregulowanych.
+23 -11
View File
@@ -36,6 +36,7 @@ body_part-RIGHT_HAND = Mão Direita
body_part-RIGHT_UPPER_LEG = Coxa direita
body_part-RIGHT_LOWER_LEG = Canela direita
body_part-RIGHT_FOOT = Pé direito
body_part-UPPER_CHEST = Peito Superior
body_part-CHEST = Peito
body_part-WAIST = Cintura
body_part-HIP = Quadril
@@ -52,12 +53,15 @@ body_part-LEFT_FOOT = Pé esquerdo
skeleton_bone-NONE = Nada
skeleton_bone-HEAD = Deslocamento da Cabeça
skeleton_bone-NECK = Tamanho do Pescoço
skeleton_bone-CHEST = Chest Length
skeleton_bone-torso_group = Tamanho do Tronco
skeleton_bone-UPPER_CHEST = Tamanho do Peito Superior
skeleton_bone-CHEST_OFFSET = Chest Offset
skeleton_bone-CHEST = Chest Length
skeleton_bone-WAIST = Waist Length
skeleton_bone-HIP = Hip Length
skeleton_bone-HIP_OFFSET = Compensação do Quadril
skeleton_bone-HIPS_WIDTH = Largura do Quadril
skeleton_bone-leg_group = Tamanho da Perna
skeleton_bone-UPPER_LEG = Upper Leg Length
skeleton_bone-LOWER_LEG = Lower Leg Length
skeleton_bone-FOOT_LENGTH = Tamanho do Pé
@@ -65,6 +69,7 @@ skeleton_bone-FOOT_SHIFT = Compensação do Pé
skeleton_bone-SKELETON_OFFSET = Compensação do Esqueleto
skeleton_bone-SHOULDERS_DISTANCE = Distância dos Ombros
skeleton_bone-SHOULDERS_WIDTH = Largura dos Ombros
skeleton_bone-arm_group = Tamanho do Braço
skeleton_bone-UPPER_ARM = Tamanho do Braço Superior
skeleton_bone-LOWER_ARM = Distância do Antebraço
skeleton_bone-HAND_Y = Distância da mão Y
@@ -114,6 +119,9 @@ widget-overlay-is_mirrored_label = Mostrar Overlay como espelho
widget-drift_compensation-clear = Refazer compensação de drift
## Widget: Clear Reset Mounting
## Widget: Developer settings
widget-developer_mode = Modo de desenvolvedor
@@ -131,6 +139,9 @@ widget-imu_visualizer = Rotation
widget-imu_visualizer-rotation_raw = Raw
widget-imu_visualizer-rotation_preview = Preview
## Widget: Skeleton Visualizer
## Tracker status
tracker-status-none = Sem Status
@@ -258,6 +269,7 @@ settings-sidebar-interface = Interface
settings-sidebar-osc_router = Roteador OSC
settings-sidebar-utils = Utilidades
settings-sidebar-serial = Console Serial
settings-sidebar-notifications = Notificações
## SteamVR settings
@@ -318,11 +330,7 @@ settings-general-fk_settings-leg_tweak-skating_correction-amount = Força da cor
settings-general-fk_settings-arm_fk = Opções do Braço
settings-general-fk_settings-arm_fk-description = Muda o jeito que os braços são rastreados.
settings-general-fk_settings-arm_fk-force_arms = Forçar braços do HMD
settings-general-fk_settings-skeleton_settings = Opções do esqueleto
settings-general-fk_settings-skeleton_settings-description = Ligar ou desligar opções do esqueleto. É recomendado deixar eles ligados.
settings-general-fk_settings-skeleton_settings-extended_spine = Estender coluna
settings-general-fk_settings-skeleton_settings-extended_pelvis = Estender pélvis
settings-general-fk_settings-skeleton_settings-extended_knees = Estender joelho
settings-general-fk_settings-vive_emulation-title = Emulação de Vive
settings-general-fk_settings-vive_emulation-description = Emule o problema de tracker da cintura que o Vive tracker tem. Isso é uma piada e faz o tracking ficar pior.
settings-general-fk_settings-vive_emulation-label = Ativar emulação de Vive
@@ -343,19 +351,21 @@ settings-general-gesture_control-mountingResetEnabled = Toques para o reset de p
settings-general-gesture_control-mountingResetDelay = Delay do reset de posição
settings-general-gesture_control-mountingResetTaps = Toques para o reset de posição
## Interface settings
## Appearance settings
settings-general-interface = Interface
settings-general-interface-dev_mode = Modo de desenvolvedor
settings-general-interface-dev_mode-description = Este modo pode ser útil se precisar de dados específicos ou para interagir com trackers conectados a um nível mais avançado
settings-general-interface-dev_mode-label = Modo de desenvolvedor
settings-general-interface-serial_detection = Detecção de dispositivo serial
settings-general-interface-serial_detection-description = Esta opção mostrará um pop-up toda vez que você conectar um novo dispositivo serial que pode ser um tracker. Ajuda a melhorar o processo de configuração de um tracker
settings-general-interface-serial_detection-label = Detecção de dispositivo serial
settings-general-interface-lang = Selecione o idioma
settings-general-interface-lang-description = Alterar o idioma padrão que pretende utilizar
settings-general-interface-lang-placeholder = Selecione o idioma que vai usar
## Notification settings
settings-general-interface-serial_detection = Detecção de dispositivo serial
settings-general-interface-serial_detection-description = Esta opção mostrará um pop-up toda vez que você conectar um novo dispositivo serial que pode ser um tracker. Ajuda a melhorar o processo de configuração de um tracker
settings-general-interface-serial_detection-label = Detecção de dispositivo serial
## Serial settings
settings-serial = Console Serial
@@ -460,7 +470,6 @@ onboarding-wifi_creds-password =
onboarding-reset_tutorial-back = Voltar para a Calibragem de Posição
onboarding-reset_tutorial = Resetar Tutorial
onboarding-reset_tutorial-description = Esse recurso não está concluído, apenas aperte continue
## Setup start
@@ -677,5 +686,8 @@ onboarding-automatic_proportions-done-description = Sua calibragem de proporçã
home-no_trackers = Nenhum tracker detectado ou atribuído
## Trackers Still On notification
## Status system
+98
View File
@@ -53,6 +53,8 @@ body_part-LEFT_FOOT = Bàn chân trái
skeleton_bone-NONE = Chưa được gán
skeleton_bone-HEAD = Sai số đầu
skeleton_bone-NECK = Chiều dài cổ
skeleton_bone-torso_group = Độ dài thân
skeleton_bone-UPPER_CHEST = Độ dài ngực trên
skeleton_bone-CHEST_OFFSET = Sai số ngực
skeleton_bone-CHEST = Khoảng cách ngực
skeleton_bone-WAIST = Khoảng cách eo
@@ -70,6 +72,8 @@ skeleton_bone-SHOULDERS_WIDTH = Chiều rộng vai
skeleton_bone-arm_group = Chiều dài cánh tay
skeleton_bone-UPPER_ARM = Chiều dài bắp tay
skeleton_bone-LOWER_ARM = Chiều dài cẳng tay
skeleton_bone-HAND_Y = Khoảng cách tay Y
skeleton_bone-HAND_Z = Khoảng cách tay Z
skeleton_bone-ELBOW_OFFSET = Sai số khuỷu tay
## Tracker reset buttons
@@ -77,6 +81,7 @@ skeleton_bone-ELBOW_OFFSET = Sai số khuỷu tay
reset-reset_all = Đặt lại tất cả bộ phận
reset-full = Đặt lại
reset-mounting = Đặt lại hướng gắn tracker
reset-yaw = Reset Yaw
## Serial detection stuff
@@ -139,6 +144,11 @@ widget-imu_visualizer-rotation_raw = Gốc
widget-imu_visualizer-rotation_preview = Qua xử lí
widget-imu_visualizer-rotation_hide = Ẩn
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = Xem trước khung xương
widget-skeleton_visualizer-hide = Ẩn
## Tracker status
tracker-status-none = Không có trạng thái
@@ -147,6 +157,7 @@ tracker-status-error = Lỗi
tracker-status-disconnected = Đã ngắt kết nối
tracker-status-occluded = Nghẽn
tracker-status-ok = Đã kết nối
tracker-status-timed_out = Hết thời gian chờ
## Tracker status columns
@@ -164,10 +175,15 @@ tracker-table-column-url = Đường dẫn
## Tracker rotation
tracker-rotation-front = Trước
tracker-rotation-front_left = Phía trước-Bên trái
tracker-rotation-front_right = Phía trước-Bên phải
tracker-rotation-left = Trái
tracker-rotation-right = Phải
tracker-rotation-back = Sau
tracker-rotation-back_left = Phía sau-Bên trái
tracker-rotation-back_right = Phía sau-Bên phải
tracker-rotation-custom = Tùy chọn
tracker-rotation-overriden = (được ghi đè bởi reset hướng gắn tracker)
## Tracker information
@@ -231,6 +247,7 @@ tracker_selection_menu-RIGHT_UPPER_LEG = { -tracker_selection-part } bắp chân
tracker_selection_menu-RIGHT_LOWER_LEG = { -tracker_selection-part } cẳng chân phải?
tracker_selection_menu-RIGHT_FOOT = { -tracker_selection-part } bàn chân phải?
tracker_selection_menu-RIGHT_CONTROLLER = { -tracker_selection-part } tay cầm bên phải?
tracker_selection_menu-UPPER_CHEST = { -tracker_selection-part } ngực trên?
tracker_selection_menu-CHEST = { -tracker_selection-part } ngực?
tracker_selection_menu-WAIST = { -tracker_selection-part } eo?
tracker_selection_menu-HIP = { -tracker_selection-part } hông?
@@ -245,6 +262,11 @@ tracker_selection_menu-LEFT_CONTROLLER = { -tracker_selection-part } tay cầm b
tracker_selection_menu-unassigned = Chưa gắn vị trí
tracker_selection_menu-assigned = Đã gán vị trí
tracker_selection_menu-dont_assign = Không gắn
# This line cares about multilines.
# <b>text</b> means that the text should be bold.
tracker_selection_menu-neck_warning =
<b>Cảnh báo:</b> Tracker ở cổ rất nguy hiểm và có thể gây tử vong nếu điều chỉnh quá chặt,
Dây đeo có thể cắt lưu thông máu đến đầu của bạn!
tracker_selection_menu-neck_warning-done = Tôi hiểu những rủi ro
tracker_selection_menu-neck_warning-cancel = Hủy
@@ -265,6 +287,7 @@ settings-sidebar-osc_router = Router OSC
settings-sidebar-osc_trackers = Trình theo dõi VRChat OSC
settings-sidebar-utils = Công cụ
settings-sidebar-serial = Cổng Serial
settings-sidebar-appearance = Giao diện
settings-sidebar-notifications = Thông báo
## SteamVR settings
@@ -322,10 +345,26 @@ settings-general-fk_settings-leg_tweak-floor_clip = Ngăn xuyên sàn
# since this largely prevents this it corrects for it hence skating correction (note this may be renamed to sliding correction)
# definition - Guesses when each foot is in contact with the ground and uses that information to improve tracking
settings-general-fk_settings-leg_tweak-skating_correction = Sửa trượt
settings-general-fk_settings-leg_tweak-toe_snap = Đoán hướng xoay chân
settings-general-fk_settings-leg_tweak-skating_correction-amount = Mức độ sửa
settings-general-fk_settings-leg_tweak-skating_correction-description = Sửa trượt sẽ điều chỉnh nhằm giảm thiểu hiện tượng trượt băng nhưng có thể làm giảm độ chính xác trong một vài kiểu chuyển động nhất định. Khi bật tính năng này, vui lòng đảm bảo thực hiện thao tác đặt lại hoàn toàn và hiệu chỉnh lại trong trò chơi.
settings-general-fk_settings-leg_tweak-floor_clip-description = Ngăn xuyên sàn có thể giảm hoặc loại bỏ khả năng tracker của bạn đi xuyên sàn nhà. Khi bật tính năng này, vui lòng đảm bảo thực hiện thao tác đặt lại hoàn toàn và hiệu chỉnh lại trong trò chơi.
settings-general-fk_settings-leg_tweak-toe_snap-description = Đoán hướng xoay chân sẽ đoán hướng xoay của chân đồng thời khóa ngón chân của bạn vào mặt sàn bạn nếu bạn không sử dụng tracker cho chân.
settings-general-fk_settings-leg_fk = Track chân
settings-general-fk_settings-leg_fk-reset_mounting_feet-description = Đặt lại hướng gắn tracker bàn chân bằng cách nhón chân.
settings-general-fk_settings-leg_fk-reset_mounting_feet = Đặt lại hướng gắn tracker bàn chân
settings-general-fk_settings-arm_fk = Track cánh tay
settings-general-fk_settings-arm_fk-description = Thay đổi cách cánh tay được track
settings-general-fk_settings-arm_fk-force_arms = Lấy dữ liệu cánh tay từ kính
settings-general-fk_settings-arm_fk-reset_mode-description = Thay đổi tư thế cánh tay để đặt lại hướng gắn tracker.
settings-general-fk_settings-arm_fk-back = Khuỷu tay ra sau
settings-general-fk_settings-arm_fk-back-description = Chế độ mặc định, với cánh tay trên trỏ về phía sau và cánh tay dưới hướng về phía trước.
settings-general-fk_settings-arm_fk-tpose_up = T-pose
settings-general-fk_settings-arm_fk-tpose_up-description = Hai tay của bạn sẽ hướng xuống ở hai bên khi đặt lại hoàn toàn, và đưa lên 90 độ sang hai bên khi đặt lại hướng gắn tracker.
settings-general-fk_settings-arm_fk-tpose_down = T-pose (ngược lại)
settings-general-fk_settings-arm_fk-tpose_down-description = Hai tay của bạn sẽ đưa lên 90 độ sang hai bên khi đặt lại hoàn toàn, và hai tay hướng xuống hai bên khi đặt lại hướng gắn tracker.
settings-general-fk_settings-arm_fk-forward = Hai tay ra trước
settings-general-fk_settings-arm_fk-forward-description = Hai cánh tay của bạn nâng lên 90 độ về phía trước. Hữu dụng cho việc VTubing.
settings-general-fk_settings-skeleton_settings-description = Bật hoặc tắt các cài đặt về khung cơ thể. Các lựa chọn này nên được giữ bật
settings-general-fk_settings-self_localization-title = Chế độ Mocap
settings-general-fk_settings-vive_emulation-title = Giả lập tracker Vive
@@ -353,6 +392,7 @@ settings-general-gesture_control-mountingResetTaps = Số lần chạm cho đặ
## Appearance settings
settings-interface-appearance = Giao diện
settings-general-interface-dev_mode = Chế độ nhà phát triển
settings-general-interface-dev_mode-description = Hữu dụng nếu cần thêm thông tin chi tiết của tracker hay can thiệp sâu hơn vào tracker
settings-general-interface-dev_mode-label = Chế độ nhà phát triển
@@ -360,6 +400,8 @@ settings-general-interface-theme = Màu giao diện
settings-general-interface-lang = Thay đổi ngôn ngữ (Change language)
settings-general-interface-lang-description = Đổi ngôn ngữ hiển thị (Change the default language you want to use)
settings-general-interface-lang-placeholder = Chọn ngôn ngữ để sử dụng (Select the language to use)
# Keep the font name untranslated
settings-interface-appearance-font = Phông chữ cho GUI
settings-interface-appearance-font-placeholder = Phông chữ mặc định
settings-interface-appearance-font-os_font = Phông chữ hệ điều hành
settings-interface-appearance-font-slime_font = Phông chữ mặc định
@@ -447,6 +489,7 @@ settings-osc-vrchat-network-trackers-elbows = Khuỷu tay
settings-osc-vmc-enable = Bật
settings-osc-vmc-enable-description = Cho phép nhận và gửi dữ liệu OSC
settings-osc-vmc-enable-label = Chuyển tiếp dữ liệu OSC
settings-osc-vmc-vrm = Model VRM
## Setup/onboarding menu
@@ -564,6 +607,9 @@ onboarding-assign_trackers-next = Hoàn thành
## Tracker mounting method choose
# Italized text
onboarding-choose_mounting-auto_mounting-label = Thử nghiệm
onboarding-choose_mounting-manual_modal-cancel = Hủy
## Tracker manual mounting setup
@@ -596,6 +642,22 @@ onboarding-automatic_mounting-put_trackers_on-next = Tiếp tục
## Tracker proportions method choose
onboarding-choose_proportions-auto_proportions = Đo kích thước cơ thể tự động
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = Khuyến khích dùng
onboarding-choose_proportions-auto_proportions-descriptionv3 =
Tính năng này sẽ đoán tỷ lệ cơ thể của bạn bằng cách ghi lại một mẫu chuyển động của bạn và chuyển nó qua một thuật toán.
<b>Tính năng này sẽ yêu cầu headset của bạn (HMD) được kết nối với SlimeVR và đang nằm ở trên đầu của bạn!</b>
onboarding-choose_proportions-manual_proportions = Đo kích thước cơ thể thủ công
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = Cho chính xác
onboarding-choose_proportions-manual_proportions-description = Tính năng này sẽ cho phép bạn điều chỉnh tỉ lệ cơ thể của mình theo cách thủ công bằng cách chỉnh sửa các con số một cách trực tiếp
onboarding-choose_proportions-export = Xuất tỉ lệ cơ thể
onboarding-choose_proportions-import = Nhập tỉ lệ cơ thể
onboarding-choose_proportions-import-success = Đã được nhập
onboarding-choose_proportions-import-failed = Thất bại
onboarding-choose_proportions-file_type = File tỉ lệ cơ thể
## Tracker manual proportions setup
@@ -615,16 +677,40 @@ onboarding-automatic_proportions-put_trackers_on-title = Đeo tracker lên ngư
onboarding-automatic_proportions-put_trackers_on-description = Để đo kích thước cơ thể, SlimeVR sẽ sử dụng một thuật toán để dự đoán kích thước của các bộ phận, hãy đeo tracker theo đúng vị trí đã thiết lập như hình bên
onboarding-automatic_proportions-put_trackers_on-next = Tiếp tục
onboarding-automatic_proportions-requirements-title = Yêu cầu
# Each line of text is a different list item
onboarding-automatic_proportions-requirements-descriptionv2 =
Bạn có ít nhất đủ tracker để theo dõi bàn chân của mình (thường là 5 tracker).
Bạn đã bật tracker và headset và đang đeo chúng.
Tracker và headset của bạn được kết nối với máy chủ SlimeVR và đang hoạt động bình thường (ví dụ: không bị lag, ngắt kết nối, v.v.).
Headset của bạn đang báo cáo dữ liệu vị trí cho máy chủ SlimeVR (điều này thường có nghĩa là SteamVR đang chạy và kết nối với SlimeVR bằng driver SteamVR của SlimeVR).
Tracking của bạn đang hoạt động và thể hiện chính xác các chuyển động của bạn (ví dụ: bạn đã thực hiện thiết đặt lại hoàn toàn và chúng di chuyển đúng hướng khi đá, cúi xuống, ngồi, v.v.).
onboarding-automatic_proportions-requirements-next = Tôi đã đọc các yêu cầu
onboarding-automatic_proportions-check_height-title = Kiểm tra chiều cao của bạn
onboarding-automatic_proportions-check_height-description = Chúng tôi sử dụng chiều cao của bạn làm cơ sở cho các phép đo của chúng tôi bằng cách sử dụng chiều cao của headset (HMD) làm chiều cao ước tính thực tế của bạn, nhưng tốt hơn hết bạn nên tự kiểm tra xem chúng có đúng không!
# All the text is in bold!
onboarding-automatic_proportions-check_height-calculation_warning = Vui lòng nhấn nút trong khi đứng <u>thẳng</u> để tính chiều cao của bạn. Bạn có 3 giây sau khi nhấn nút!
onboarding-automatic_proportions-check_height-fetch_height = Tôi đang đứng!
# Context is that the height is unknown
onboarding-automatic_proportions-check_height-unknown = Không rõ
# Shows an element below it
onboarding-automatic_proportions-check_height-hmd_height1 = Chiều cao của HMD là
# Shows an element below it
onboarding-automatic_proportions-check_height-height1 = vậy chiều cao thật của bạn là
onboarding-automatic_proportions-check_height-next_step = Những chỉ số này là đúng
onboarding-automatic_proportions-start_recording-title = Chuẩn bị đo
onboarding-automatic_proportions-start_recording-description = Phần mềm sẽ đo một số chuyển động, cử chỉ cụ thể, hãy chuẩn bị cho việc di chuyển theo yêu cầu trong phần tiếp theo
onboarding-automatic_proportions-start_recording-next = Bắt đầu
onboarding-automatic_proportions-recording-title = REC
onboarding-automatic_proportions-recording-description-p0 = Đang ghi...
onboarding-automatic_proportions-recording-description-p1 = Thực hiện các thao tác sau:
# Each line of text is a different list item
onboarding-automatic_proportions-recording-steps =
Đứng thẳng, xoay đầu một vòng tròn.
Cong lưng về phía trước và ngồi xổm. Trong khi ngồi xổm, nhìn sang trái, sau đó sang phải.
Xoay phần thân trên của bạn sang trái (ngược chiều kim đồng hồ), sau đó đưa tay xuống đất.
Xoay phần thân trên của bạn sang phải (theo chiều kim đồng hồ), sau đó với tay xuống đất.
Xoay hông của bạn theo chuyển động tròn như thể bạn đang xoay vòng hula.
Nếu còn thời gian, bạn có thể lặp lại các bước này cho đến khi kết thúc.
onboarding-automatic_proportions-recording-processing = Đang xử lí kết quả...
# $time (Number) - Seconds left for the automatic calibration recording to finish (max 20)
onboarding-automatic_proportions-recording-timer =
@@ -640,12 +726,24 @@ onboarding-automatic_proportions-verify_results-redo = Thử lại
onboarding-automatic_proportions-verify_results-confirm = Kết quả tương đối chính xác
onboarding-automatic_proportions-done-title = Đã lưu chỉ số đo
onboarding-automatic_proportions-done-description = Quá trình đo đã hoàn tất
onboarding-automatic_proportions-error_modal =
<b>Cảnh báo:</b> Một lỗi đã được tìm thấy trong khi ước tính tỷ lệ cơ thể!
Vui lòng <docs>kiểm tra tài liệu</docs> hoặc tham gia <discord>Discord</discord> của chúng tôi để được trợ giúp ^_^
onboarding-automatic_proportions-error_modal-confirm = Đã hiểu!
## Home
home-no_trackers = Không tìm thấy tracker / Tracker chưa được gán
## Trackers Still On notification
trackers_still_on-modal-title = Tracker vẫn còn bật
trackers_still_on-modal-description =
Vẫn còn một hoặc nhiều tracker vẫn đang bật.
Bạn vẫn muốn thoát khỏi SlimeVR?
trackers_still_on-modal-confirm = Thoát SlimeVR
trackers_still_on-modal-cancel = Vui lòng đợi...
## Status system
status_system-StatusTrackerReset = Bạn nên thực hiện thiết lập lại toàn bộ vì một hoặc nhiều trình theo dõi không được điều chỉnh.
+22
View File
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = 原始旋转
widget-imu_visualizer-rotation_preview = 预览
widget-imu_visualizer-rotation_hide = 隐藏
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = 骨架预览
widget-skeleton_visualizer-hide = 隐藏
## Tracker status
tracker-status-none = 无状态
@@ -438,6 +443,9 @@ settings-general-interface-feedback_sound = 声音反馈
settings-general-interface-feedback_sound-description = 开启此选项会在触发重置时发出提示音
settings-general-interface-feedback_sound-label = 声音反馈
settings-general-interface-feedback_sound-volume = 提示音音量
settings-general-interface-connected_trackers_warning = 已连接追踪器警告
settings-general-interface-connected_trackers_warning-description = 启用本选项后,每次当退出 SlimeVR 时仍有追踪器连接着会显示通知,提醒你在使用完毕时关闭追踪器电源来节省电池电量。
settings-general-interface-connected_trackers_warning-label = 退出时,有追踪器连接中则显示警告
## Serial settings
@@ -762,6 +770,11 @@ onboarding-choose_mounting-manual_mounting = 手动设置佩戴方向
# Italized text
onboarding-choose_mounting-manual_mounting-label = 推荐
onboarding-choose_mounting-manual_mounting-description = 这将需要你手动选择每个追踪器的佩戴方向
# Multiline text
onboarding-choose_mounting-manual_modal-title = 确定要进行自动佩戴校准?
onboarding-choose_mounting-manual_modal-description = <b>我们建议新手使用手动佩戴校准</b>,因为自动佩戴校准的姿势要一次做正确比较困难,可能需要一些练习。
onboarding-choose_mounting-manual_modal-confirm = 我已知晓
onboarding-choose_mounting-manual_modal-cancel = 取消
## Tracker manual mounting setup
@@ -890,6 +903,15 @@ onboarding-automatic_proportions-error_modal-confirm = 了解!
home-no_trackers = 未检测到或未分配追踪器
## Trackers Still On notification
trackers_still_on-modal-title = 有追踪器的电源还开着
trackers_still_on-modal-description =
至少有一个追踪器的电源还开着。
确定要退出 SlimeVR 吗?
trackers_still_on-modal-confirm = 退出 SlimeVR
trackers_still_on-modal-cancel = 等会…
## Status system
status_system-StatusTrackerReset = 建议执行完整重置,因为有至少一个追踪器未被调整。
+35 -11
View File
@@ -144,6 +144,11 @@ widget-imu_visualizer-rotation_raw = 原始旋轉
widget-imu_visualizer-rotation_preview = 預覽
widget-imu_visualizer-rotation_hide = 隱藏
## Widget: Skeleton Visualizer
widget-skeleton_visualizer-preview = 骨架預覽
widget-skeleton_visualizer-hide = 隱藏
## Tracker status
tracker-status-none = 無
@@ -152,6 +157,7 @@ tracker-status-error = 錯誤
tracker-status-disconnected = 連線中斷
tracker-status-occluded = 被遮擋
tracker-status-ok = 已連線
tracker-status-timed_out = 已逾時
## Tracker status columns
@@ -373,9 +379,9 @@ settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_hip = 推
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = 推算腰部定位時,胸部與腿部定位使用的比例
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = 推算臀部定位時,胸部與腿部定位使用的比例
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = 推算臀部定位時, 腰部與腿部定位使用的比例
settings-general-fk_settings-skeleton_settings-interp_hip_legs = 臀部的偏航軸與翻滾軸,混合腿部定位的比例
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = 膝部的偏航軸與翻滾軸,混合腳踝定位的比例
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = 將膝部的偏航軸與翻滾軸與腳踝計算平均
settings-general-fk_settings-skeleton_settings-interp_hip_legs = 臀部的偏航軸與翻滾軸,與腿部定位平均的比例
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = 膝部的偏航軸與翻滾軸,與腳踝定位平均的比例
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = 膝部的偏航軸與翻滾軸,與腳踝定位平均的比例
settings-general-fk_settings-self_localization-title = 動作捕捉模式
settings-general-fk_settings-self_localization-description = 動作捕捉模式允許在沒有頭戴顯示器或其他追蹤器時,粗略的追蹤身體骨架的定位。請注意,本功能需要腳部與頭部的追蹤器,並且本功能仍在實驗階段。
settings-general-fk_settings-vive_emulation-title = Vive 模擬
@@ -438,6 +444,9 @@ settings-general-interface-feedback_sound = 聲音回饋
settings-general-interface-feedback_sound-description = 啟用本選項後,觸發重置時會發出提示音。
settings-general-interface-feedback_sound-label = 聲音回饋
settings-general-interface-feedback_sound-volume = 聲音回饋音量
settings-general-interface-connected_trackers_warning = 已連接追蹤器警告
settings-general-interface-connected_trackers_warning-description = 啟用本選項後,每次當退出 SlimeVR 時仍有追蹤器連接著會顯示通知,提醒你在使用完畢時關閉追蹤器電源來節省電池電量。
settings-general-interface-connected_trackers_warning-label = 當退出程式時,有追蹤器連接中則顯示警告
## Serial settings
@@ -760,6 +769,11 @@ onboarding-choose_mounting-manual_mounting = 手動配戴校正
# Italized text
onboarding-choose_mounting-manual_mounting-label = 推薦使用
onboarding-choose_mounting-manual_mounting-description = 本選項可以讓你選擇每個追蹤器的配戴方位
# Multiline text
onboarding-choose_mounting-manual_modal-title = 確定要進行自動配戴校正?
onboarding-choose_mounting-manual_modal-description = <b>我們建議新手使用手動配戴校正</b>,因為自動配戴校正的姿勢要一次做正確比較困難,可能需要一些練習。
onboarding-choose_mounting-manual_modal-confirm = 我確定要這樣做
onboarding-choose_mounting-manual_modal-cancel = 取消
## Tracker manual mounting setup
@@ -800,10 +814,10 @@ onboarding-choose_proportions-description =
onboarding-choose_proportions-auto_proportions = 自動軀幹比例校正
# Italized text
onboarding-choose_proportions-auto_proportions-subtitle = 推薦使用
onboarding-choose_proportions-auto_proportions-descriptionv2 =
onboarding-choose_proportions-auto_proportions-descriptionv3 =
本選項會從您的身體動作錄製一段樣本,並通過演算法來推算您的軀幹比例。
<b>使用本功能需要連接頭戴顯示器到 SlimeVR!</b>
<b>使用本功能需要連接頭戴顯示器到 SlimeVR,並且配戴在頭部!</b>
onboarding-choose_proportions-manual_proportions = 手動軀幹比例校正
# Italized text
onboarding-choose_proportions-manual_proportions-subtitle = 適合進行微調
@@ -834,13 +848,14 @@ onboarding-automatic_proportions-put_trackers_on-description = 為了校準你
onboarding-automatic_proportions-put_trackers_on-next = 我所有的追蹤器都戴好了!
onboarding-automatic_proportions-requirements-title = 使用需求
# Each line of text is a different list item
onboarding-automatic_proportions-requirements-description =
onboarding-automatic_proportions-requirements-descriptionv2 =
你需要足夠的追蹤器以進行足部追蹤(通常為 5 個)。
你已經打開追蹤器與頭戴顯示器的電源。
追蹤器的電源已經打開並已經穿著在身上。
你需要穿戴上追蹤器與頭戴顯示器。
你的追蹤器與頭戴顯示器都已經連接到 SlimeVR 伺服器。
你的追蹤器與頭戴顯示器在 SlimeVR 伺服器中運作正常。
你的頭戴顯示器會回報定位資料給 SlimeVR 伺服器(通常為執行 SteamVR 並透過 SlimeVR 的 SteamVR 驅動程式來連接 SlimeVR)。
追蹤器與頭戴顯示器都已經連接到 SlimeVR 伺服器,並且正常運作(亦即沒有卡頓或斷線等狀況)。
追蹤器與頭戴顯示器在 SlimeVR 伺服器中運作正常。
頭戴顯示器會回報定位資料給 SlimeVR 伺服器(通常為執行 SteamVR 並透過 SlimeVR 的 SteamVR 驅動程式來連接 SlimeVR)。
追蹤狀態正常且能反映你的移動姿態(例如,進行完全重置後,踢腿、彎曲、坐下時的肢體方向是正確的)。
onboarding-automatic_proportions-requirements-next = 我已閱讀使用需求
onboarding-automatic_proportions-check_height-title = 檢查您的身高
onboarding-automatic_proportions-check_height-description = 我們會透過頭戴顯示器回報的高度來推算您的實際身高,但我們仍建議您檢查一下數值是否正確。
@@ -888,9 +903,18 @@ onboarding-automatic_proportions-error_modal-confirm = 瞭解!
home-no_trackers = 未偵測到或未分配追蹤器
## Trackers Still On notification
trackers_still_on-modal-title = 有追蹤器的電源還開著
trackers_still_on-modal-description =
至少有一個追蹤器的電源還開著。
確定要退出 SlimeVR 嗎?
trackers_still_on-modal-confirm = 退出 SlimeVR
trackers_still_on-modal-cancel = 先不要…
## Status system
status_system-StatusTrackerReset = 建議執行完全重置,因為有至少一個追蹤器尚未調整
status_system-StatusTrackerReset = 有至少一個追蹤器尚未進行調整,建議執行完整重置。
status_system-StatusSteamVRDisconnected =
{ $type ->
[steamvr_feeder] 尚未連接 SlimeVR 資料迴送程式
Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

+1 -5
View File
@@ -1,5 +1 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-miterlimit="10" version="1.1" viewBox="0 0 380 380" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
<style>svg { background-color: #663499; }</style>
<rect id="bg" width="100%" height="100%" fill="#663499"/><g id="logo" fill="none" stroke="#fff"><path id="left" d="m72.867 191.74 37-39 39 36" stroke-width="13.62px"/><path id="right" d="m208.87 187.74 38-35 36 38" stroke-width="13.62px"/><path id="outer" d="m56.867 253.74s130.61-31.182 248 5c13.45 4.146 20.244 2.975 20-8s1.909-126.06-46-131" stroke-linecap="square" stroke-width="17px"/></g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-miterlimit="10" clip-rule="evenodd" version="1.1" viewBox="0 0 380 380" xml:space="preserve"><style>svg{background-color:#663499}</style><rect id="bg" width="100%" height="100%" fill="#663499"/><g id="logo" fill="none" stroke="#fff"><path id="left" stroke-width="13.62" d="m72.867 191.74 37-39 39 36"/><path id="right" stroke-width="13.62" d="m208.87 187.74 38-35 36 38"/><path id="outer" stroke-linecap="square" stroke-width="17" d="m56.867 253.74s130.61-31.182 248 5c13.45 4.146 20.244 2.975 20-8s1.909-126.06-46-131"/></g></svg>

Before

Width:  |  Height:  |  Size: 660 B

After

Width:  |  Height:  |  Size: 598 B

+8 -10
View File
@@ -21,22 +21,20 @@ default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
[build-dependencies]
tauri-build = { version = "2.0.0-alpha.6", features = [] }
tauri-build = { version = "2.0.0-alpha", features = [] }
cfg_aliases = "0.1"
shadow-rs = "0.23"
[dependencies]
serde_json = "1"
serde = { version = "1", features = ["derive"] }
tauri = { version = "2.0.0-alpha.10", features = ["devtools"] }
tauri-runtime = "0.13.0-alpha.6"
tauri-plugin-dialog = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d" }
tauri-plugin-fs = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d" }
tauri-plugin-os = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d" }
tauri-plugin-shell = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d" }
tauri-plugin-window = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d", features = [
"devtools",
] }
tauri = { version = "2.0.0-alpha", features = ["devtools"] }
tauri-runtime = "1.0.0-alpha"
tauri-plugin-dialog = "2.0.0-alpha"
tauri-plugin-fs = "2.0.0-alpha"
tauri-plugin-os = "2.0.0-alpha"
tauri-plugin-shell = "2.0.0-alpha"
tauri-plugin-window = { version = "2.0.0-alpha", features = ["devtools"] }
flexi_logger = "0.25"
log-panics = { version = "2", features = ["with-backtrace"] }
log = "0.4"
+5 -7
View File
@@ -81,12 +81,10 @@ fn main() -> Result<()> {
});
#[cfg(not(target_os = "macos"))]
let path = dirs_next::data_dir()
.ok_or(Error::UnknownPath)
.map(|dir| {
dir.join(&tauri_context.config().tauri.bundle.identifier)
.join("logs")
});
let path = dirs_next::data_dir().ok_or(Error::UnknownPath).map(|dir| {
dir.join(&tauri_context.config().tauri.bundle.identifier)
.join("logs")
});
Logger::try_with_env_or_str("info")?
.log_to_file(
@@ -205,7 +203,7 @@ fn main() -> Result<()> {
app.manage(Mutex::new(window_state));
if let Some((java_bin, p)) = server_info {
let app_handle = app.app_handle();
let app_handle = app.app_handle().clone();
tauri::async_runtime::spawn(async move {
use tauri_plugin_shell::{process::CommandEvent, ShellExt};
+2
View File
@@ -52,6 +52,7 @@ import { VRModePage } from './components/vr-mode/VRModePage';
import { InterfaceSettings } from './components/settings/pages/InterfaceSettings';
import { error, log } from './utils/logging';
import { AppLayout } from './AppLayout';
import { Preload } from './components/Preload';
export const GH_REPO = 'SlimeVR/SlimeVR-Server';
export const VersionContext = createContext('');
@@ -252,6 +253,7 @@ export default function App() {
<StatusProvider>
<VersionContext.Provider value={updateFound}>
<div className="h-full w-full text-standard bg-background-80 text-background-10">
<Preload />
<div className="flex-col h-full">
{!websocketAPI.isConnected && (
<>
@@ -16,7 +16,7 @@ export function ClearDriftCompensationButton() {
return (
<BigButton
text={l10n.getString('widget-drift_compensation-clear')}
icon={<TrashIcon width={20} />}
icon={<TrashIcon size={20} />}
onClick={clearDriftCompensation}
>
{}
+1 -1
View File
@@ -36,7 +36,7 @@ export function ClearMountingButton() {
return (
<BigButton
text={l10n.getString('widget-clear_mounting')}
icon={<TrashIcon width={20} />}
icon={<TrashIcon size={20} />}
onClick={clearMounting}
disabled={!trackerWithMounting}
/>
+48
View File
@@ -0,0 +1,48 @@
import { Helmet } from 'react-helmet';
export function Preload() {
return (
<Helmet>
<link rel="preload" href="/images/front-standing-pose.webp" as="image" />
<link rel="preload" href="/images/slime-girl.webp" as="image" />
<link rel="preload" href="/images/mounting-reset-pose.webp" as="image" />
<link rel="preload" href="/images/reset-pose.webp" as="image" />
<link rel="preload" href="/images/slimes.webp" as="image" />
<link
rel="preload"
href="/sounds/quick-reset-started-sound.mp3"
as="audio"
/>
<link
rel="preload"
href="/sounds/full-reset-started-sound.mp3"
as="audio"
/>
<link
rel="preload"
href="/sounds/mounting-reset-started-sound.mp3"
as="audio"
/>
<link rel="preload" href="/sounds/first-tap.mp3" as="audio" />
<link rel="preload" href="/sounds/second-tap.mp3" as="audio" />
<link rel="preload" href="/sounds/third-tap.mp3" as="audio" />
<link rel="preload" href="/sounds/fourth-tap.mp3" as="audio" />
<link rel="preload" href="/sounds/fifth-tap.mp3" as="audio" />
<link rel="preload" href="/sounds/end-tap.mp3" as="audio" />
<link rel="preload" href="/sounds/tapextrasetup.mp3" as="audio" />
<link
rel="preload"
href="/models/tracker.gltf"
as="fetch"
crossOrigin="anonymous"
/>
<link
rel="preload"
href="/models/extension.gltf"
as="fetch"
crossOrigin="anonymous"
/>
</Helmet>
);
}
+30 -4
View File
@@ -5,6 +5,7 @@ import {
RpcMessage,
ServerInfosRequestT,
ServerInfosResponseT,
TrackerStatus,
} from 'solarxr-protocol';
import { useWebsocketAPI } from '@/hooks/websocket-api';
import { CloseIcon } from './commons/icon/CloseIcon';
@@ -15,12 +16,15 @@ import { ProgressBar } from './commons/ProgressBar';
import { Typography } from './commons/Typography';
import { DownloadIcon } from './commons/icon/DownloadIcon';
import { open } from '@tauri-apps/plugin-shell';
import { GH_REPO, VersionContext, DOCS_SITE } from '@/App';
import { DOCS_SITE, GH_REPO, VersionContext } from '@/App';
import classNames from 'classnames';
import { QuestionIcon } from './commons/icon/QuestionIcon';
import { useBreakpoint, useIsTauri } from '@/hooks/breakpoint';
import { GearIcon } from './commons/icon/GearIcon';
import { invoke } from '@tauri-apps/api';
import { useTrackers } from '@/hooks/tracker';
import { TrackersStillOnModal } from './TrackersStillOnModal';
import { useConfig } from '@/hooks/config';
export function VersionTag() {
return (
@@ -49,11 +53,20 @@ export function TopBar({
const isTauri = useIsTauri();
const { isMobile } = useBreakpoint('mobile');
const { useRPCPacket, sendRPCPacket } = useWebsocketAPI();
const { useConnectedIMUTrackers } = useTrackers();
const connectedIMUTrackers = useConnectedIMUTrackers();
const { config } = useConfig();
const version = useContext(VersionContext);
const [localIp, setLocalIp] = useState<string | null>(null);
const [showConnectedTrackersWarning, setConnectedTrackerWarning] =
useState(false);
const doesMatchSettings = useMatch({
path: '/settings/*',
});
const closeApp = async () => {
await invoke('update_window_state');
getCurrent().close();
};
useEffect(() => {
sendRPCPacket(RpcMessage.ServerInfosRequest, new ServerInfosRequestT());
@@ -197,9 +210,17 @@ export function TopBar({
</div>
<div
className="flex items-center justify-center hover:bg-background-60 rounded-full w-7 h-7"
onClick={async () => {
await invoke('update_window_state');
getCurrent().close();
onClick={() => {
if (
config?.connectedTrackersWarning &&
connectedIMUTrackers.filter(
(t) => t.tracker.status !== TrackerStatus.TIMED_OUT
).length > 0
) {
setConnectedTrackerWarning(true);
} else {
closeApp();
}
}}
>
<CloseIcon></CloseIcon>
@@ -214,6 +235,11 @@ export function TopBar({
</div>
)}
</div>
<TrackersStillOnModal
isOpen={showConnectedTrackersWarning}
accept={() => closeApp()}
cancel={() => setConnectedTrackerWarning(false)}
></TrackersStillOnModal>
</>
);
}
@@ -0,0 +1,51 @@
import { useLocalization } from '@fluent/react';
import { BaseModal } from './commons/BaseModal';
import { Button } from './commons/Button';
import { Typography } from './commons/Typography';
export function TrackersStillOnModal({
isOpen = true,
cancel,
accept,
}: {
/**
* Is the parent/sibling component opened?
*/
isOpen: boolean;
/**
* Function to trigger when you still want to close the app
*/
accept: () => void;
/**
* Function to trigger when cancelling app close
*/
cancel?: () => void;
}) {
const { l10n } = useLocalization();
return (
<BaseModal isOpen={isOpen} onRequestClose={cancel}>
<div className="flex flex-col gap-3">
<>
<div className="flex flex-col items-center gap-3 fill-accent-background-20">
<div className="flex flex-col items-center gap-2">
<Typography variant="main-title">
{l10n.getString('trackers_still_on-modal-title')}
</Typography>
<Typography variant="standard">
{l10n.getString('trackers_still_on-modal-description')}
</Typography>
</div>
</div>
<Button variant="primary" onClick={accept}>
{l10n.getString('trackers_still_on-modal-confirm')}
</Button>
<Button variant="tertiary" onClick={cancel}>
{l10n.getString('trackers_still_on-modal-cancel')}
</Button>
</>
</div>
</BaseModal>
);
}
+20 -5
View File
@@ -1,6 +1,11 @@
import { useLocalization } from '@fluent/react';
import { useState } from 'react';
import { SetPauseTrackingRequestT, RpcMessage } from 'solarxr-protocol';
import {
SetPauseTrackingRequestT,
RpcMessage,
TrackingPauseStateResponseT,
TrackingPauseStateRequestT,
} from 'solarxr-protocol';
import { useWebsocketAPI } from '@/hooks/websocket-api';
import { BigButton } from './commons/BigButton';
import { PlayIcon } from './commons/icon/PlayIcon';
@@ -10,16 +15,26 @@ export function TrackingPauseButton(
props: React.HTMLAttributes<HTMLButtonElement>
) {
const { l10n } = useLocalization();
const { sendRPCPacket } = useWebsocketAPI();
const { useRPCPacket, sendRPCPacket } = useWebsocketAPI();
const [trackingPause, setTrackingPause] = useState(false);
const toggleTracking = () => {
const pause = new SetPauseTrackingRequestT();
pause.pauseTracking = !trackingPause;
setTrackingPause(pause.pauseTracking);
const pause = new SetPauseTrackingRequestT(!trackingPause);
sendRPCPacket(RpcMessage.SetPauseTrackingRequest, pause);
};
useRPCPacket(
RpcMessage.TrackingPauseStateResponse,
(data: TrackingPauseStateResponseT) => {
setTrackingPause(data.trackingPaused);
}
);
sendRPCPacket(
RpcMessage.TrackingPauseStateRequest,
new TrackingPauseStateRequestT()
);
return (
<BigButton
text={l10n.getString(
+4
View File
@@ -19,6 +19,7 @@ import { parseStatusToLocale, useStatusContext } from '@/hooks/status-system';
import { useWebsocketAPI } from '@/hooks/websocket-api';
import { useAppContext } from '@/hooks/app';
import { ClearMountingButton } from './ClearMountingButton';
import { ToggleableSkeletonVisualizerWidget } from './widgets/SkeletonVisualizerWidget';
export function WidgetsComponent() {
const { config } = useConfig();
@@ -58,6 +59,9 @@ export function WidgetsComponent() {
<div className="w-full">
<OverlayWidget></OverlayWidget>
</div>
<div className="mb-2">
<ToggleableSkeletonVisualizerWidget height={400} />
</div>
<div className="w-full flex flex-col gap-3 mb-2">
{unprioritizedStatuses.map((status) => (
<Localized
@@ -33,6 +33,8 @@ export const mapPart: Record<
[BodyPart.CHEST]: ({ width }) => <ChestIcon width={width}></ChestIcon>,
[BodyPart.HEAD]: ({ width }) => <HeadsetIcon width={width}></HeadsetIcon>,
[BodyPart.HIP]: ({ width }) => <HipIcon width={width}></HipIcon>,
[BodyPart.LEFT_HIP]: ({ width }) => <HipIcon width={width}></HipIcon>, // Unused
[BodyPart.RIGHT_HIP]: ({ width }) => <HipIcon width={width}></HipIcon>, // Unused
[BodyPart.LEFT_FOOT]: ({ width, currentLocales }) =>
currentLocales.includes('en-x-owo') ? (
<PawIcon></PawIcon>
+1 -1
View File
@@ -47,7 +47,7 @@ export function Button({
rounded = false,
...props
}: {
children: ReactNode;
children?: ReactNode;
icon?: ReactNode;
variant: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
to?: string;
+9 -2
View File
@@ -5,6 +5,7 @@ import { Control, Controller } from 'react-hook-form';
export function CheckBox({
label,
variant = 'checkbox',
color = 'primary',
control,
outlined,
name,
@@ -16,6 +17,7 @@ export function CheckBox({
control: Control<any>;
name: string;
variant?: 'checkbox' | 'toggle';
color?: 'primary' | 'secondary' | 'tertiary';
outlined?: boolean;
} & React.HTMLProps<HTMLInputElement>) {
const classes = useMemo(() => {
@@ -44,8 +46,11 @@ export function CheckBox({
<div
className={classNames(
{
'bg-background-60 rounded-lg text-background-10': outlined,
'rounded-lg': outlined,
'text-background-30': !outlined,
'bg-background-60': outlined && color === 'primary',
'bg-background-70': outlined && color === 'secondary',
'bg-background-50': outlined && color === 'tertiary',
},
'flex items-center gap-2 w-full'
)}
@@ -72,7 +77,9 @@ export function CheckBox({
<div
className={classNames(classes.toggle, {
'bg-accent-background-30': value,
'bg-background-50': !value,
'bg-background-50':
(!value && color == 'primary') || color == 'secondary',
'bg-background-40': !value && color == 'tertiary',
})}
>
<div
+178 -169
View File
@@ -1,12 +1,33 @@
import classNames from 'classnames';
import { useEffect, useState } from 'react';
import {
Control,
Controller,
UseFormGetValues,
useWatch,
} from 'react-hook-form';
import { useEffect, useRef, useState } from 'react';
import { Control, Controller, UseControllerProps } from 'react-hook-form';
import { a11yClick } from '@/utils/a11y';
import { createPortal } from 'react-dom';
import { useElemSize } from '@/hooks/layout';
import { ArrowDownIcon } from './icon/ArrowIcons';
interface DropdownProps {
direction?: DropdownDirection;
variant?: 'primary' | 'secondary' | 'tertiary';
alignment?: 'right' | 'left';
display?: 'fit' | 'block';
placeholder: string;
control: Control<any>;
name: string;
items: DropdownItem[];
maxHeight?: string | number;
rules?: UseControllerProps<any>['rules'];
}
type DropdownItemsProps = Pick<
DropdownProps,
'direction' | 'variant' | 'alignment' | 'display' | 'items' | 'maxHeight'
> & {
onSelectItem: (item: DropdownItem) => void;
onBackdropClick: () => void;
value: string;
dropdownBounds: DOMRect;
};
export interface DropdownItem {
label: string;
@@ -16,200 +37,188 @@ export interface DropdownItem {
export type DropdownDirection = 'up' | 'down';
export function DropdownItems({
display,
direction,
variant,
alignment,
items,
maxHeight,
value,
dropdownBounds,
onSelectItem,
onBackdropClick,
}: DropdownItemsProps) {
const { height, width, ref } = useElemSize<HTMLDivElement>();
const GAP = 8;
return (
<>
<div
className="z-[999] fixed top-0 w-full h-full"
onClick={onBackdropClick}
></div>
<div
ref={ref}
className={classNames(
'z-[1000] fixed rounded shadow',
'overflow-y-auto dropdown-scroll overflow-x-hidden text-background-10',
variant == 'primary' && 'bg-background-60',
variant == 'secondary' && 'bg-background-70',
variant == 'tertiary' && 'bg-accent-background-30',
height == 0 && 'opacity-0' // Avoid flicker while the component find its position
)}
style={{
maxHeight: maxHeight,
left:
alignment === 'left'
? dropdownBounds.left
: dropdownBounds.left + dropdownBounds.width - width,
top:
direction == 'down'
? dropdownBounds.bottom + GAP
: dropdownBounds.top - height - GAP,
minWidth: display === 'block' ? dropdownBounds.width : 'inherit',
}}
>
<ul className="py-1 text-sm flex flex-col">
{items.map((item) => (
<li
style={item.fontName ? { fontFamily: item.fontName } : {}}
className={classNames(
'py-2 px-4 min-w-max cursor-pointer',
variant == 'primary' &&
'checked-hover:bg-background-50 text-background-20 ' +
'checked-hover:text-background-10',
variant == 'secondary' &&
'checked-hover:bg-background-60 text-background-20 ' +
'checked-hover:text-background-10',
variant == 'tertiary' &&
'bg-accent-background-30 checked-hover:bg-accent-background-20'
)}
onClick={() => {
onSelectItem(item);
}}
onKeyDown={(ev) => {
if (!a11yClick(ev)) return;
onSelectItem(item);
}}
key={item.value}
tabIndex={0}
data-checked={item.value === value}
>
{item.label}
</li>
))}
</ul>
</div>
</>
);
}
export function Dropdown({
direction = 'up',
variant = 'primary',
alignment = 'right',
display = 'fit',
maxHeight = '50vh',
placeholder,
control,
getValues,
rules,
name,
items = [],
}: {
direction?: DropdownDirection;
variant?: 'primary' | 'secondary' | 'tertiary';
alignment?: 'right' | 'left';
display?: 'fit' | 'block';
placeholder: string;
control: Control<any>;
getValues: UseFormGetValues<any>;
name: string;
items: DropdownItem[];
}) {
const itemRefs: Record<string, HTMLLIElement> = {};
const [isOpen, setOpen] = useState(false);
const formValue = {
...{ value: useWatch({ control, name }) as string },
...{ value: getValues(name) as string },
}: DropdownProps) {
const ref = useRef<HTMLDivElement | null>(null);
const [isOpen, setOpenState] = useState(false);
const [dropdownBounds, setDropdownBounds] = useState<DOMRect>();
const updateBounds = () => {
if (!ref.current) return;
setDropdownBounds(ref.current?.getBoundingClientRect());
};
const onResize = () => {
// We could have two behaviours here:
// 1 - We update the bounds of the dropdown so the size and position match.
// Works but have a slight delay when resizing, kinda looks laggy
// 2 - We close the dropdown on resize.
// We could consider this as the same as clicking outside of the dropdown
// This is the approach choosen RN
setOpen(false);
};
useEffect(() => {
if (!isOpen) return;
const curItem = itemRefs[formValue.value];
const dropdownParent = curItem
? (curItem.closest('.dropdown-scroll') as HTMLElement | null)
: null;
if (curItem && dropdownParent) {
dropdownParent.scroll({
top: curItem.offsetTop - dropdownParent.offsetHeight / 2,
});
}
function onWheelEvent() {
if (isOpen && !document.querySelector('div.dropdown-scroll:hover')) {
setOpen(false);
}
}
function onTouchEvent(event: TouchEvent) {
// Check if we touch scroll outside of the dropdown
if (
isOpen &&
!document
.querySelector('div.dropdown-scroll')
?.contains(event.target as HTMLDivElement)
) {
setOpen(false);
}
}
function onClick(event: MouseEvent) {
const isInDropdownScroll = document
.querySelector('div.dropdown-scroll')
?.contains(event.target as HTMLDivElement);
const isInDropdown = !!(event.target as HTMLDivElement).closest(
'.dropdown'
);
if (isOpen && !isInDropdownScroll && !isInDropdown) {
setOpen(false);
}
}
document.addEventListener('click', onClick, false);
document.addEventListener('touchmove', onTouchEvent, false);
// TS doesn't let me specify { passive: true }, but I believe it will work anyways
document.addEventListener('wheel', onWheelEvent, { passive: true });
window.addEventListener('resize', onResize);
return () => {
document.removeEventListener('wheel', onWheelEvent);
document.removeEventListener('click', onClick);
document.removeEventListener('touchmove', onTouchEvent);
window.removeEventListener('resize', onResize);
};
}, [isOpen]);
}, []);
const setOpen = (open: boolean | ((prevState: boolean) => boolean)) => {
updateBounds();
setOpenState(open);
};
return (
<Controller
control={control}
name={name}
rules={rules}
render={({ field: { onChange, value } }) => (
<>
{isOpen && (
<div
className="absolute top-0 left-0 w-full h-full bg-transparent"
onClick={() => setOpen(false)}
></div>
)}
<div
ref={ref}
className={classNames(
'relative',
'min-h-[42px] text-background-10 px-5 py-3 rounded-md focus:ring-4 text-center dropdown',
'flex cursor-pointer',
variant == 'primary' && 'bg-background-60 hover:bg-background-50',
variant == 'secondary' &&
'bg-background-70 hover:bg-background-60',
variant == 'tertiary' &&
'bg-accent-background-30 hover:bg-accent-background-20',
display === 'fit' && 'w-fit',
display === 'block' && 'w-full'
)}
onClick={() => setOpen((open) => !open)}
onKeyDown={(ev) => a11yClick(ev) && setOpen((open) => !open)}
tabIndex={0}
>
<div className="flex-grow text-standard">
{items.find((i) => i.value == value)?.label || placeholder}
</div>
<div
className={classNames(
'min-h-[35px] text-background-10 px-5 py-2.5 rounded-md focus:ring-4 text-center dropdown',
'flex cursor-pointer',
variant == 'primary' &&
'bg-background-60 hover:bg-background-50',
variant == 'secondary' &&
'bg-background-70 hover:bg-background-60',
variant == 'tertiary' &&
'bg-accent-background-30 hover:bg-accent-background-20'
'ml-2 fill-background-10',
direction == 'up' && 'rotate-180',
direction == 'down' && 'rotate-0'
)}
onClick={() => setOpen((open) => !open)}
onKeyDown={(ev) => a11yClick(ev) && setOpen((open) => !open)}
tabIndex={0}
>
<div className="flex-grow text-standard">
{items.find((i) => i.value == value)?.label || placeholder}
</div>
<div
className={classNames(
'ml-2',
direction == 'up' && 'rotate-180',
direction == 'down' && 'rotate-0'
)}
>
<svg
className="justify-end w-4 h-4 "
aria-hidden="true"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M19 9l-7 7-7-7"
></path>
</svg>
</div>
<ArrowDownIcon size={16}></ArrowDownIcon>
</div>
{isOpen && (
<div
className={classNames(
'absolute z-10 rounded shadow min-w-max max-h-[50vh]',
'overflow-y-auto dropdown-scroll overflow-x-hidden',
display === 'fit' && 'w-fit',
display === 'block' && 'w-full',
direction === 'up' && 'bottom-[45px]',
direction === 'down' && 'top-[45px]',
variant == 'primary' && 'bg-background-60',
variant == 'secondary' && 'bg-background-70',
variant == 'tertiary' && 'bg-accent-background-30',
alignment === 'right' && 'right-0',
alignment === 'left' && 'left-0'
)}
>
<ul className="py-1 text-sm flex flex-col">
{items.map((item) => (
<li
style={item.fontName ? { fontFamily: item.fontName } : {}}
className={classNames(
'py-2 px-4 min-w-max cursor-pointer',
variant == 'primary' &&
'checked-hover:bg-background-50 text-background-20 ' +
'checked-hover:text-background-10',
variant == 'secondary' &&
'checked-hover:bg-background-60 text-background-20 ' +
'checked-hover:text-background-10',
variant == 'tertiary' &&
'bg-accent-background-30 checked-hover:bg-accent-background-20'
)}
onClick={() => {
onChange(item.value);
setOpen(false);
}}
onKeyDown={(ev) => {
if (!a11yClick(ev)) return;
onChange(item.value);
setOpen(false);
}}
ref={(ref) => (ref ? (itemRefs[item.value] = ref) : {})}
key={item.value}
tabIndex={0}
data-checked={item.value === value}
>
{item.label}
</li>
))}
</ul>
</div>
)}
</div>
{isOpen &&
dropdownBounds &&
createPortal(
<DropdownItems
items={items}
dropdownBounds={dropdownBounds}
direction={direction}
display={display}
alignment={alignment}
maxHeight={maxHeight}
variant={variant}
value={value}
onSelectItem={(item) => {
setOpen(false);
onChange(item.value);
}}
onBackdropClick={() => {
setOpen(false);
}}
></DropdownItems>,
document.body
)}
</>
)}
/>
+53 -9
View File
@@ -1,6 +1,11 @@
import classNames from 'classnames';
import { forwardRef, MouseEvent, useMemo, useState } from 'react';
import { Control, Controller, UseControllerProps } from 'react-hook-form';
import {
Control,
Controller,
FieldError,
UseControllerProps,
} from 'react-hook-form';
import { EyeIcon } from './icon/EyeIcon';
interface InputProps {
@@ -14,6 +19,7 @@ export const InputInside = forwardRef<
{
variant?: 'primary' | 'secondary' | 'tertiary';
label?: string;
error?: FieldError;
onChange: () => void;
} & Partial<HTMLInputElement>
>(function AppInput(
@@ -21,10 +27,12 @@ export const InputInside = forwardRef<
type,
placeholder,
label,
disabled,
autocomplete,
name,
onChange,
value,
error,
variant = 'primary',
},
ref
@@ -38,16 +46,40 @@ export const InputInside = forwardRef<
const classes = useMemo(() => {
const variantsMap = {
primary: classNames('bg-background-60 border-background-60'),
secondary: classNames('bg-background-50 border-background-50'),
tertiary: classNames('bg-background-40 border-background-40'),
primary: classNames({
'placeholder:text-background-30 bg-background-60 border-background-60':
!disabled,
'text-background-30 placeholder:text-background-30 border-background-70 bg-background-70':
disabled,
}),
secondary: classNames({
'placeholder:text-background-30 bg-background-50 border-background-50':
!disabled,
'text-background-40 placeholder:text-background-40 border-background-70 bg-background-70':
disabled,
}),
tertiary: classNames({
'placeholder:text-background-30 bg-background-40 border-background-40':
!disabled,
'text-background-30 placeholder:text-background-30 border-background-70 bg-background-70':
disabled,
}),
};
return classNames(
variantsMap[variant],
'w-full focus:ring-transparent focus:ring-offset-transparent focus:outline-transparent rounded-md focus:border-accent-background-40 placeholder:text-background-30 text-standard relative'
'w-full focus:ring-transparent focus:ring-offset-transparent min-h-[42px] z-10',
'focus:outline-transparent rounded-md focus:border-accent-background-40',
'text-standard relative transition-colors',
error && 'border-status-critical border-1'
);
}, [variant]);
}, [variant, disabled, error]);
const computedValue = disabled
? placeholder
: value !== undefined
? value
: '';
return (
<label className="flex flex-col gap-1">
@@ -60,7 +92,8 @@ export const InputInside = forwardRef<
autoComplete={autocomplete ? 'off' : 'on'}
onChange={onChange}
name={name}
value={value || ''}
value={computedValue} // Do we want that behaviour ?
disabled={disabled}
ref={ref}
></input>
{type === 'password' && (
@@ -71,18 +104,24 @@ export const InputInside = forwardRef<
<EyeIcon></EyeIcon>
</div>
)}
{error?.message && (
<div className="absolute top-[38px] z-0 pt-1.5 bg-background-70 px-1 w-full rounded-b-md text-status-critical">
{error.message}
</div>
)}
</div>
</label>
);
});
export const Input = ({
type,
type = 'text',
control,
name,
placeholder,
label,
autocomplete,
disabled,
variant = 'primary',
rules,
}: {
@@ -95,7 +134,10 @@ export const Input = ({
control={control}
name={name}
rules={rules}
render={({ field: { onChange, value, ref, name } }) => (
render={({
field: { onChange, value, ref, name },
fieldState: { error },
}) => (
<InputInside
type={type}
autocomplete={autocomplete}
@@ -103,6 +145,8 @@ export const Input = ({
placeholder={placeholder}
variant={variant}
value={value}
disabled={disabled}
error={error}
onChange={onChange}
ref={ref}
name={name}
+3 -6
View File
@@ -15,11 +15,9 @@ export function LangSelector({
const { changeLocales } = useContext(LangContext);
const { l10n } = useLocalization();
const { config, setConfig } = useConfig();
const { control, watch, handleSubmit, getValues } = useForm<{ lang: string }>(
{
defaultValues: { lang: config?.lang || 'en' },
}
);
const { control, watch, handleSubmit } = useForm<{ lang: string }>({
defaultValues: { lang: config?.lang || 'en' },
});
const languagesItems = useMemo(
() => langs.map(({ key, name }) => ({ label: name, value: key })),
@@ -39,7 +37,6 @@ export function LangSelector({
return (
<Dropdown
control={control}
getValues={getValues}
name="lang"
placeholder={l10n.getString(
'settings-general-interface-lang-placeholder'
+12 -13
View File
@@ -7,7 +7,7 @@ export function Radio({
name,
label,
value,
desciption,
description,
// input props
disabled,
...props
@@ -15,8 +15,8 @@ export function Radio({
control: Control<any>;
name: string;
label: string;
value: string | number;
desciption?: string | null;
value: string;
description?: string | null;
} & React.HTMLProps<HTMLInputElement>) {
return (
<Controller
@@ -24,14 +24,12 @@ export function Radio({
name={name}
render={({ field: { onChange, ref, name, value: checked } }) => (
<label
className={classNames(
'w-full bg-background-60 p-3 rounded-md flex gap-3 border-2',
{
'border-accent-background-30': value == checked,
'border-transparent': value != checked,
'cursor-pointer': !disabled,
}
)}
className={classNames('w-full p-3 rounded-md flex gap-3 border-2', {
'border-accent-background-30': value == checked,
'border-transparent': value != checked,
'bg-background-60 cursor-pointer': !disabled,
'bg-background-80 cursor-not-allowed': disabled,
})}
>
<input
type="radio"
@@ -43,14 +41,15 @@ export function Radio({
ref={ref}
onChange={onChange}
value={value}
disabled={disabled}
checked={value == checked}
{...props}
/>
<div className="flex flex-col gap-2">
<Typography bold>{label}</Typography>
{desciption && (
{description && (
<Typography variant="standard" color="secondary">
{desciption}
{description}
</Typography>
)}
</div>
+1 -1
View File
@@ -13,7 +13,7 @@ export function ThemeSelector({
control: Control<any>;
name: string;
colors: string | undefined;
value: string | number;
value: string;
} & React.HTMLProps<HTMLInputElement>) {
return (
<Controller
+11 -2
View File
@@ -8,6 +8,7 @@ export function Typography({
whitespace = 'whitespace-normal',
children,
italic = false,
textAlign,
}: {
variant?:
| 'main-title'
@@ -25,7 +26,14 @@ export function Typography({
| 'whitespace-pre'
| 'whitespace-pre-line'
| 'whitespace-pre-wrap';
children: ReactNode;
textAlign?:
| 'text-left'
| 'text-center'
| 'text-right'
| 'text-justify'
| 'text-start'
| 'text-end';
children?: ReactNode;
}) {
const tag = useMemo(() => {
const tags = {
@@ -55,9 +63,10 @@ export function Typography({
color === 'secondary' && 'text-background-30',
typeof color === 'string' && color,
whitespace,
textAlign,
italic && 'italic',
]),
},
children
children || []
);
}
@@ -13,7 +13,7 @@ export function ArrowDownIcon({ size = 24 }: { size?: number }) {
);
}
export function ArrowUpIcon({ size = 24 }: { size: number }) {
export function ArrowUpIcon({ size = 24 }: { size?: number }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
@@ -7,8 +7,10 @@ export enum SlimeState {
export function LoaderIcon({
slimeState = SlimeState.HAPPY,
size = 85,
}: {
slimeState: SlimeState;
size?: number | string;
}) {
return (
<>
@@ -16,28 +18,28 @@ export function LoaderIcon({
hidden={slimeState !== SlimeState.JUMPY}
src="/images/jumping-slime.gif"
alt="Slime jumping"
width="85"
width={size}
// className="crisp-edges"
></img>
<img
hidden={slimeState !== SlimeState.HAPPY}
src="/images/happy-slime.gif"
alt="Happy slime"
width="85"
width={size}
// className="crisp-edges"
></img>
<img
hidden={slimeState !== SlimeState.SAD}
src="/images/sad-slime.gif"
alt="Sad slime"
width="85"
width={size}
// className="crisp-edges"
></img>
<img
hidden={slimeState !== SlimeState.CURIOUS}
src="/images/curious-slime.gif"
alt="Slime looking for something"
width="85"
width={size}
// className="crisp-edges"
></img>
</>
@@ -1,10 +1,10 @@
export function TrashIcon({ width = 33 }: { width: number }) {
export function TrashIcon({ size = 33 }: { size?: number }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width={width}
height="29"
width={size}
height={size}
>
<path
fillRule="evenodd"
@@ -10,6 +10,7 @@ import {
import { useElemSize } from '@/hooks/layout';
import { CheckIcon } from '@/components/commons/icon/CheckIcon';
import { Typography } from '@/components/commons/Typography';
import { useDebouncedEffect } from '@/hooks/timeout';
type StepComponentType = FC<{
nextStep: () => void;
@@ -99,6 +100,7 @@ export function StepperSlider({
const ref = useRef<HTMLDivElement | null>(null);
const { width } = useElemSize(ref);
const [stepsContainers, setSteps] = useState(0);
const [shouldAnimate, setShouldAnimate] = useState(true);
const [step, setStep] = useState(0);
useEffect(() => {
@@ -122,11 +124,26 @@ export function StepperSlider({
setStep(0);
};
useEffect(() => {
setShouldAnimate(false);
}, [width]);
// Make it so if you resize the window it wont try to move the slide with an animation
useDebouncedEffect(
() => {
setShouldAnimate(true);
},
[width],
500
);
return (
<div className="w-full flex flex-col gap-4">
<div className="w-full flex" ref={ref}>
<div
className="transition-transform duration-500 flex gap-8"
className={classNames('flex gap-8', {
'transition-transform duration-500 ': shouldAnimate,
})}
style={{ transform: `translateX(-${(width + 32) * step}px)` }}
>
{steps.map(({ type, component: StepComponent }, index) => (
@@ -4,12 +4,12 @@ import { useOnboarding } from '@/hooks/onboarding';
import { useWebsocketAPI } from '@/hooks/websocket-api';
import { Button } from '@/components/commons/Button';
import { CheckBox } from '@/components/commons/Checkbox';
import { PersonFrontIcon } from '@/components/commons/PersonFrontIcon';
import { Typography } from '@/components/commons/Typography';
import { BodyProportions } from './BodyProportions';
import { useLocalization } from '@fluent/react';
import { useEffect, useMemo } from 'react';
import { useBreakpoint } from '@/hooks/breakpoint';
import { SkeletonVisualizerWidget } from '@/components/widgets/SkeletonVisualizerWidget';
export function ButtonsControl() {
const { l10n } = useLocalization();
@@ -101,7 +101,7 @@ export function ManualProportionsPage() {
</div>
</div>
<div className="flex-col flex-grow gap-3 rounded-xl fill-background-50 items-center hidden md:flex">
<PersonFrontIcon width={200}></PersonFrontIcon>
<SkeletonVisualizerWidget height="65vh" maxHeight={600} />
</div>
</div>
{!isMobile && (
@@ -244,7 +244,7 @@ export function ProportionsChoose() {
</div>
<div>
<Localized
id="onboarding-choose_proportions-auto_proportions-descriptionv2"
id="onboarding-choose_proportions-auto_proportions-descriptionv3"
elems={{ b: <b></b> }}
>
<Typography
@@ -1,6 +1,7 @@
import { Typography } from '@/components/commons/Typography';
import { useLocalization } from '@fluent/react';
import { Button } from '@/components/commons/Button';
import { SkeletonVisualizerWidget } from '@/components/widgets/SkeletonVisualizerWidget';
export function DoneStep({ variant }: { variant: 'onboarding' | 'alone' }) {
const { l10n } = useLocalization();
@@ -16,13 +17,14 @@ export function DoneStep({ variant }: { variant: 'onboarding' | 'alone' }) {
</Typography>
</div>
<div className="flex">
<div className="flex gap-3">
{variant === 'onboarding' && (
<Button variant="primary" to="/onboarding/done">
{l10n.getString('onboarding-continue')}
</Button>
)}
</div>
<SkeletonVisualizerWidget />
</div>
);
}
@@ -26,7 +26,7 @@ export function RequirementsStep({
<>
{l10n
.getString(
'onboarding-automatic_proportions-requirements-description'
'onboarding-automatic_proportions-requirements-descriptionv2'
)
.split('\n')
.map((line, i) => (
@@ -1,4 +1,4 @@
import { useMemo, useState } from 'react';
import { useEffect, useMemo, useState } from 'react';
import { AssignTrackerRequestT, BodyPart, RpcMessage } from 'solarxr-protocol';
import { FlatDeviceTracker } from '@/hooks/app';
import { useOnboarding } from '@/hooks/onboarding';
@@ -13,12 +13,14 @@ import { MountingSelectionMenu } from './MountingSelectionMenu';
import { useLocalization } from '@fluent/react';
import { useBreakpoint } from '@/hooks/breakpoint';
import { Quaternion } from 'three';
import { useConfig } from '@/hooks/config';
export function ManualMountingPage() {
const { isMobile } = useBreakpoint('mobile');
const { l10n } = useLocalization();
const { applyProgress, state } = useOnboarding();
const { sendRPCPacket } = useWebsocketAPI();
const { setConfig } = useConfig();
const [selectedRole, setSelectRole] = useState<BodyPart>(BodyPart.NONE);
@@ -27,6 +29,10 @@ export function ManualMountingPage() {
const { useAssignedTrackers } = useTrackers();
const assignedTrackers = useAssignedTrackers();
useEffect(() => {
setConfig({ doneManualMounting: true });
}, []);
const trackerPartGrouped = useMemo(
() =>
assignedTrackers.reduce<{ [key: number]: FlatDeviceTracker[] }>(
@@ -5,12 +5,18 @@ import { SkipSetupWarningModal } from '@/components/onboarding/SkipSetupWarningM
import classNames from 'classnames';
import { Typography } from '@/components/commons/Typography';
import { Button } from '@/components/commons/Button';
import { TryManualFirstModal } from './TryManualFirstModal';
import { useConfig } from '@/hooks/config';
import { useNavigate } from 'react-router';
export function MountingChoose() {
const { l10n } = useLocalization();
const { applyProgress, skipSetup, state } = useOnboarding();
const navigate = useNavigate();
const { config, setConfig } = useConfig();
const [animated, setAnimated] = useState(false);
const [skipWarning, setSkipWarning] = useState(false);
const [manualModal, setManualModal] = useState(false);
applyProgress(0.65);
@@ -66,7 +72,16 @@ export function MountingChoose() {
</div>
<Button
variant={!state.alonePage ? 'secondary' : 'tertiary'}
to="/onboarding/mounting/auto"
to={
config?.doneManualMounting
? '/onboarding/mounting/auto'
: undefined
}
onClick={
!config?.doneManualMounting
? () => setManualModal(true)
: undefined
}
className="self-start mt-auto"
state={{ alonePage: state.alonePage }}
>
@@ -137,6 +152,14 @@ export function MountingChoose() {
)}
</div>
</div>
<TryManualFirstModal
isOpen={manualModal}
accept={() => {
setConfig({ doneManualMounting: true });
navigate('/onboarding/mounting/auto');
}}
cancel={() => setManualModal(false)}
></TryManualFirstModal>
<SkipSetupWarningModal
accept={skipSetup}
onClose={() => setSkipWarning(false)}
@@ -28,6 +28,8 @@ export const mapPart: Record<
[BodyPart.CHEST]: ({ width }) => <FootIcon width={width}></FootIcon>,
[BodyPart.HEAD]: ({ width }) => <FootIcon width={width}></FootIcon>,
[BodyPart.HIP]: ({ width }) => <FootIcon width={width}></FootIcon>,
[BodyPart.LEFT_HIP]: ({ width }) => <FootIcon width={width}></FootIcon>, // Unused
[BodyPart.RIGHT_HIP]: ({ width }) => <FootIcon width={width}></FootIcon>, // Unused
[BodyPart.LEFT_FOOT]: ({ width, currentLocales }) =>
currentLocales.includes('en-x-owo') ? (
<PawIcon
@@ -0,0 +1,64 @@
import { BaseModal } from '@/components/commons/BaseModal';
import { Button } from '@/components/commons/Button';
import { Typography } from '@/components/commons/Typography';
import { Localized, useLocalization } from '@fluent/react';
export function TryManualFirstModal({
isOpen = true,
cancel,
accept,
}: {
/**
* Is the parent/sibling component opened?
*/
isOpen: boolean;
/**
* Function to trigger when they want to do automatic anyways
*/
accept: () => void;
/**
* Function to trigger when they agree to do manual
*/
cancel?: () => void;
}) {
const { l10n } = useLocalization();
return (
<BaseModal isOpen={isOpen} onRequestClose={cancel}>
<div className="flex flex-col gap-3">
<>
<div className="flex flex-col items-center gap-3 fill-accent-background-20">
<div className="flex flex-col items-center gap-2">
<Typography
variant="main-title"
whitespace="whitespace-pre"
textAlign="text-center"
>
{l10n.getString(
'onboarding-choose_mounting-manual_modal-title'
)}
</Typography>
<div className="w-[30vw] min-w-fit">
<Localized
id="onboarding-choose_mounting-manual_modal-description"
elems={{ b: <b></b> }}
>
<Typography variant="standard">
You should do manual mounting first!
</Typography>
</Localized>
</div>
</div>
</div>
<Button variant="primary" onClick={accept}>
{l10n.getString('onboarding-choose_mounting-manual_modal-confirm')}
</Button>
<Button variant="tertiary" onClick={cancel}>
{l10n.getString('onboarding-choose_mounting-manual_modal-cancel')}
</Button>
</>
</div>
</BaseModal>
);
}
@@ -1,5 +1,6 @@
import { Button } from '@/components/commons/Button';
import { Typography } from '@/components/commons/Typography';
import { SkeletonVisualizerWidget } from '@/components/widgets/SkeletonVisualizerWidget';
import { useLocalization } from '@fluent/react';
export function DoneStep({
@@ -38,6 +39,8 @@ export function DoneStep({
</Button>
)}
</div>
<SkeletonVisualizerWidget />
</div>
);
}
@@ -42,7 +42,7 @@ export function SettingSelectorMobile() {
},
];
const { control, watch, handleSubmit, setValue, getValues } = useForm<{
const { control, watch, handleSubmit, setValue } = useForm<{
link: string;
}>({
defaultValues: { link: links[0].value.url },
@@ -69,7 +69,6 @@ export function SettingSelectorMobile() {
<div className="fixed top-12 z-50 px-4 w-full">
<Dropdown
control={control}
getValues={getValues}
display="block"
items={links.map(({ label, value: { url: value } }) => ({
label,
@@ -479,10 +479,10 @@ export function GeneralSettings() {
label={l10n.getString(
'settings-general-tracker_mechanics-filtering-type-none'
)}
desciption={l10n.getString(
description={l10n.getString(
'settings-general-tracker_mechanics-filtering-type-none-description'
)}
value={FilteringType.NONE}
value={FilteringType.NONE.toString()}
></Radio>
<Radio
control={control}
@@ -490,10 +490,10 @@ export function GeneralSettings() {
label={l10n.getString(
'settings-general-tracker_mechanics-filtering-type-smoothing'
)}
desciption={l10n.getString(
description={l10n.getString(
'settings-general-tracker_mechanics-filtering-type-smoothing-description'
)}
value={FilteringType.SMOOTHING}
value={FilteringType.SMOOTHING.toString()}
></Radio>
<Radio
control={control}
@@ -501,10 +501,10 @@ export function GeneralSettings() {
label={l10n.getString(
'settings-general-tracker_mechanics-filtering-type-prediction'
)}
desciption={l10n.getString(
description={l10n.getString(
'settings-general-tracker_mechanics-filtering-type-prediction-description'
)}
value={FilteringType.PREDICTION}
value={FilteringType.PREDICTION.toString()}
></Radio>
</div>
<div className="flex gap-5 pt-5 md:flex-row flex-col">
@@ -729,10 +729,10 @@ export function GeneralSettings() {
label={l10n.getString(
'settings-general-fk_settings-arm_fk-back'
)}
desciption={l10n.getString(
description={l10n.getString(
'settings-general-fk_settings-arm_fk-back-description'
)}
value={0}
value={'0'}
></Radio>
<Radio
control={control}
@@ -740,10 +740,10 @@ export function GeneralSettings() {
label={l10n.getString(
'settings-general-fk_settings-arm_fk-forward'
)}
desciption={l10n.getString(
description={l10n.getString(
'settings-general-fk_settings-arm_fk-forward-description'
)}
value={1}
value={'1'}
></Radio>
<Radio
control={control}
@@ -751,10 +751,10 @@ export function GeneralSettings() {
label={l10n.getString(
'settings-general-fk_settings-arm_fk-tpose_up'
)}
desciption={l10n.getString(
description={l10n.getString(
'settings-general-fk_settings-arm_fk-tpose_up-description'
)}
value={2}
value={'2'}
></Radio>
<Radio
control={control}
@@ -762,10 +762,10 @@ export function GeneralSettings() {
label={l10n.getString(
'settings-general-fk_settings-arm_fk-tpose_down'
)}
desciption={l10n.getString(
description={l10n.getString(
'settings-general-fk_settings-arm_fk-tpose_down-description'
)}
value={3}
value={'3'}
></Radio>
</div>
{config?.debug && (
@@ -1112,6 +1112,9 @@ export function GeneralSettings() {
<NumberSelector
control={control}
name="tapDetection.numberTrackersOverThreshold"
label={l10n.getString(
'settings-general-gesture_control-numberTrackersOverThreshold'
)}
valueLabelFormat={(value) =>
l10n.getString(
'settings-general-gesture_control-trackers',
@@ -28,6 +28,7 @@ interface InterfaceSettingsForm {
watchNewDevices: boolean;
feedbackSound: boolean;
feedbackSoundVolume: number;
connectedTrackersWarning: boolean;
};
}
@@ -35,24 +36,26 @@ export function InterfaceSettings() {
const { currentLocales } = useLocaleConfig();
const { l10n } = useLocalization();
const { config, setConfig } = useConfig();
const { control, watch, handleSubmit, getValues } =
useForm<InterfaceSettingsForm>({
defaultValues: {
appearance: {
devmode: config?.debug ?? defaultConfig.debug,
theme: config?.theme ?? defaultConfig.theme,
textSize: config?.textSize ?? defaultConfig.textSize,
fonts: config?.fonts.join(',') ?? defaultConfig.fonts.join(','),
},
notifications: {
watchNewDevices:
config?.watchNewDevices ?? defaultConfig.watchNewDevices,
feedbackSound: config?.feedbackSound ?? defaultConfig.feedbackSound,
feedbackSoundVolume:
config?.feedbackSoundVolume ?? defaultConfig.feedbackSoundVolume,
},
const { control, watch, handleSubmit } = useForm<InterfaceSettingsForm>({
defaultValues: {
appearance: {
devmode: config?.debug ?? defaultConfig.debug,
theme: config?.theme ?? defaultConfig.theme,
textSize: config?.textSize ?? defaultConfig.textSize,
fonts: config?.fonts.join(',') ?? defaultConfig.fonts.join(','),
},
});
notifications: {
watchNewDevices:
config?.watchNewDevices ?? defaultConfig.watchNewDevices,
feedbackSound: config?.feedbackSound ?? defaultConfig.feedbackSound,
feedbackSoundVolume:
config?.feedbackSoundVolume ?? defaultConfig.feedbackSoundVolume,
connectedTrackersWarning:
config?.connectedTrackersWarning ??
defaultConfig.connectedTrackersWarning,
},
},
});
const onSubmit = (values: InterfaceSettingsForm) => {
setConfig({
@@ -63,6 +66,7 @@ export function InterfaceSettings() {
theme: values.appearance.theme,
fonts: values.appearance.fonts.split(','),
textSize: values.appearance.textSize,
connectedTrackersWarning: values.notifications.connectedTrackersWarning,
});
};
@@ -151,6 +155,30 @@ export function InterfaceSettings() {
step={0.1}
/>
</div>
<Typography bold>
{l10n.getString(
'settings-general-interface-connected_trackers_warning'
)}
</Typography>
<div className="flex flex-col pt-1 pb-2">
<Typography color="secondary">
{l10n.getString(
'settings-general-interface-connected_trackers_warning-description'
)}
</Typography>
</div>
<div className="grid sm:grid-cols-2 pb-4">
<CheckBox
variant="toggle"
control={control}
outlined
name="notifications.connectedTrackersWarning"
label={l10n.getString(
'settings-general-interface-connected_trackers_warning-label'
)}
/>
</div>
</>
</SettingsPagePaneLayout>
@@ -254,7 +282,6 @@ export function InterfaceSettings() {
<div className="grid sm:grid-cols-2 pb-4">
<Dropdown
control={control}
getValues={getValues}
name="appearance.fonts"
placeholder={l10n.getString(
'settings-interface-appearance-font-placeholder'
+3 -6
View File
@@ -51,10 +51,9 @@ export function Serial() {
const [tryFactoryReset, setTryFactoryReset] = useState(false);
const { control, watch, handleSubmit, reset, getValues } =
useForm<SerialForm>({
defaultValues: { port: 'Auto' },
});
const { control, watch, handleSubmit, reset } = useForm<SerialForm>({
defaultValues: { port: 'Auto' },
});
const { port } = watch();
@@ -235,7 +234,6 @@ export function Serial() {
{isMobile && (
<Dropdown
control={control}
getValues={getValues}
name="port"
display="block"
placeholder={l10n.getString(
@@ -252,7 +250,6 @@ export function Serial() {
{!isMobile && (
<Dropdown
control={control}
getValues={getValues}
name="port"
display="fit"
placeholder={l10n.getString('settings-serial-serial_select')}
@@ -399,7 +399,7 @@ export function TrackerSettingsPage() {
type="text"
name="trackerName"
control={control}
autocomplete="false"
autocomplete="off"
rules={undefined}
label="Tracker name"
></Input>
@@ -11,6 +11,7 @@ const statusLabelMap: { [key: number]: string } = {
[TrackerStatusEnum.DISCONNECTED]: 'tracker-status-disconnected',
[TrackerStatusEnum.OCCLUDED]: 'tracker-status-occluded',
[TrackerStatusEnum.OK]: 'tracker-status-ok',
[TrackerStatusEnum.TIMED_OUT]: 'tracker-status-timed_out',
};
const statusClassMap: { [key: number]: string } = {
@@ -20,6 +21,7 @@ const statusClassMap: { [key: number]: string } = {
[TrackerStatusEnum.DISCONNECTED]: 'bg-background-30',
[TrackerStatusEnum.OCCLUDED]: 'bg-status-warning',
[TrackerStatusEnum.OK]: 'bg-status-success',
[TrackerStatusEnum.TIMED_OUT]: 'bg-status-warning',
};
export function TrackerStatus({ status }: { status: number }) {
+10
View File
@@ -1,6 +1,16 @@
import { useEffect } from 'react';
import { useBreakpoint } from '@/hooks/breakpoint';
import { WidgetsComponent } from '@/components/WidgetsComponent';
import { useNavigate } from 'react-router-dom';
export function VRModePage() {
const nav = useNavigate();
const { isMobile } = useBreakpoint('mobile');
useEffect(() => {
if (!isMobile) nav('/');
}, [isMobile]);
return (
<div className="p-2 flex flex-col gap-2 h-full">
<WidgetsComponent></WidgetsComponent>
@@ -3,24 +3,23 @@ import { TrackerDataT } from 'solarxr-protocol';
import { useTracker } from '@/hooks/tracker';
import { Typography } from '@/components/commons/Typography';
import { formatVector3 } from '@/utils/formatting';
import { Canvas, useLoader } from '@react-three/fiber';
import { Canvas } from '@react-three/fiber';
import * as THREE from 'three';
import { PerspectiveCamera, Vector3 } from 'three';
import { Button } from '@/components/commons/Button';
import { QuatObject } from '@/maths/quaternion';
import { useLocalization } from '@fluent/react';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import { Vector3Object } from '@/maths/vector3';
import { Gltf } from '@react-three/drei';
const groundColor = '#4444aa';
const scale = 6.5;
export function TrackerModel({ model }: { model: string }) {
const gltf = useLoader(GLTFLoader, model);
return (
<group scale={scale} rotation={[Math.PI / 2, 0, 0]}>
<primitive object={gltf.scene} />
<Gltf src={model} />
</group>
);
}
@@ -42,9 +41,14 @@ function SceneRenderer({
(camera as PerspectiveCamera).fov = 60;
}}
>
<ambientLight intensity={0.5} />
<spotLight position={[20, 20, 20]} angle={0.09} penumbra={1} />
<group quaternion={new THREE.Quaternion(quat.x, quat.y, quat.z, quat.w)}>
<ambientLight intensity={0.5 * Math.PI} />
<spotLight
position={[20, 20, 20]}
angle={0.09}
penumbra={1}
intensity={4000}
/>
<group quaternion={[quat.x, quat.y, quat.z, quat.w]}>
<TrackerModel model={model}></TrackerModel>
<axesHelper args={[10]} />
</group>
@@ -1,122 +1,214 @@
import { Canvas } from '@react-three/fiber';
import { Canvas, Object3DNode, extend, useThree } from '@react-three/fiber';
import { useAppContext } from '@/hooks/app';
import { Bone, PerspectiveCamera, Quaternion, Skeleton } from 'three';
import { getHelperFromSkeleton } from 'three/examples/jsm/utils/SkeletonUtils';
import { useMemo } from 'react';
import { Vector3FromVec3fT } from '@/maths/vector3';
import { QuaternionFromQuatT } from '@/maths/quaternion';
import { Bone } from 'three';
import { useMemo, useEffect, useRef, useState } from 'react';
import {
OrbitControls,
OrthographicCamera,
PerspectiveCamera,
} from '@react-three/drei';
import {
BoneKind,
createChildren,
BasedSkeletonHelper,
} from '@/utils/skeletonHelper';
import * as THREE from 'three';
import { BodyPart, BoneT } from 'solarxr-protocol';
import { QuaternionFromQuatT, isIdentity } from '@/maths/quaternion';
import classNames from 'classnames';
import { Button } from '@/components/commons/Button';
import { useLocalization } from '@fluent/react';
export const threeSkeleton = (() => {
const bones = [];
extend({ BasedSkeletonHelper });
const head = new Bone();
const neck = new Bone();
head.add(neck);
declare module '@react-three/fiber' {
interface ThreeElements {
basedSkeletonHelper: Object3DNode<
BasedSkeletonHelper,
typeof BasedSkeletonHelper
>;
}
}
const chest = new Bone();
neck.add(chest);
const waist = new Bone();
chest.add(waist);
const hip = new Bone();
waist.add(hip);
const GROUND_COLOR = '#4444aa';
const FRUSTUM_SIZE = 10;
const FACTOR = 2;
// Not currently used but nice to have
export function OrthographicCameraWrapper() {
const { size } = useThree();
const aspect = useMemo(() => size.width / size.height, [size]);
const leftShoulder = new Bone();
neck.add(leftShoulder);
const leftUpperArm = new Bone();
leftShoulder.add(leftUpperArm);
const leftLowerArm = new Bone();
leftUpperArm.add(leftLowerArm);
const leftHand = new Bone();
leftLowerArm.add(leftHand);
return (
<OrthographicCamera
makeDefault
zoom={200}
top={FRUSTUM_SIZE / FACTOR}
bottom={FRUSTUM_SIZE / -FACTOR}
left={(0.5 * FRUSTUM_SIZE * aspect) / -FACTOR}
right={(0.5 * FRUSTUM_SIZE * aspect) / FACTOR}
near={0.1}
far={1000}
position={[25, 75, 50]}
/>
);
}
const rightShoulder = new Bone();
neck.add(rightShoulder);
const rightUpperArm = new Bone();
rightShoulder.add(rightUpperArm);
const rightLowerArm = new Bone();
rightUpperArm.add(rightLowerArm);
const rightHand = new Bone();
rightLowerArm.add(rightHand);
export function SkeletonHelper({ object }: { object: Bone }) {
const { size } = useThree();
const res = useMemo(() => new THREE.Vector2(size.width, size.height), [size]);
const leftUpperLeg = new Bone();
hip.add(leftUpperLeg);
const leftLowerLeg = new Bone();
leftUpperLeg.add(leftLowerLeg);
const leftFoot = new Bone();
leftLowerLeg.add(leftFoot);
return (
<basedSkeletonHelper
frustumCulled={false}
resolution={res}
args={[object]}
/>
);
}
const rightUpperLeg = new Bone();
hip.add(rightUpperLeg);
const rightLowerLeg = new Bone();
rightUpperLeg.add(rightLowerLeg);
const rightFoot = new Bone();
rightLowerLeg.add(rightFoot);
// Just need to know the length of the total body, so don't need right legs
const Y_PARTS = [
BodyPart.NECK,
BodyPart.UPPER_CHEST,
BodyPart.CHEST,
BodyPart.WAIST,
BodyPart.HIP,
BodyPart.LEFT_UPPER_LEG,
BodyPart.LEFT_LOWER_LEG,
];
bones.push(
head,
neck,
chest,
waist,
hip,
leftUpperLeg,
rightUpperLeg,
leftLowerLeg,
rightLowerLeg,
leftFoot,
rightFoot,
leftLowerArm,
rightLowerArm,
leftUpperArm,
rightUpperArm,
leftHand,
rightHand,
leftShoulder,
rightShoulder
interface SkeletonVisualizerWidgetProps {
height?: number | string;
maxHeight?: number | string;
}
export function ToggleableSkeletonVisualizerWidget(
props: SkeletonVisualizerWidgetProps
) {
const { l10n } = useLocalization();
const [enabled, setEnabled] = useState(false);
return (
<>
{!enabled && (
<Button
variant="secondary"
className="w-full"
onClick={() => {
setEnabled(true);
localStorage.setItem('modelPreview', 'true');
}}
>
{l10n.getString('widget-skeleton_visualizer-preview')}
</Button>
)}
{enabled && (
<>
<Button
className="w-full"
variant="secondary"
onClick={() => {
setEnabled(false);
localStorage.setItem('modelPreview', 'false');
}}
>
{l10n.getString('widget-skeleton_visualizer-hide')}
</Button>
<SkeletonVisualizerWidget {...props} />
</>
)}
</>
);
}
export function SkeletonVisualizerWidget({
height = '35vh',
maxHeight = 400,
}: SkeletonVisualizerWidgetProps) {
const { bones: _bones } = useAppContext();
const bones = useMemo(
() => new Map(_bones.map((b) => [b.bodyPart, b])),
[JSON.stringify(_bones)]
);
return new Skeleton(bones);
})();
const skeleton = useRef<Bone[]>();
export function SkeletonVisualizerWidget() {
const { bones } = useAppContext();
useEffect(() => {
skeleton.current = createChildren(bones, BoneKind.root);
}, [bones.size]);
const skeleton = useMemo(() => {
const skeleton = threeSkeleton.clone();
for (const solarBone of bones) {
const bone = skeleton.bones[solarBone.bodyPart - 1];
const localPos = bone.worldToLocal(
Vector3FromVec3fT(solarBone.headPositionG)
);
bone.position.set(localPos.x, localPos.y, localPos.z);
if (!bone.parent) {
bone.applyQuaternion(QuaternionFromQuatT(solarBone.rotationG));
continue;
}
const parentQuatInvert = bone.parent
.getWorldQuaternion(new Quaternion())
.invert();
bone.quaternion.multiplyQuaternions(
QuaternionFromQuatT(solarBone.rotationG),
parentQuatInvert
);
}
return getHelperFromSkeleton(skeleton);
useEffect(() => {
skeleton.current?.forEach(
(bone) => bone instanceof BoneKind && bone.updateData(bones)
);
}, [bones]);
const heightOffset = useMemo(() => {
const hmd = bones.get(BodyPart.HEAD);
// If I know the head position, don't use an offset
if (hmd?.headPositionG?.y !== undefined && hmd.headPositionG?.y > 0) {
return 0;
}
const yLength = Y_PARTS.map((x) => bones.get(x));
if (yLength.some((x) => x === undefined)) return 0;
return (yLength as BoneT[]).reduce((prev, cur) => prev + cur.boneLength, 0);
}, [bones]);
const bonesInitialized = bones.size > 0;
const targetCamera = useMemo(() => {
const hmd = bones.get(BodyPart.HEAD);
if (hmd?.headPositionG?.y && hmd.headPositionG.y > 0) {
return hmd.headPositionG.y / 2;
}
return heightOffset / 2;
}, [bonesInitialized]);
const yawReset = useMemo(() => {
const hmd = bones.get(BodyPart.HEAD);
const chest = bones.get(BodyPart.UPPER_CHEST);
// Check if HMD is identity, if it's then use upper chest's rotation
const quat = isIdentity(hmd?.rotationG)
? QuaternionFromQuatT(chest?.rotationG).normalize().invert()
: QuaternionFromQuatT(hmd?.rotationG).normalize().invert();
// Project quat to (0x, 1y, 0z)
const VEC_Y = new THREE.Vector3(0, 1, 0);
const vec = VEC_Y.multiplyScalar(
new THREE.Vector3(quat.x, quat.y, quat.z).dot(VEC_Y) / VEC_Y.lengthSq()
);
return new THREE.Quaternion(vec.x, vec.y, vec.z, quat.w).normalize();
}, [bonesInitialized]);
const scale = useMemo(
() => Math.max(1.8, heightOffset) / 1.8,
[heightOffset]
);
if (!skeleton.current) return <></>;
return (
<div className="bg-background-70 flex flex-col p-3 rounded-lg gap-2">
<Canvas
className="container"
style={{ height: 200, background: 'transparent' }}
onCreated={({ camera }) => {
(camera as PerspectiveCamera).fov = 60;
}}
className={classNames('container mx-auto')}
style={{ height, background: 'transparent', maxHeight }}
>
<group scale={0.04}>
<primitive object={skeleton}></primitive>
<gridHelper args={[10, 50, GROUND_COLOR, GROUND_COLOR]} />
<group position={[0, heightOffset, 0]} quaternion={yawReset}>
<SkeletonHelper object={skeleton.current[0]}></SkeletonHelper>
</group>
<primitive object={skeleton.current[0]} />
<PerspectiveCamera
makeDefault
position={[3, 2.5, -3]}
fov={20}
zoom={1 / scale}
/>
<OrbitControls
target={[0, targetCamera, 0]}
maxDistance={20}
maxPolarAngle={Math.PI / 2}
/>
</Canvas>
</div>
);
+5 -1
View File
@@ -20,10 +20,12 @@ export interface Config {
devSettings: DeveloperModeWidgetForm;
feedbackSound: boolean;
feedbackSoundVolume: number;
connectedTrackersWarning: boolean;
theme: string;
textSize: number;
fonts: string[];
advancedAssign: boolean;
doneManualMounting: boolean;
}
export interface ConfigContext {
@@ -33,17 +35,19 @@ export interface ConfigContext {
loadConfig: () => Promise<Config | null>;
}
export const defaultConfig = {
export const defaultConfig: Omit<Config, 'devSettings'> = {
lang: 'en',
debug: false,
doneOnboarding: false,
watchNewDevices: true,
feedbackSound: true,
feedbackSoundVolume: 0.5,
connectedTrackersWarning: true,
theme: 'slime',
textSize: 12,
fonts: ['poppins'],
advancedAssign: false,
doneManualMounting: false,
};
function fallbackToDefaults(loadedConfig: any): Config {
+3
View File
@@ -18,8 +18,11 @@ export function useLayout<T extends HTMLElement>() {
useLayoutEffect(() => {
window.addEventListener('resize', onWindowResize);
// Fix a bug where the layout would not update when the window is unfocused then focused again
window.addEventListener('focus', onWindowResize);
computeLayoutHeight(window.innerHeight, window.innerWidth);
return () => {
window.removeEventListener('focus', onWindowResize);
window.removeEventListener('resize', onWindowResize);
};
});
+2 -3
View File
@@ -138,9 +138,8 @@ export function parseStatusToLocale(
const tracker = trackers.find(
({ tracker }) =>
data.trackerId?.trackerNum &&
tracker?.trackerId?.trackerNum == data.trackerId.trackerNum &&
tracker?.trackerId?.deviceId?.id == data.trackerId.deviceId?.id
tracker?.trackerId?.trackerNum == data.trackerId?.trackerNum &&
tracker?.trackerId?.deviceId?.id == data.trackerId?.deviceId?.id
);
if (!tracker)
return {
+5
View File
@@ -61,6 +61,11 @@ export function compareQuatT(a: QuatT | null, b: QuatT | null): boolean {
return a.w === b.w && a.x === b.x && a.y === b.y && a.z === b.z;
}
export function isIdentity(a?: QuatT | null): boolean {
if (!a) return false;
return a.w === 1 && a.x === 0 && a.y === 0 && a.z === 0;
}
export function similarQuaternions(
a: Quaternion | null,
b: Quaternion | null,
-18
View File
@@ -15,24 +15,6 @@ const tapSetupSound5 = new Audio('/sounds/fifth-tap.mp3');
const tapSetupSoundEnd = new Audio('/sounds/end-tap.mp3');
const tapSetupExtraSound = new Audio('/sounds/tapextrasetup.mp3');
const sounds = [
quickResetStartedSound,
fullResetStartedSound,
mountingResetStartedSound,
tapSetupSound1,
tapSetupSound2,
tapSetupSound3,
tapSetupSound4,
tapSetupSound5,
tapSetupSoundEnd,
tapSetupExtraSound,
];
sounds.forEach((s) => {
s.play();
setTimeout(() => s.pause(), 10);
});
function restartAndPlay(audio: HTMLAudioElement, volume: number) {
audio.volume = Math.min(1, Math.pow(volume, Math.E) + 0.05);
if (audio.paused) {
+355
View File
@@ -0,0 +1,355 @@
import { Bone, Color, Matrix4, Object3D, Vector2, Vector3 } from 'three';
import { LineSegments2 } from 'three/examples/jsm/lines/LineSegments2';
import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
import { LineSegmentsGeometry } from 'three/examples/jsm/lines/LineSegmentsGeometry.js';
import { BodyPart, BoneT } from 'solarxr-protocol';
import { Vector3FromVec3fT } from '@/maths/vector3';
import { QuaternionFromQuatT } from '@/maths/quaternion';
const _vector = new Vector3();
const _boneMatrix = new Matrix4();
const _matrixWorldInv = new Matrix4();
export class BasedSkeletonHelper extends LineSegments2 {
isSkeletonHelper: boolean;
root: Object3D;
bones: Bone[];
readonly type = 'SkeletonHelper';
get resolution() {
return this.material.resolution;
}
set resolution(v: Vector2) {
this.material.resolution = v;
}
constructor(object: Object3D) {
const bones = getBoneList(object);
const geometry = new LineSegmentsGeometry();
const vertices = [];
const colors = [];
const color1 = new Color(0, 0, 1);
const color2 = new Color(0, 1, 0);
for (let i = 0; i < bones.length; i++) {
const bone = bones[i];
if (bone.parent && (bone.parent as Bone).isBone) {
vertices.push(0, 0, 0);
vertices.push(0, 0, 0);
if (bone.parent instanceof BoneKind) {
const color = bone.parent.boneColor;
colors.push(color.r, color.g, color.b);
colors.push(color.r, color.g, color.b);
} else {
colors.push(color1.r, color1.g, color1.b);
colors.push(color2.r, color2.g, color2.b);
}
}
}
geometry.setPositions(vertices);
geometry.setColors(colors);
const material = new LineMaterial({
vertexColors: true,
// depthTest: false,
// depthWrite: false,
toneMapped: false,
transparent: true,
linewidth: 4,
});
super(geometry, material);
this.isSkeletonHelper = true;
this.root = object;
this.bones = bones;
this.matrix = object.matrixWorld;
this.matrixAutoUpdate = false;
}
updateMatrixWorld(force: boolean) {
const bones = this.bones;
const geometry = this.geometry;
const vertices = [];
_matrixWorldInv.copy(this.root.matrixWorld).invert();
for (let i = 0; i < bones.length; i++) {
const bone = bones[i];
if (bone.parent && (bone.parent as Bone).isBone) {
_boneMatrix.multiplyMatrices(_matrixWorldInv, bone.parent.matrixWorld);
_vector.setFromMatrixPosition(_boneMatrix);
vertices.push(_vector.x, _vector.y, _vector.z);
_boneMatrix.multiplyMatrices(_matrixWorldInv, bone.matrixWorld);
_vector.setFromMatrixPosition(_boneMatrix);
vertices.push(_vector.x, _vector.y, _vector.z);
}
}
geometry.setPositions(vertices);
super.updateMatrixWorld(force);
}
dispose() {
this.geometry.dispose();
if (Array.isArray(this.material)) {
this.material.forEach((x) => x.dispose());
} else {
this.material.dispose();
}
}
}
function getBoneList(object: Object3D): Bone[] {
const boneList: Bone[] = [];
if ((object as Bone).isBone) {
boneList.push(object as Bone);
}
for (let i = 0; i < object.children.length; i++) {
boneList.push(...getBoneList(object.children[i]));
}
return boneList;
}
export class BoneKind extends Bone {
boneT: BoneT;
tail: boolean;
constructor(bones: Map<BodyPart, BoneT>, bodyPart: BodyPart, tail: boolean) {
super();
const bone = bones.get(bodyPart);
if (!bone) {
throw 'Couldnt find bone ' + BodyPart[bodyPart];
}
this.boneT = bone;
this.name = BodyPart[bodyPart];
this.tail = tail;
this.updateData(bones);
}
updateData(bones: Map<BodyPart, BoneT>) {
this.boneT = bones.get(this.boneT.bodyPart) ?? this.boneT;
const parent = BoneKind.parent(this.boneT.bodyPart);
const parentBone = parent === null ? undefined : bones.get(parent);
if (this.boneT.bodyPart === BoneKind.root) {
this.position.set(0, this.boneT.headPositionG?.y ?? 0, 0);
return;
}
if (!this.tail) {
const localPosition = Vector3FromVec3fT(this.boneT.headPositionG).sub(
Vector3FromVec3fT(
parentBone === undefined
? new Vector3(0, 0, 0)
: Vector3FromVec3fT(parentBone.headPositionG)
)
);
this.position.copy(localPosition);
return;
}
const quat = QuaternionFromQuatT(this.boneT.rotationG)
// .normalize()
// .multiply(
// parentBone === undefined
// ? new Quaternion().identity()
// : QuaternionFromQuatT(parentBone.rotationG).normalize().invert().normalize()
// )
.normalize();
// console.log(this.quaternion);
// console.log(
// parentBone === undefined
// ? new Vector3(0, 0, 0)
// : Vector3FromVec3fT(parentBone.headPositionG),
// Vector3FromVec3fT(this.boneT.headPositionG)
// );
this.position.set(0, -this.boneT.boneLength, 0);
this.position.applyQuaternion(quat);
// console.log(this.position);
}
get boneColor(): Color {
switch (this.boneT.bodyPart) {
case BodyPart.NONE:
throw 'Unexpected body part';
case BodyPart.HEAD:
return new Color('black');
case BodyPart.NECK:
return new Color('silver');
case BodyPart.UPPER_CHEST:
return new Color('blue');
case BodyPart.CHEST:
return new Color('purple');
case BodyPart.WAIST:
return new Color('red');
case BodyPart.HIP:
return new Color('orange');
case BodyPart.LEFT_UPPER_LEG:
case BodyPart.RIGHT_UPPER_LEG:
return new Color('blue');
case BodyPart.LEFT_LOWER_LEG:
case BodyPart.RIGHT_LOWER_LEG:
return new Color('teal');
case BodyPart.LEFT_FOOT:
case BodyPart.RIGHT_FOOT:
return new Color('#00ffcc');
case BodyPart.LEFT_LOWER_ARM:
case BodyPart.RIGHT_LOWER_ARM:
return new Color('red');
case BodyPart.LEFT_UPPER_ARM:
case BodyPart.RIGHT_UPPER_ARM:
return new Color('indianred');
case BodyPart.LEFT_HAND:
case BodyPart.RIGHT_HAND:
return new Color('fuchsia');
case BodyPart.LEFT_SHOULDER:
case BodyPart.RIGHT_SHOULDER:
return new Color('#00ffff');
case BodyPart.LEFT_HIP:
case BodyPart.RIGHT_HIP:
return new Color('pink');
}
}
static root: BodyPart = BodyPart.HEAD;
static children(part: BodyPart): BodyPart[] {
switch (part) {
case BodyPart.NONE:
throw 'Unexpected body part';
case BodyPart.HEAD:
return [BodyPart.NECK];
case BodyPart.NECK:
return [BodyPart.UPPER_CHEST, BodyPart.LEFT_SHOULDER, BodyPart.RIGHT_SHOULDER];
case BodyPart.UPPER_CHEST:
return [BodyPart.CHEST];
case BodyPart.CHEST:
return [BodyPart.WAIST];
case BodyPart.WAIST:
return [BodyPart.HIP];
case BodyPart.HIP:
return [BodyPart.LEFT_HIP, BodyPart.RIGHT_HIP];
case BodyPart.LEFT_HIP:
return [BodyPart.LEFT_UPPER_LEG];
case BodyPart.RIGHT_HIP:
return [BodyPart.RIGHT_UPPER_LEG];
case BodyPart.LEFT_UPPER_LEG:
return [BodyPart.LEFT_LOWER_LEG];
case BodyPart.RIGHT_UPPER_LEG:
return [BodyPart.RIGHT_LOWER_LEG];
case BodyPart.LEFT_LOWER_LEG:
return [BodyPart.LEFT_FOOT];
case BodyPart.RIGHT_LOWER_LEG:
return [BodyPart.RIGHT_FOOT];
case BodyPart.LEFT_FOOT:
return [];
case BodyPart.RIGHT_FOOT:
return [];
case BodyPart.LEFT_SHOULDER:
return [BodyPart.LEFT_UPPER_ARM];
case BodyPart.RIGHT_SHOULDER:
return [BodyPart.RIGHT_UPPER_ARM];
case BodyPart.LEFT_UPPER_ARM:
return [BodyPart.LEFT_LOWER_ARM];
case BodyPart.RIGHT_UPPER_ARM:
return [BodyPart.RIGHT_LOWER_ARM];
case BodyPart.LEFT_LOWER_ARM:
return [BodyPart.LEFT_HAND];
case BodyPart.RIGHT_LOWER_ARM:
return [BodyPart.RIGHT_HAND];
case BodyPart.LEFT_HAND:
return [];
case BodyPart.RIGHT_HAND:
return [];
}
}
static parent(part: BodyPart): BodyPart | null {
switch (part) {
case BodyPart.NONE:
throw 'Unexpected body part';
case BodyPart.HEAD:
return null;
case BodyPart.NECK:
return BodyPart.HEAD;
case BodyPart.UPPER_CHEST:
return BodyPart.NECK;
case BodyPart.CHEST:
return BodyPart.UPPER_CHEST;
case BodyPart.WAIST:
return BodyPart.CHEST;
case BodyPart.HIP:
return BodyPart.WAIST;
case BodyPart.LEFT_HIP:
case BodyPart.RIGHT_HIP:
return BodyPart.HIP;
case BodyPart.LEFT_UPPER_LEG:
return BodyPart.LEFT_HIP;
case BodyPart.RIGHT_UPPER_LEG:
return BodyPart.RIGHT_HIP;
case BodyPart.LEFT_LOWER_LEG:
return BodyPart.LEFT_UPPER_LEG;
case BodyPart.RIGHT_LOWER_LEG:
return BodyPart.RIGHT_UPPER_LEG;
case BodyPart.LEFT_FOOT:
return BodyPart.LEFT_LOWER_LEG;
case BodyPart.RIGHT_FOOT:
return BodyPart.RIGHT_LOWER_LEG;
case BodyPart.LEFT_SHOULDER:
case BodyPart.RIGHT_SHOULDER:
return BodyPart.NECK;
case BodyPart.LEFT_UPPER_ARM:
return BodyPart.LEFT_SHOULDER;
case BodyPart.RIGHT_UPPER_ARM:
return BodyPart.RIGHT_SHOULDER;
case BodyPart.LEFT_LOWER_ARM:
return BodyPart.LEFT_UPPER_ARM;
case BodyPart.RIGHT_LOWER_ARM:
return BodyPart.RIGHT_UPPER_ARM;
case BodyPart.LEFT_HAND:
return BodyPart.LEFT_LOWER_ARM;
case BodyPart.RIGHT_HAND:
return BodyPart.RIGHT_LOWER_ARM;
}
}
}
export function createChildren(
bones: Map<BodyPart, BoneT>,
body: BodyPart,
parentBone?: BoneKind
): (BoneKind | Bone)[] {
if (bones.size === 0) return [new Bone()];
const childrenBodies = BoneKind.children(body);
const parent = new BoneKind(bones, body, false);
parentBone?.add(parent);
if (childrenBodies.length === 0) {
const tail = new BoneKind(bones, body, true);
parent.add(tail);
return [parent, tail];
}
const children = childrenBodies.flatMap((bodyPart) =>
createChildren(bones, bodyPart, parent)
);
return [parent, ...children];
}
+8 -5
View File
@@ -1,11 +1,14 @@
import react from '@vitejs/plugin-react';
import { defineConfig, PluginOption } from 'vite';
import { execSync } from 'child_process';
import path from 'path'
import path from 'path';
import { visualizer } from 'rollup-plugin-visualizer';
const commitHash = execSync('git rev-parse --verify --short HEAD').toString().trim();
const versionTag = execSync('git --no-pager tag --points-at HEAD').toString().trim();
const versionTag = execSync('git --no-pager tag --sort -taggerdate --points-at HEAD')
.toString()
.split('\n')[0]
.trim();
// If not empty then it's not clean
const gitClean = execSync('git status --porcelain').toString() ? false : true;
@@ -51,7 +54,7 @@ export default defineConfig({
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
}
'@': path.resolve(__dirname, 'src'),
},
},
});
+2314 -1386
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.71.1"
channel = "1.73"
profile = "default"
components = ["rust-analyzer", "rust-src"]
+4
View File
@@ -57,6 +57,7 @@ allprojects {
repositories {
google()
mavenCentral()
maven(url = "https://jitpack.io")
}
}
@@ -78,6 +79,9 @@ dependencies {
implementation("io.ktor:ktor-server-core:2.3.0")
implementation("io.ktor:ktor-server-netty:2.3.0")
implementation("io.ktor:ktor-server-caching-headers:2.3.0")
// Serial
implementation("com.github.mik3y:usb-serial-for-android:3.7.0")
}
/**
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 14 KiB

@@ -5,6 +5,7 @@ package dev.slimevr.android
import androidx.appcompat.app.AppCompatActivity
import dev.slimevr.Keybinding
import dev.slimevr.VRServer
import dev.slimevr.android.serial.AndroidSerialHandler
import io.eiren.util.logging.LogManager
import io.ktor.http.CacheControl
import io.ktor.http.CacheControl.Visibility
@@ -44,8 +45,12 @@ fun main(activity: AppCompatActivity) {
} catch (e1: java.lang.Exception) {
e1.printStackTrace()
}
try {
vrServer = VRServer(configPath = File(activity.filesDir, "vrconfig.yml").absolutePath)
vrServer = VRServer(
configPath = File(activity.filesDir, "vrconfig.yml").absolutePath,
serialHandlerProvider = { _ -> AndroidSerialHandler(activity) }
)
vrServer.start()
Keybinding(vrServer)
vrServer.join()
@@ -0,0 +1,250 @@
package dev.slimevr.android.serial
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.hardware.usb.UsbManager
import androidx.appcompat.app.AppCompatActivity
import com.hoho.android.usbserial.driver.UsbSerialDriver
import com.hoho.android.usbserial.driver.UsbSerialPort
import com.hoho.android.usbserial.driver.UsbSerialProber
import com.hoho.android.usbserial.util.SerialInputOutputManager
import dev.slimevr.serial.SerialHandler
import dev.slimevr.serial.SerialListener
import io.eiren.util.logging.LogManager
import java.io.IOException
import java.nio.ByteBuffer
import java.nio.charset.StandardCharsets
import java.util.*
import java.util.concurrent.CopyOnWriteArrayList
import java.util.stream.Stream
import kotlin.concurrent.timerTask
import kotlin.streams.asSequence
import kotlin.streams.asStream
import dev.slimevr.serial.SerialPort as SlimeSerialPort
class SerialPortWrapper(val port: UsbSerialPort) : SlimeSerialPort() {
override val portLocation: String
get() = port.device.deviceName
override val descriptivePortName: String
get() = "${port.device.productName} (${port.device.deviceName})"
override val vendorId: Int
get() = port.device.vendorId
override val productId: Int
get() = port.device.productId
}
class AndroidSerialHandler(val activity: AppCompatActivity) :
SerialHandler(),
SerialInputOutputManager.Listener {
private var usbIoManager: SerialInputOutputManager? = null
private val listeners: MutableList<SerialListener> = CopyOnWriteArrayList()
private val getDevicesTimer = Timer("GetDevicesTimer")
private var watchingNewDevices = false
private var lastKnownPorts = setOf<SerialPortWrapper>()
private val manager = activity.getSystemService(Context.USB_SERVICE) as UsbManager
private var currentPort: SerialPortWrapper? = null
private var requestingPermission: String = ""
override val isConnected: Boolean
get() = currentPort?.port?.isOpen ?: false
override val knownPorts: Stream<SerialPortWrapper>
get() = getPorts()
.asSequence()
.map { SerialPortWrapper(it.ports[0]) }
.filter { isKnownBoard(it) }
.asStream()
init {
startWatchingNewDevices()
}
private fun getPorts(): List<UsbSerialDriver> {
return UsbSerialProber.getDefaultProber().findAllDrivers(manager)
}
private fun startWatchingNewDevices() {
if (watchingNewDevices) return
watchingNewDevices = true
getDevicesTimer.scheduleAtFixedRate(
timerTask {
try {
detectNewPorts()
} catch (t: Throwable) {
LogManager.severe(
"[SerialHandler] Error while watching for new devices, cancelling the \"getDevicesTimer\".",
t
)
getDevicesTimer.cancel()
}
},
0,
3000
)
}
private fun onNewDevice(port: SerialPortWrapper) {
listeners.forEach { it.onNewSerialDevice(port) }
}
private fun detectNewPorts() {
val differences = knownPorts.asSequence() - lastKnownPorts
lastKnownPorts = knownPorts.asSequence().toSet()
differences.forEach { onNewDevice(it) }
}
override fun addListener(channel: SerialListener) {
listeners.add(channel)
}
override fun removeListener(channel: SerialListener) {
listeners.removeIf { channel === it }
}
@Synchronized
override fun openSerial(portLocation: String?, auto: Boolean): Boolean {
LogManager.info("[SerialHandler] Trying to open: $portLocation, auto: $auto")
lastKnownPorts = knownPorts.asSequence().toSet()
val newPort = lastKnownPorts.find {
(!auto && it.portLocation == portLocation) || (auto && isKnownBoard(it))
}
if (newPort == null) {
LogManager.info(
"[SerialHandler] No serial ports found to connect to (${lastKnownPorts.size}) total ports"
)
return false
}
if (isConnected) {
val port = currentPort!!
if (newPort != port) {
LogManager.info(
"[SerialHandler] Closing current serial port " +
port.descriptivePortName
)
closeSerial()
} else {
LogManager.info("[SerialHandler] Reusing already open port")
listeners.forEach { it.onSerialConnected(port) }
return true
}
}
LogManager.info(
"[SerialHandler] Trying to connect to new serial port " +
newPort.descriptivePortName
)
if (!manager.hasPermission(newPort.port.device)) {
val flags = PendingIntent.FLAG_IMMUTABLE
val usbPermissionIntent = PendingIntent.getBroadcast(
activity,
0,
Intent(ACTION_USB_PERMISSION),
flags
)
if (requestingPermission != newPort.portLocation) {
println("Requesting permission for ${newPort.portLocation}")
manager.requestPermission(newPort.port.device, usbPermissionIntent)
requestingPermission = newPort.portLocation
}
LogManager.warning(
"[SerialHandler] Can't open serial port ${newPort.descriptivePortName}, invalid permissions"
)
return false
}
val connection = manager.openDevice(newPort.port.device)
if (connection == null) {
LogManager.warning(
"[SerialHandler] Can't open serial port ${newPort.descriptivePortName}, connection failed"
)
return false
}
newPort.port.open(connection)
newPort.port.setParameters(115200, 8, 1, UsbSerialPort.PARITY_NONE)
usbIoManager = SerialInputOutputManager(newPort.port, this).apply {
start()
}
listeners.forEach { it.onSerialConnected(newPort) }
currentPort = newPort
LogManager.info("[SerialHandler] Serial port ${newPort.descriptivePortName} is open")
return true
}
@Synchronized
private fun writeSerial(serialText: String, print: Boolean = false) {
try {
usbIoManager?.writeAsync("${serialText}\n".toByteArray())
if (print) {
addLog("-> $serialText\n")
}
} catch (e: IOException) {
addLog("[!] Serial error: ${e.message}\n")
LogManager.warning("[SerialHandler] Serial port write error", e)
}
}
override fun rebootRequest() {
writeSerial("REBOOT")
}
override fun factoryResetRequest() {
writeSerial("FRST")
}
override fun infoRequest() {
writeSerial("GET INFO")
}
override fun closeSerial() {
try {
if (isConnected) {
currentPort?.port?.close()
}
listeners.forEach { it.onSerialDisconnected() }
LogManager.info(
"[SerialHandler] Port ${currentPort?.descriptivePortName} closed okay"
)
usbIoManager?.stop()
usbIoManager = null
currentPort = null
} catch (e: Exception) {
LogManager.warning(
"[SerialHandler] Error closing port ${currentPort?.descriptivePortName}",
e
)
}
}
@Synchronized
override fun setWifi(ssid: String, passwd: String) {
writeSerial("SET WIFI \"${ssid}\" \"${passwd}\"")
addLog("-> SET WIFI \"$ssid\" \"${passwd.replace(".".toRegex(), "*")}\"\n")
}
private fun addLog(str: String) {
LogManager.info("[Serial] $str")
listeners.forEach { it.onSerialLog(str) }
}
override fun onNewData(data: ByteArray?) {
if (data != null) {
val s = StandardCharsets.UTF_8.decode(ByteBuffer.wrap(data)).toString()
addLog(s)
}
}
override fun onRunError(e: java.lang.Exception?) {}
companion object {
private val ACTION_USB_PERMISSION = "dev.slimevr.USB_PERMISSION"
}
}
@@ -15,6 +15,7 @@ public class Keybinding implements HotkeyListener {
private static final int FULL_RESET = 1;
private static final int YAW_RESET = 2;
private static final int MOUNTING_RESET = 3;
private static final int PAUSE_TRACKING = 4;
public final VRServer server;
public final KeybindingsConfig config;
@@ -47,6 +48,10 @@ public class Keybinding implements HotkeyListener {
String mountingResetBinding = this.config.getMountingResetBinding();
JIntellitype.getInstance().registerHotKey(MOUNTING_RESET, mountingResetBinding);
LogManager.info("[Keybinding] Bound reset mounting to " + mountingResetBinding);
String pauseTrackingBinding = this.config.getPauseTrackingBinding();
JIntellitype.getInstance().registerHotKey(PAUSE_TRACKING, pauseTrackingBinding);
LogManager.info("[Keybinding] Bound pause tracking to " + pauseTrackingBinding);
}
} catch (Throwable e) {
LogManager
@@ -76,6 +81,13 @@ public class Keybinding implements HotkeyListener {
this.config.getMountingResetDelay()
);
}
case PAUSE_TRACKING -> {
server
.scheduleTogglePauseTracking(
resetSourceName,
this.config.getPauseTrackingDelay()
);
}
}
}
}
@@ -35,6 +35,7 @@ import java.util.*
import java.util.concurrent.LinkedBlockingQueue
import java.util.concurrent.atomic.AtomicInteger
import java.util.function.Consumer
import kotlin.concurrent.schedule
typealias SteamBridgeProvider = (
server: VRServer,
@@ -105,9 +106,10 @@ class VRServer @JvmOverloads constructor(
provisioningHandler = ProvisioningHandler(this)
resetHandler = ResetHandler()
tapSetupHandler = TapSetupHandler()
humanPoseManager = HumanPoseManager(this)
// AutoBone requires HumanPoseManager first
autoBoneHandler = AutoBoneHandler(this)
protocolAPI = ProtocolAPI(this)
humanPoseManager = HumanPoseManager(this)
val computedTrackers = humanPoseManager.computedTrackers
// Start server for SlimeVR trackers
@@ -297,31 +299,42 @@ class VRServer @JvmOverloads constructor(
queueTask { humanPoseManager.clearTrackersMounting(resetSourceName) }
}
fun setPauseTracking(pauseTracking: Boolean, sourceName: String?) {
queueTask { humanPoseManager.setPauseTracking(pauseTracking, sourceName) }
}
fun togglePauseTracking(sourceName: String?) {
queueTask { humanPoseManager.togglePauseTracking(sourceName) }
}
fun scheduleResetTrackersFull(resetSourceName: String?, delay: Long) {
val resetTask: TimerTask = object : TimerTask() {
override fun run() {
queueTask { humanPoseManager.resetTrackersFull(resetSourceName) }
}
timer.schedule(delay) {
queueTask { humanPoseManager.resetTrackersFull(resetSourceName) }
}
timer.schedule(resetTask, delay)
}
fun scheduleResetTrackersYaw(resetSourceName: String?, delay: Long) {
val yawResetTask: TimerTask = object : TimerTask() {
override fun run() {
queueTask { humanPoseManager.resetTrackersYaw(resetSourceName) }
}
timer.schedule(delay) {
queueTask { humanPoseManager.resetTrackersYaw(resetSourceName) }
}
timer.schedule(yawResetTask, delay)
}
fun scheduleResetTrackersMounting(resetSourceName: String?, delay: Long) {
val resetMountingTask: TimerTask = object : TimerTask() {
override fun run() {
queueTask { humanPoseManager.resetTrackersMounting(resetSourceName) }
}
timer.schedule(delay) {
queueTask { humanPoseManager.resetTrackersMounting(resetSourceName) }
}
}
fun scheduleSetPauseTracking(pauseTracking: Boolean, sourceName: String?, delay: Long) {
timer.schedule(delay) {
queueTask { humanPoseManager.setPauseTracking(pauseTracking, sourceName) }
}
}
fun scheduleTogglePauseTracking(sourceName: String?, delay: Long) {
timer.schedule(delay) {
queueTask { humanPoseManager.togglePauseTracking(sourceName) }
}
timer.schedule(resetMountingTask, delay)
}
fun setLegTweaksEnabled(value: Boolean) {
@@ -42,22 +42,11 @@ class AutoBone(server: VRServer) {
SkeletonConfigOffsets.LOWER_LEG
)
)
val heightOffsetDefaults = EnumMap<SkeletonConfigOffsets, Float>(
SkeletonConfigOffsets::class.java
)
// This is filled by loadConfigValues()
val heightOffsets = FastList(
arrayOf(
SkeletonConfigOffsets.NECK,
SkeletonConfigOffsets.UPPER_CHEST,
SkeletonConfigOffsets.CHEST,
SkeletonConfigOffsets.WAIST,
SkeletonConfigOffsets.HIP,
SkeletonConfigOffsets.UPPER_LEG,
SkeletonConfigOffsets.LOWER_LEG
)
)
var estimatedHeight: Float = 1f
// The total height of the normalized adjusted offsets
var adjustedHeightNormalized: Float = 1f
private val server: VRServer
@@ -87,6 +76,7 @@ class AutoBone(server: VRServer) {
// Get current or default skeleton configs
val skeleton = server.humanPoseManager
// Still compensate for a null skeleton, as it may not be initialized yet
val getOffset: Function<SkeletonConfigOffsets, Float> =
if (skeleton != null) {
Function { key: SkeletonConfigOffsets -> skeleton.getOffset(key) }
@@ -102,12 +92,6 @@ class AutoBone(server: VRServer) {
offsets[bone] = offset
}
}
for (bone in heightOffsets) {
val offset = getOffset.apply(bone)
if (offset > 0f) {
heightOffsetDefaults[bone] = offset
}
}
}
fun getBoneDirection(
@@ -127,11 +111,7 @@ class AutoBone(server: VRServer) {
if (rightSide) configOffset.affectedOffsets[1] else configOffset.affectedOffsets[0]
else -> configOffset.affectedOffsets[0]
}
val relevantTransform = skeleton.getTailNodeOfBone(boneType)
return (
relevantTransform.worldTransform.translation -
relevantTransform.parent!!.worldTransform.translation
).unit()
return skeleton.getBone(boneType).getGlobalRotation().toRotationVector()
}
fun getDotProductDiff(
@@ -166,48 +146,6 @@ class AutoBone(server: VRServer) {
return true
}
fun <T> sumSelectConfigs(
selection: List<T>,
configs: Map<T, Float>,
configsAlt: Map<T, Float>? = null,
): Float {
var sum = 0f
for (config in selection) {
val length = configs[config] ?: configsAlt?.get(config)
if (length != null) {
sum += length
}
}
return sum
}
fun calcHeight(): Float {
return sumSelectConfigs(heightOffsets, offsets, heightOffsetDefaults)
}
fun getLengthSum(configs: Map<SkeletonConfigOffsets, Float>): Float {
return getLengthSum(configs, null)
}
fun getLengthSum(
configs: Map<SkeletonConfigOffsets, Float>,
configsAlt: Map<SkeletonConfigOffsets, Float>?,
): Float {
var length = 0f
if (configsAlt != null) {
for ((key, value) in configsAlt) {
// If there isn't a duplicate config
if (!configs.containsKey(key)) {
length += value
}
}
}
for (boneLength in configs.values) {
length += boneLength
}
return length
}
fun calcTargetHmdHeight(
frames: PoseFrames,
config: AutoBoneConfig = globalConfig,
@@ -215,6 +153,7 @@ class AutoBone(server: VRServer) {
val targetHeight: Float
// Get the current skeleton from the server
val humanPoseManager = server.humanPoseManager
// Still compensate for a null skeleton, as it may not be initialized yet
if (config.useSkeletonHeight && humanPoseManager != null) {
// If there is a skeleton available, calculate the target height
// from its configs
@@ -242,6 +181,13 @@ class AutoBone(server: VRServer) {
return targetHeight
}
private fun updateRecordingScale(trainingStep: AutoBoneStep, scale: Float) {
trainingStep.framePlayer1.setScales(scale)
trainingStep.framePlayer2.setScales(scale)
trainingStep.skeleton1.update()
trainingStep.skeleton2.update()
}
@Throws(AutoBoneException::class)
fun processFrames(
frames: PoseFrames,
@@ -260,7 +206,7 @@ class AutoBone(server: VRServer) {
val targetFullHeight = if (config.targetFullHeight > 0f) {
config.targetFullHeight
} else {
targetHmdHeight * BodyProportionError.eyeHeightToHeightRatio
targetHmdHeight / BodyProportionError.eyeHeightToHeightRatio
}
// Set up the current state, making all required players and setting up the
@@ -277,6 +223,80 @@ class AutoBone(server: VRServer) {
// Initialize the frame order randomizer with a repeatable seed
rand.setSeed(config.randSeed)
// Normalize the skeletons and get the normalized height for adjusted offsets
scaleSkeleton(trainingStep.skeleton1)
scaleSkeleton(trainingStep.skeleton2)
adjustedHeightNormalized = sumAdjustedHeightOffsets(trainingStep.skeleton1)
// Normalize offsets based on the initial normalized skeleton
scaleOffsets()
// Apply the initial normalized config values
applyConfig(trainingStep.skeleton1)
applyConfig(trainingStep.skeleton2)
// Initialize normalization to the set target height (also updates skeleton)
estimatedHeight = targetHmdHeight
updateRecordingScale(trainingStep, 1f / targetHmdHeight)
if (config.useFrameFiltering) {
// Calculate the initial frame errors and recording stats
val frameErrors = FloatArray(frames.maxFrameCount)
val frameStats = StatsCalculator()
val recordingStats = StatsCalculator()
for (i in 0 until frames.maxFrameCount) {
frameStats.reset()
for (j in 0 until frames.maxFrameCount) {
if (i == j) continue
trainingStep.setCursors(
i,
j,
updatePlayerCursors = true
)
frameStats.addValue(getErrorDeriv(trainingStep))
}
frameErrors[i] = frameStats.mean
recordingStats.addValue(frameStats.mean)
// LogManager.info("[AutoBone] Frame: ${i + 1}, Mean error: ${frameStats.mean} (SD ${frameStats.standardDeviation})")
}
LogManager.info("[AutoBone] Full recording mean error: ${frameStats.mean} (SD ${frameStats.standardDeviation})")
// Remove outlier frames
val sdMult = 1.4f
val mean = recordingStats.mean
val sd = recordingStats.standardDeviation * sdMult
for (i in frameErrors.size - 1 downTo 0) {
val err = frameErrors[i]
if (err < mean - sd || err > mean + sd) {
for (frameHolder in frames.frameHolders) {
frameHolder.frames.removeAt(i)
}
}
}
trainingStep.maxFrameCount = frames.maxFrameCount
// Calculate and print the resulting recording stats
recordingStats.reset()
for (i in 0 until frames.maxFrameCount) {
frameStats.reset()
for (j in 0 until frames.maxFrameCount) {
if (i == j) continue
trainingStep.setCursors(
i,
j,
updatePlayerCursors = true
)
frameStats.addValue(getErrorDeriv(trainingStep))
}
recordingStats.addValue(frameStats.mean)
}
LogManager.info("[AutoBone] Full recording after mean error: ${frameStats.mean} (SD ${frameStats.standardDeviation})")
}
// Epoch loop, each epoch is one full iteration over the full dataset
for (epoch in (if (config.calcInitError) -1 else 0) until config.numEpochs) {
// Set the current epoch to process
@@ -286,14 +306,18 @@ class AutoBone(server: VRServer) {
internalEpoch(trainingStep)
}
val finalHeight = calcHeight()
// Scale the normalized offsets to the estimated height for the final result
for (entry in offsets.entries) {
entry.setValue(entry.value * estimatedHeight)
}
LogManager
.info(
"[AutoBone] Target height: ${trainingStep.targetHmdHeight}, New height: $finalHeight"
"[AutoBone] Target height: ${trainingStep.targetHmdHeight}, Final height: $estimatedHeight"
)
return AutoBoneResults(
finalHeight,
estimatedHeight,
trainingStep.targetHmdHeight,
trainingStep.errorStats,
offsets
@@ -337,10 +361,6 @@ class AutoBone(server: VRServer) {
while (frameCursor < frameCount - cursorOffset) {
val frameCursor2 = frameCursor + cursorOffset
// Apply the current adjusted config to both skeletons
applyConfig(trainingStep.skeleton1)
applyConfig(trainingStep.skeleton2)
// Then set the frame cursors and apply them to both skeletons
if (config.randomizeFrameOrder && randomFrameIndices != null) {
trainingStep
@@ -372,9 +392,20 @@ class AutoBone(server: VRServer) {
.info(
"[AutoBone] Epoch: ${epoch + 1}, Mean error: ${errorStats.mean} (SD ${errorStats.standardDeviation}), Adjust rate: ${trainingStep.curAdjustRate}"
)
LogManager
.info(
"[AutoBone] Target height: ${trainingStep.targetHmdHeight}, Estimated height: $estimatedHeight"
)
}
trainingStep.epochCallback?.accept(Epoch(epoch + 1, config.numEpochs, errorStats, offsets))
if (trainingStep.epochCallback != null) {
// Scale the normalized offsets to the estimated height for the callback
val scaledOffsets = EnumMap(offsets)
for (entry in scaledOffsets.entries) {
entry.setValue(entry.value * estimatedHeight)
}
trainingStep.epochCallback.accept(Epoch(epoch + 1, config.numEpochs, errorStats, scaledOffsets))
}
}
private fun internalIter(trainingStep: AutoBoneStep) {
@@ -382,9 +413,43 @@ class AutoBone(server: VRServer) {
val skeleton1 = trainingStep.skeleton1
val skeleton2 = trainingStep.skeleton2
val totalLength = getLengthSum(offsets)
val curHeight = calcHeight()
trainingStep.currentHmdHeight = curHeight
// Scaling each step used to mean enforcing the target height, so keep that
// behaviour to retain predictability
if (!trainingStep.config.scaleEachStep) {
// Try to estimate a new height by calculating the height with the lowest
// error between adding or subtracting from the height
val maxHeight = trainingStep.targetHmdHeight + 0.2f
val minHeight = trainingStep.targetHmdHeight - 0.2f
trainingStep.currentHmdHeight = estimatedHeight
val heightErrorDeriv = getErrorDeriv(trainingStep)
val heightAdjust = errorFunc(heightErrorDeriv) * trainingStep.curAdjustRate
val negHeight = (estimatedHeight - heightAdjust).coerceIn(minHeight, maxHeight)
updateRecordingScale(trainingStep, 1f / negHeight)
trainingStep.currentHmdHeight = negHeight
val negHeightErrorDeriv = getErrorDeriv(trainingStep)
val posHeight = (estimatedHeight + heightAdjust).coerceIn(minHeight, maxHeight)
updateRecordingScale(trainingStep, 1f / posHeight)
trainingStep.currentHmdHeight = posHeight
val posHeightErrorDeriv = getErrorDeriv(trainingStep)
if (negHeightErrorDeriv < heightErrorDeriv && negHeightErrorDeriv < posHeightErrorDeriv) {
estimatedHeight = negHeight
// Apply the negative height scale
updateRecordingScale(trainingStep, 1f / negHeight)
} else if (posHeightErrorDeriv < heightErrorDeriv) {
estimatedHeight = posHeight
// The last estimated height set was the positive adjustment, so no need to apply it again
} else {
// Reset to the initial scale
updateRecordingScale(trainingStep, 1f / estimatedHeight)
}
}
// Update the heights used for error calculations
trainingStep.currentHmdHeight = estimatedHeight
val errorDeriv = getErrorDeriv(trainingStep)
val error = errorFunc(errorDeriv)
@@ -423,9 +488,10 @@ class AutoBone(server: VRServer) {
.getComputedTracker(TrackerRole.RIGHT_FOOT).position -
skeleton1.getComputedTracker(TrackerRole.RIGHT_FOOT).position
for (entry in offsets.entries) {
// Skip adjustment if the epoch is before starting (for
// logging only) or if there are no BoneTypes for this value
val intermediateOffsets = EnumMap(offsets)
for (entry in intermediateOffsets.entries) {
// Skip adjustment if the epoch is before starting (for logging only) or
// if there are no BoneTypes for this value
if (trainingStep.curEpoch < 0 || entry.key.affectedOffsets.isEmpty()) {
break
}
@@ -447,14 +513,10 @@ class AutoBone(server: VRServer) {
)
// Calculate the total effect of the bone based on change in rotation
val dotLength = (
originalLength
* ((leftDotProduct + rightDotProduct) / 2f)
)
val dotLength = originalLength * ((leftDotProduct + rightDotProduct) / 2f)
// Scale by the ratio for smooth adjustment and more
// stable results
val curAdjustVal = adjustVal * -dotLength / totalLength
// Scale by the total effect of the bone
val curAdjustVal = adjustVal * -dotLength
val newLength = originalLength + curAdjustVal
// No small or negative numbers!!! Bad algorithm!
@@ -465,6 +527,8 @@ class AutoBone(server: VRServer) {
// Apply new offset length
skeleton1.setOffset(entry.key, newLength)
skeleton2.setOffset(entry.key, newLength)
scaleSkeleton(skeleton1, onlyAdjustedHeight = true)
scaleSkeleton(skeleton2, onlyAdjustedHeight = true)
// Update the skeleton poses for the new offset length
skeleton1.update()
@@ -476,45 +540,73 @@ class AutoBone(server: VRServer) {
entry.setValue(newLength)
}
// Reset the length to minimize bias in other variables,
// it's applied later
skeleton1.setOffset(entry.key, originalLength)
skeleton2.setOffset(entry.key, originalLength)
// Reset the skeleton values to minimize bias in other variables, it's applied later
applyConfig(skeleton1)
applyConfig(skeleton2)
}
if (trainingStep.config.scaleEachStep) {
// Scale to the target height if requested by the config
scaleToTargetHeight(trainingStep)
// Update the offsets from the adjusted ones
offsets.putAll(intermediateOffsets)
// Normalize the scale, it will be upscaled to the target height later
// We only need to scale height offsets, as other offsets are not affected by height
scaleOffsets(onlyHeightOffsets = true)
// Apply the normalized offsets to the skeleton
applyConfig(skeleton1)
applyConfig(skeleton2)
}
/**
* Sums only the adjusted height offsets of the provided HumanPoseManager
*/
private fun sumAdjustedHeightOffsets(humanPoseManager: HumanPoseManager): Float {
var sum = 0f
SkeletonConfigManager.HEIGHT_OFFSETS.forEach {
if (!adjustOffsets.contains(it)) return@forEach
sum += humanPoseManager.getOffset(it)
}
return sum
}
/**
* Sums only the height offsets of the provided offset map
*/
private fun sumHeightOffsets(offsets: EnumMap<SkeletonConfigOffsets, Float> = this.offsets): Float {
var sum = 0f
SkeletonConfigManager.HEIGHT_OFFSETS.forEach {
sum += offsets[it] ?: return@forEach
}
return sum
}
private fun scaleSkeleton(humanPoseManager: HumanPoseManager, targetHeight: Float = 1f, onlyAdjustedHeight: Boolean = false) {
// Get the scale to apply for the appropriate offsets
val scale = if (onlyAdjustedHeight) {
// Only adjusted height offsets
val adjHeight = sumAdjustedHeightOffsets(humanPoseManager)
// Remove the constant from the target, leaving only the target for adjusted height offsets
val adjTarget = targetHeight - (humanPoseManager.userHeightFromConfig - adjHeight)
// Return only the scale for adjusted offsets
adjTarget / adjHeight
} else {
targetHeight / humanPoseManager.userHeightFromConfig
}
val offsets = if (onlyAdjustedHeight) SkeletonConfigManager.HEIGHT_OFFSETS else SkeletonConfigOffsets.values
for (offset in offsets) {
if (onlyAdjustedHeight && !adjustOffsets.contains(offset)) continue
humanPoseManager.setOffset(offset, humanPoseManager.getOffset(offset) * scale)
}
}
private fun scaleToTargetHeight(trainingStep: AutoBoneStep) {
// Recalculate the height and update it in the AutoBoneStep
val stepHeight = calcHeight()
trainingStep.currentHmdHeight = stepHeight
private fun scaleOffsets(offsets: EnumMap<SkeletonConfigOffsets, Float> = this.offsets, targetHeight: Float = adjustedHeightNormalized, onlyHeightOffsets: Boolean = false) {
// Get the scale to apply for the appropriate offsets
val scale = targetHeight / sumHeightOffsets(offsets)
if (stepHeight > 0f) {
val stepHeightDiff = trainingStep.targetHmdHeight - stepHeight
for (entry in offsets.entries) {
// Only height variables
if (entry.key == SkeletonConfigOffsets.NECK ||
!heightOffsets.contains(entry.key)
) {
continue
}
val length = entry.value
// Multiply the diff by the length to height
// ratio
val adjVal = stepHeightDiff * (length / stepHeight)
// Scale the length to fit the target height
entry.setValue(
(length + adjVal / 2f).coerceAtLeast(
0.01f
)
)
}
for (entry in offsets.entries) {
if (onlyHeightOffsets && !SkeletonConfigManager.HEIGHT_OFFSETS.contains(entry.key)) continue
entry.setValue(entry.value * scale)
}
}
@@ -564,7 +656,7 @@ class AutoBone(server: VRServer) {
val lengthsString: String
get() {
val configInfo = StringBuilder()
offsets.forEach { (key: SkeletonConfigOffsets, value: Float) ->
offsets.forEach { (key, value) ->
if (configInfo.isNotEmpty()) {
configInfo.append(", ")
}
@@ -614,27 +706,20 @@ class AutoBone(server: VRServer) {
fun loadRecordings(): FastList<Pair<String, PoseFrames>> {
val recordings = FastList<Pair<String, PoseFrames>>()
if (loadDir.isDirectory) {
val files = loadDir.listFiles()
if (files != null) {
for (file in files) {
if (file.isFile &&
org.apache.commons.lang3.StringUtils
.endsWithIgnoreCase(file.name, ".pfr")
) {
LogManager
.info(
"[AutoBone] Detected recording at \"${file.path}\", loading frames..."
)
val frames = PoseFrameIO.tryReadFromFile(file)
if (frames == null) {
LogManager
.severe("Reading frames from \"${file.path}\" failed...")
} else {
recordings.add(Pair.of(file.name, frames))
}
}
}
if (!loadDir.isDirectory) return recordings
val files = loadDir.listFiles() ?: return recordings
for (file in files) {
if (!file.isFile || !file.name.endsWith(".pfr", ignoreCase = true)) continue
LogManager
.info(
"[AutoBone] Detected recording at \"${file.path}\", loading frames..."
)
val frames = PoseFrameIO.tryReadFromFile(file)
if (frames == null) {
LogManager.severe("Reading frames from \"${file.path}\" failed...")
} else {
recordings.add(Pair.of(file.name, frames))
}
}
return recordings
@@ -8,11 +8,14 @@ import dev.slimevr.poseframeformat.PoseFrames
import dev.slimevr.poseframeformat.PoseRecorder
import dev.slimevr.poseframeformat.PoseRecorder.RecordingProgress
import dev.slimevr.poseframeformat.trackerdata.TrackerFrameData
import dev.slimevr.poseframeformat.trackerdata.TrackerFrames
import dev.slimevr.tracking.processor.config.SkeletonConfigManager
import dev.slimevr.tracking.processor.config.SkeletonConfigOffsets
import io.eiren.util.StringUtils
import io.eiren.util.collections.FastList
import io.eiren.util.logging.LogManager
import org.apache.commons.lang3.tuple.Pair
import java.util.*
import java.util.concurrent.CopyOnWriteArrayList
import java.util.concurrent.locks.ReentrantLock
import kotlin.concurrent.thread
@@ -61,9 +64,6 @@ class AutoBoneHandler(private val server: VRServer) {
}
}
val lengthsString: String
get() = autoBone.lengthsString
@Throws(AutoBoneException::class)
private fun processFrames(frames: PoseFrames): AutoBoneResults {
return autoBone
@@ -254,9 +254,7 @@ class AutoBoneHandler(private val server: VRServer) {
)
LogManager
.severe(
"[AutoBone] No recordings found in \"" +
loadDir.path +
"\" and no recording was done..."
"[AutoBone] No recordings found in \"${loadDir.path}\" and no recording was done..."
)
return
}
@@ -264,110 +262,60 @@ class AutoBoneHandler(private val server: VRServer) {
announceProcessStatus(AutoBoneProcessType.PROCESS, "Processing recording(s)...")
LogManager.info("[AutoBone] Processing frames...")
val errorStats = StatsCalculator()
val offsetStats = EnumMap<SkeletonConfigOffsets, StatsCalculator>(
SkeletonConfigOffsets::class.java
)
val skeletonConfigManagerBuffer = SkeletonConfigManager(false)
for ((key, value) in frameRecordings) {
LogManager
.info("[AutoBone] Processing frames from \"$key\"...")
val trackers = value.frameHolders
val trackerInfo = StringBuilder()
for (tracker in trackers) {
if (tracker == null) continue
val frame = tracker.tryGetFrame(0)
if (frame?.trackerPosition == null) continue
LogManager.info("[AutoBone] Processing frames from \"$key\"...")
// Output tracker info for the recording
printTrackerInfo(value.frameHolders)
// Add a comma if this is not the first item listed
if (trackerInfo.isNotEmpty()) {
trackerInfo.append(", ")
}
trackerInfo.append(frame.trackerPosition.designation)
// Represent the data flags
val trackerFlags = StringBuilder()
if (frame.hasData(TrackerFrameData.ROTATION)) {
trackerFlags.append("R")
}
if (frame.hasData(TrackerFrameData.POSITION)) {
trackerFlags.append("P")
}
if (frame.hasData(TrackerFrameData.ACCELERATION)) {
trackerFlags.append("A")
}
if (frame.hasData(TrackerFrameData.RAW_ROTATION)) {
trackerFlags.append("r")
}
// If there are data flags, print them in brackets after the
// designation
if (trackerFlags.isNotEmpty()) {
trackerInfo.append(" (").append(trackerFlags).append(")")
}
}
LogManager
.info(
"[AutoBone] (" +
trackers.size +
" trackers) [" +
trackerInfo +
"]"
)
// Actually process the recording
val autoBoneResults = processFrames(value)
errorStats.addValue(autoBoneResults.heightDifference)
LogManager.info("[AutoBone] Done processing!")
// #region Stats/Values
// Accumulate height error
errorStats.addValue(autoBoneResults.heightDifference)
// Accumulate length values
for (offset in autoBoneResults.configValues) {
val statCalc = offsetStats.getOrPut(offset.key) {
StatsCalculator()
}
// Multiply by 100 to get cm
statCalc.addValue(offset.value * 100f)
}
// Calculate and output skeleton ratios
skeletonConfigManagerBuffer.setOffsets(autoBoneResults.configValues)
val neckLength = skeletonConfigManagerBuffer
.getOffset(SkeletonConfigOffsets.NECK)
val upperChestLength = skeletonConfigManagerBuffer
.getOffset(SkeletonConfigOffsets.UPPER_CHEST)
val chestLength = skeletonConfigManagerBuffer
.getOffset(SkeletonConfigOffsets.CHEST)
val waistLength = skeletonConfigManagerBuffer
.getOffset(SkeletonConfigOffsets.WAIST)
val hipLength = skeletonConfigManagerBuffer
.getOffset(SkeletonConfigOffsets.HIP)
val torsoLength = upperChestLength + chestLength + waistLength + hipLength
val hipWidth = skeletonConfigManagerBuffer
.getOffset(SkeletonConfigOffsets.HIPS_WIDTH)
val legLength = (
skeletonConfigManagerBuffer
.getOffset(SkeletonConfigOffsets.UPPER_LEG) +
skeletonConfigManagerBuffer
.getOffset(SkeletonConfigOffsets.LOWER_LEG)
)
val lowerLegLength = skeletonConfigManagerBuffer
.getOffset(SkeletonConfigOffsets.LOWER_LEG)
val neckTorso = neckLength / torsoLength
val chestTorso = (upperChestLength + chestLength) / torsoLength
val torsoWaist = hipWidth / torsoLength
val legTorso = legLength / torsoLength
val legBody = legLength / (torsoLength + neckLength)
val kneeLeg = lowerLegLength / legLength
LogManager
.info(
"[AutoBone] Ratios: [{Neck-Torso: " +
StringUtils.prettyNumber(neckTorso) +
"}, {Chest-Torso: " +
StringUtils.prettyNumber(chestTorso) +
"}, {Torso-Waist: " +
StringUtils.prettyNumber(torsoWaist) +
"}, {Leg-Torso: " +
StringUtils.prettyNumber(legTorso) +
"}, {Leg-Body: " +
StringUtils.prettyNumber(legBody) +
"}, {Knee-Leg: " +
StringUtils.prettyNumber(kneeLeg) +
"}]"
)
LogManager.info("[AutoBone] Length values: " + autoBone.lengthsString)
printSkeletonRatios(skeletonConfigManagerBuffer)
LogManager.info("[AutoBone] Length values: ${autoBone.lengthsString}")
}
// Length value stats
val averageLengthVals = StringBuilder()
offsetStats.forEach { (key, value) ->
if (averageLengthVals.isNotEmpty()) {
averageLengthVals.append(", ")
}
averageLengthVals
.append(key.configKey)
.append(": ")
.append(StringUtils.prettyNumber(value.mean, 2))
.append(" (SD ")
.append(StringUtils.prettyNumber(value.standardDeviation, 2))
.append(")")
}
LogManager.info("[AutoBone] Average length values: $averageLengthVals")
// Height error stats
LogManager
.info(
"[AutoBone] Average height error: " +
StringUtils.prettyNumber(errorStats.mean, 6) +
" (SD " +
StringUtils.prettyNumber(errorStats.standardDeviation, 6) +
")"
"[AutoBone] Average height error: ${
StringUtils.prettyNumber(errorStats.mean, 6)
} (SD ${StringUtils.prettyNumber(errorStats.standardDeviation, 6)})"
)
// #endregion
listeners.forEach { listener: AutoBoneListener -> listener.onAutoBoneEnd(autoBone.offsets) }
@@ -390,6 +338,71 @@ class AutoBoneHandler(private val server: VRServer) {
}
}
private fun printTrackerInfo(trackers: FastList<TrackerFrames>) {
val trackerInfo = StringBuilder()
for (tracker in trackers) {
val frame = tracker?.tryGetFrame(0) ?: continue
// Add a comma if this is not the first item listed
if (trackerInfo.isNotEmpty()) {
trackerInfo.append(", ")
}
trackerInfo.append(frame.tryGetTrackerPosition()?.designation ?: "unassigned")
// Represent the data flags
val trackerFlags = StringBuilder()
if (frame.hasData(TrackerFrameData.ROTATION)) {
trackerFlags.append("R")
}
if (frame.hasData(TrackerFrameData.POSITION)) {
trackerFlags.append("P")
}
if (frame.hasData(TrackerFrameData.ACCELERATION)) {
trackerFlags.append("A")
}
if (frame.hasData(TrackerFrameData.RAW_ROTATION)) {
trackerFlags.append("r")
}
// If there are data flags, print them in brackets after the designation
if (trackerFlags.isNotEmpty()) {
trackerInfo.append(" (").append(trackerFlags).append(")")
}
}
LogManager.info("[AutoBone] (${trackers.size} trackers) [$trackerInfo]")
}
private fun printSkeletonRatios(skeleton: SkeletonConfigManager) {
val neckLength = skeleton.getOffset(SkeletonConfigOffsets.NECK)
val upperChestLength = skeleton.getOffset(SkeletonConfigOffsets.UPPER_CHEST)
val chestLength = skeleton.getOffset(SkeletonConfigOffsets.CHEST)
val waistLength = skeleton.getOffset(SkeletonConfigOffsets.WAIST)
val hipLength = skeleton.getOffset(SkeletonConfigOffsets.HIP)
val torsoLength = upperChestLength + chestLength + waistLength + hipLength
val hipWidth = skeleton.getOffset(SkeletonConfigOffsets.HIPS_WIDTH)
val legLength = skeleton.getOffset(SkeletonConfigOffsets.UPPER_LEG) +
skeleton.getOffset(SkeletonConfigOffsets.LOWER_LEG)
val lowerLegLength = skeleton.getOffset(SkeletonConfigOffsets.LOWER_LEG)
val neckTorso = neckLength / torsoLength
val chestTorso = (upperChestLength + chestLength) / torsoLength
val torsoWaist = hipWidth / torsoLength
val legTorso = legLength / torsoLength
val legBody = legLength / (torsoLength + neckLength)
val kneeLeg = lowerLegLength / legLength
LogManager.info(
"[AutoBone] Ratios: [{Neck-Torso: ${
StringUtils.prettyNumber(neckTorso)}}, {Chest-Torso: ${
StringUtils.prettyNumber(chestTorso)}}, {Torso-Waist: ${
StringUtils.prettyNumber(torsoWaist)}}, {Leg-Torso: ${
StringUtils.prettyNumber(legTorso)}}, {Leg-Body: ${
StringUtils.prettyNumber(legBody)}}, {Knee-Leg: ${
StringUtils.prettyNumber(kneeLeg)}}]"
)
}
fun applyValues() {
autoBone.applyAndSaveConfig()
}
@@ -23,7 +23,7 @@ class AutoBoneStep(
val eyeHeightToHeightRatio: Float = targetHmdHeight / targetFullHeight
val maxFrameCount = frames.maxFrameCount
var maxFrameCount = frames.maxFrameCount
val framePlayer1 = TrackerFramesPlayer(frames)
val framePlayer2 = TrackerFramesPlayer(frames)
@@ -13,7 +13,8 @@ class BodyProportionError : IAutoBoneError {
override fun getStepError(trainingStep: AutoBoneStep): Float {
return getBodyProportionError(
trainingStep.skeleton1,
trainingStep.currentHmdHeight / trainingStep.eyeHeightToHeightRatio
// Skeletons are now normalized to reduce bias, so height is always 1
1f
)
}
@@ -52,7 +53,7 @@ class BodyProportionError : IAutoBoneError {
// Experimental: 0.059
RangeProportionLimiter(
0.059f,
{ config: HumanPoseManager -> config.getOffset(SkeletonConfigOffsets.HEAD) },
SkeletonConfigOffsets.HEAD,
0.01f
),
// Neck
@@ -60,35 +61,35 @@ class BodyProportionError : IAutoBoneError {
// Experimental: 0.059
RangeProportionLimiter(
0.054f,
{ config: HumanPoseManager -> config.getOffset(SkeletonConfigOffsets.NECK) },
SkeletonConfigOffsets.NECK,
0.0015f
),
// Upper Chest
// Experimental: 0.0945
RangeProportionLimiter(
0.0945f,
{ config: HumanPoseManager -> config.getOffset(SkeletonConfigOffsets.UPPER_CHEST) },
SkeletonConfigOffsets.UPPER_CHEST,
0.01f
),
// Chest
// Experimental: 0.0945
RangeProportionLimiter(
0.0945f,
{ config: HumanPoseManager -> config.getOffset(SkeletonConfigOffsets.CHEST) },
SkeletonConfigOffsets.CHEST,
0.01f
),
// Waist
// Experimental: 0.118
RangeProportionLimiter(
0.118f,
{ config: HumanPoseManager -> config.getOffset(SkeletonConfigOffsets.WAIST) },
SkeletonConfigOffsets.WAIST,
0.05f
),
// Hip
// Experimental: 0.0237
RangeProportionLimiter(
0.0237f,
{ config: HumanPoseManager -> config.getOffset(SkeletonConfigOffsets.HIP) },
SkeletonConfigOffsets.HIP,
0.01f
),
// Hip Width
@@ -96,14 +97,14 @@ class BodyProportionError : IAutoBoneError {
// Experimental: 0.154
RangeProportionLimiter(
0.184f,
{ config: HumanPoseManager -> config.getOffset(SkeletonConfigOffsets.HIPS_WIDTH) },
SkeletonConfigOffsets.HIPS_WIDTH,
0.04f
),
// Upper Leg
// Expected: 0.245
RangeProportionLimiter(
0.245f,
{ config: HumanPoseManager -> config.getOffset(SkeletonConfigOffsets.UPPER_LEG) },
SkeletonConfigOffsets.UPPER_LEG,
0.015f
),
// Lower Leg
@@ -111,25 +112,12 @@ class BodyProportionError : IAutoBoneError {
// offset?)
RangeProportionLimiter(
0.285f,
{ config: HumanPoseManager -> config.getOffset(SkeletonConfigOffsets.LOWER_LEG) },
SkeletonConfigOffsets.LOWER_LEG,
0.02f
)
)
@JvmStatic
fun getProportionLimitForOffset(offset: SkeletonConfigOffsets): ProportionLimiter? {
return when (offset) {
SkeletonConfigOffsets.HEAD -> proportionLimits[0]
SkeletonConfigOffsets.NECK -> proportionLimits[1]
SkeletonConfigOffsets.UPPER_CHEST -> proportionLimits[2]
SkeletonConfigOffsets.CHEST -> proportionLimits[3]
SkeletonConfigOffsets.WAIST -> proportionLimits[4]
SkeletonConfigOffsets.HIP -> proportionLimits[5]
SkeletonConfigOffsets.HIPS_WIDTH -> proportionLimits[6]
SkeletonConfigOffsets.UPPER_LEG -> proportionLimits[7]
SkeletonConfigOffsets.LOWER_LEG -> proportionLimits[8]
else -> null
}
}
val proportionLimitMap = proportionLimits.associateBy { it.skeletonConfigOffset }
}
}
@@ -1,19 +1,18 @@
package dev.slimevr.autobone.errors.proportions
import dev.slimevr.tracking.processor.HumanPoseManager
import java.util.function.Function
import dev.slimevr.tracking.processor.config.SkeletonConfigOffsets
/**
* @param targetRatio The bone to height ratio to target
* @param boneLengthFunction A function that takes a SkeletonConfig object
* and returns the bone length
* @param skeletonConfigOffset The SkeletonConfigOffset to use for the length
*/
open class HardProportionLimiter(
override val targetRatio: Float = 0f,
protected val boneLengthFunction: Function<HumanPoseManager, Float>,
override val skeletonConfigOffset: SkeletonConfigOffsets,
) : ProportionLimiter {
override fun getProportionError(humanPoseManager: HumanPoseManager, height: Float): Float {
val boneLength = boneLengthFunction.apply(humanPoseManager)
val boneLength = humanPoseManager.getOffset(skeletonConfigOffset)
return targetRatio - boneLength / height
}
}
@@ -1,8 +1,10 @@
package dev.slimevr.autobone.errors.proportions
import dev.slimevr.tracking.processor.HumanPoseManager
import dev.slimevr.tracking.processor.config.SkeletonConfigOffsets
interface ProportionLimiter {
fun getProportionError(humanPoseManager: HumanPoseManager, height: Float): Float
val targetRatio: Float
val skeletonConfigOffset: SkeletonConfigOffsets
}
@@ -2,7 +2,7 @@ package dev.slimevr.autobone.errors.proportions
import com.jme3.math.FastMath
import dev.slimevr.tracking.processor.HumanPoseManager
import java.util.function.Function
import dev.slimevr.tracking.processor.config.SkeletonConfigOffsets
class RangeProportionLimiter : HardProportionLimiter {
private val targetPositiveRange: Float
@@ -10,15 +10,14 @@ class RangeProportionLimiter : HardProportionLimiter {
/**
* @param targetRatio The bone to height ratio to target
* @param boneLengthFunction A function that takes a SkeletonConfig object
* and returns the bone length
* @param skeletonConfigOffset The SkeletonConfigOffset to use for the length
* @param range The range from the target ratio to accept (ex. 0.1)
*/
constructor(
targetRatio: Float,
boneLengthFunction: Function<HumanPoseManager, Float>,
skeletonConfigOffset: SkeletonConfigOffsets,
range: Float,
) : super(targetRatio, boneLengthFunction) {
) : super(targetRatio, skeletonConfigOffset) {
val absRange = FastMath.abs(range)
// Handle if someone puts in a negative value
@@ -28,8 +27,7 @@ class RangeProportionLimiter : HardProportionLimiter {
/**
* @param targetRatio The bone to height ratio to target
* @param boneLengthFunction A function that takes a SkeletonConfig object
* and returns the bone length
* @param skeletonConfigOffset The SkeletonConfigOffset to use for the length
* @param positiveRange The positive range from the target ratio to accept
* (ex. 0.1)
* @param negativeRange The negative range from the target ratio to accept
@@ -37,10 +35,10 @@ class RangeProportionLimiter : HardProportionLimiter {
*/
constructor(
targetRatio: Float,
boneLengthFunction: Function<HumanPoseManager, Float>,
skeletonConfigOffset: SkeletonConfigOffsets,
positiveRange: Float,
negativeRange: Float,
) : super(targetRatio, boneLengthFunction) {
) : super(targetRatio, skeletonConfigOffset) {
// If the positive range is less than the negative range, something is
// wrong
@@ -50,7 +48,7 @@ class RangeProportionLimiter : HardProportionLimiter {
}
override fun getProportionError(humanPoseManager: HumanPoseManager, height: Float): Float {
val boneLength = boneLengthFunction.apply(humanPoseManager)
val boneLength = humanPoseManager.getOffset(skeletonConfigOffset)
val ratioOffset = targetRatio - boneLength / height
// If the range is exceeded, return the offset from the range limit
@@ -9,9 +9,9 @@ class AutoBoneConfig {
var initialAdjustRate = 10.0f
var adjustRateDecay = 1.0f
var slideErrorFactor = 0.0f
var offsetSlideErrorFactor = 2.0f
var offsetSlideErrorFactor = 1.0f
var footHeightOffsetErrorFactor = 0.0f
var bodyProportionErrorFactor = 0.825f
var bodyProportionErrorFactor = 0.25f
var heightErrorFactor = 0.0f
var positionErrorFactor = 0.0f
var positionOffsetErrorFactor = 0.0f
@@ -25,4 +25,5 @@ class AutoBoneConfig {
var saveRecordings = false
var useSkeletonHeight = false
var randSeed = 4L
var useFrameFiltering = false
}
@@ -271,6 +271,20 @@ public class CurrentVRConfigConverter implements VersionedModelConverter {
}
}
}
if (version < 12) {
// Update AutoBone defaults
ObjectNode autoBoneNode = (ObjectNode) modelData.get("autoBone");
if (autoBoneNode != null) {
JsonNode offsetSlideNode = autoBoneNode.get("offsetSlideErrorFactor");
if (offsetSlideNode != null && offsetSlideNode.floatValue() == 2.0f) {
autoBoneNode.set("offsetSlideErrorFactor", new FloatNode(1.0f));
}
JsonNode bodyProportionsNode = autoBoneNode.get("bodyProportionErrorFactor");
if (bodyProportionsNode != null && bodyProportionsNode.floatValue() == 0.825f) {
autoBoneNode.set("bodyProportionErrorFactor", new FloatNode(0.25f));
}
}
}
} catch (Exception e) {
LogManager.severe("Error during config migration: " + e);
}
@@ -8,12 +8,16 @@ public class KeybindingsConfig {
private String mountingResetBinding = "CTRL+ALT+SHIFT+I";
private String pauseTrackingBinding = "CTRL+ALT+SHIFT+O";
private long fullResetDelay = 0L;
private long yawResetDelay = 0L;
private long mountingResetDelay = 0L;
private long pauseTrackingDelay = 0L;
public KeybindingsConfig() {
}
@@ -30,6 +34,10 @@ public class KeybindingsConfig {
return mountingResetBinding;
}
public String getPauseTrackingBinding() {
return pauseTrackingBinding;
}
public long getFullResetDelay() {
return fullResetDelay;
}
@@ -53,4 +61,12 @@ public class KeybindingsConfig {
public void setMountingResetDelay(long delay) {
mountingResetDelay = delay;
}
public long getPauseTrackingDelay() {
return pauseTrackingDelay;
}
public void setPauseTrackingDelay(long delay) {
pauseTrackingDelay = delay;
}
}
@@ -14,7 +14,7 @@ import java.util.Map;
@JsonVersionedModel(
currentVersion = "11", defaultDeserializeToVersion = "11", toCurrentConverterClass = CurrentVRConfigConverter.class
currentVersion = "12", defaultDeserializeToVersion = "12", toCurrentConverterClass = CurrentVRConfigConverter.class
)
public class VRConfig {
@@ -7,6 +7,9 @@ import io.github.axisangles.ktmath.EulerOrder
import io.github.axisangles.ktmath.Quaternion
import io.github.axisangles.ktmath.Vector3
/**
* TODO make this class use Bone.kt
*/
class UnityArmature(localRot: Boolean) {
private val headNode = TransformNode(localRotation = localRot)
@@ -14,9 +17,9 @@ class UnityArmature(localRot: Boolean) {
private val neckHeadNode = TransformNode(localRotation = localRot)
private val upperChestNode = TransformNode(localRotation = localRot)
private val chestNode = TransformNode(localRotation = localRot)
private val waistTailNode = TransformNode(localRotation = localRot)
private val waistHeadNode = TransformNode(localRotation = localRot)
private val hipNode = TransformNode(localRotation = localRot)
private val spineTailNode = TransformNode(localRotation = localRot)
private val spineHeadNode = TransformNode(localRotation = localRot)
private val hipsNode = TransformNode(localRotation = localRot)
private val leftHipNode = TransformNode(localRotation = localRot)
private val rightHipNode = TransformNode(localRotation = localRot)
private val leftKneeNode = TransformNode(localRotation = localRot)
@@ -42,17 +45,17 @@ class UnityArmature(localRot: Boolean) {
init {
// Attach nodes
// Spine
hipNode.attachChild(waistHeadNode)
waistHeadNode.attachChild(waistTailNode)
waistTailNode.attachChild(chestNode)
hipsNode.attachChild(spineHeadNode)
spineHeadNode.attachChild(spineTailNode)
spineTailNode.attachChild(chestNode)
chestNode.attachChild(upperChestNode)
upperChestNode.attachChild(neckHeadNode)
neckHeadNode.attachChild(neckTailNode)
neckTailNode.attachChild(headNode)
// Legs
hipNode.attachChild(leftHipNode)
hipNode.attachChild(rightHipNode)
hipsNode.attachChild(leftHipNode)
hipsNode.attachChild(rightHipNode)
leftHipNode.attachChild(leftKneeNode)
rightHipNode.attachChild(rightKneeNode)
leftKneeNode.attachChild(leftAnkleNode)
@@ -73,11 +76,11 @@ class UnityArmature(localRot: Boolean) {
rightWristNode.attachChild(rightHandNode)
}
fun updateNodes() {
fun update() {
// Set the upper chest node's rotation to the chest's
upperChestNode.localTransform.rotation = chestNode.localTransform.rotation
// Update the root node
hipNode.update()
hipsNode.update()
}
fun setRootPose(globalPos: Vector3, globalRot: Quaternion) {
@@ -175,9 +178,9 @@ class UnityArmature(localRot: Boolean) {
UnityBone.HEAD -> neckTailNode
UnityBone.NECK -> neckHeadNode
UnityBone.UPPER_CHEST -> chestNode
UnityBone.CHEST -> waistTailNode
UnityBone.SPINE -> waistHeadNode
UnityBone.HIPS -> hipNode
UnityBone.CHEST -> spineTailNode
UnityBone.SPINE -> spineHeadNode
UnityBone.HIPS -> hipsNode
UnityBone.LEFT_UPPER_LEG -> leftHipNode
UnityBone.RIGHT_UPPER_LEG -> rightHipNode
UnityBone.LEFT_LOWER_LEG -> leftKneeNode
@@ -7,6 +7,7 @@ import com.illposed.osc.transport.OSCPortOut;
import dev.slimevr.VRServer;
import dev.slimevr.autobone.errors.BodyProportionError;
import dev.slimevr.config.VMCConfig;
import dev.slimevr.tracking.processor.Bone;
import dev.slimevr.tracking.processor.BoneType;
import dev.slimevr.tracking.processor.HumanPoseManager;
import dev.slimevr.tracking.processor.TransformNode;
@@ -157,7 +158,7 @@ public class VMCHandler implements OSCHandler {
// Load VRM data
if (outputUnityArmature != null && config.getVrmJson() != null) {
VRMReader vrmReader = new VRMReader(config.getVrmJson());
for (UnityBone unityBone : UnityBone.values()) {
for (UnityBone unityBone : UnityBone.getEntries()) {
TransformNode node = outputUnityArmature.getHeadNodeOfBone(unityBone);
if (node != null)
node
@@ -181,7 +182,7 @@ public class VMCHandler implements OSCHandler {
private void handleReceivedMessage(OSCMessageEvent event) {
switch (event.getMessage().getAddress()) {
case "/VMC/Ext/Bone/Pos":
case "/VMC/Ext/Bone/Pos" -> {
// Is bone (rotation)
TrackerPosition trackerPosition = null;
UnityBone bone = UnityBone
@@ -208,10 +209,8 @@ public class VMCHandler implements OSCHandler {
)
);
}
break;
case "/VMC/Ext/Hmd/Pos":
case "/VMC/Ext/Con/Pos":
case "/VMC/Ext/Tra/Pos":
}
case "/VMC/Ext/Hmd/Pos", "/VMC/Ext/Con/Pos", "/VMC/Ext/Tra/Pos" ->
// Is tracker (position + rotation)
handleReceivedTracker(
"VMC-Tracker-" + event.getMessage().getArguments().get(0),
@@ -230,8 +229,7 @@ public class VMCHandler implements OSCHandler {
false,
null
);
break;
case "/VMC/Ext/Root/Pos":
case "/VMC/Ext/Root/Pos" -> {
// Is VMC tracking root (offsets all rotations)
if (inputUnityArmature != null) {
inputUnityArmature
@@ -249,7 +247,7 @@ public class VMCHandler implements OSCHandler {
)
);
}
break;
}
}
}
@@ -321,7 +319,7 @@ public class VMCHandler implements OSCHandler {
public void update() {
// Update unity hierarchy
if (inputUnityArmature != null)
inputUnityArmature.updateNodes();
inputUnityArmature.update();
long currentTime = System.currentTimeMillis();
if (currentTime - timeAtLastSend > 3) { // 200hz to not crash VSF
@@ -362,25 +360,26 @@ public class VMCHandler implements OSCHandler {
)
);
for (UnityBone bone : UnityBone.values()) {
// Get tailNode for bone
TransformNode tailNode = humanPoseManager
.getTailNodeOfBone(
bone.getBoneType()
);
// Update unity hierarchy from bone's global rotation
if (tailNode != null && tailNode.getParent() != null)
for (UnityBone unityBone : UnityBone.getEntries()) {
BoneType boneType = unityBone.getBoneType();
if (boneType != null) {
// Get SlimeVR bone
Bone bone = humanPoseManager.getBone(boneType);
// Update unity hierarchy from bone's global
// rotation
outputUnityArmature
.setGlobalRotationForBone(
bone,
tailNode.getParent().getWorldTransform().getRotation()
unityBone,
bone.getGlobalRotation().times(bone.getRotationOffset().inv())
);
}
}
if (!anchorHip) {
// Anchor from head
// Gets the SlimeVR head position, scales it to the VRM,
// and subtracts the difference between the VRM's head
// and hip
// and subtracts the difference between the VRM's
// head and hip
// FIXME this way isn't perfect, but I give up - Erimel
Vector3 upperLegsAverage = (outputUnityArmature
.getHeadNodeOfBone(UnityBone.LEFT_UPPER_LEG)
@@ -392,15 +391,16 @@ public class VMCHandler implements OSCHandler {
.getWorldTransform()
.getTranslation()
)).times(0.5f);
Vector3 scaledHead = humanPoseManager
.getTailNodeOfBone(BoneType.HEAD)
.getWorldTransform()
.getTranslation()
.getBone(BoneType.HEAD)
.getTailPosition()
.times(
vrmHeight
/ (humanPoseManager.getUserHeightFromConfig()
* BodyProportionError.eyeHeightToHeightRatio)
);
Vector3 pos = scaledHead
.minus(
(outputUnityArmature
@@ -411,7 +411,6 @@ public class VMCHandler implements OSCHandler {
.minus(upperLegsAverage))
);
outputUnityArmature
.getHeadNodeOfBone(UnityBone.HIPS)
.getLocalTransform()
@@ -419,10 +418,10 @@ public class VMCHandler implements OSCHandler {
}
// Update Unity skeleton
outputUnityArmature.updateNodes();
outputUnityArmature.update();
// Add Unity humanoid bones transforms
for (UnityBone bone : UnityBone.values()) {
for (UnityBone bone : UnityBone.getEntries()) {
if (
!(humanPoseManager.isTrackingLeftArmFromController()
&& isLeftArmUnityBone(bone))
@@ -3,7 +3,7 @@ package dev.slimevr.poseframeformat.player
import dev.slimevr.poseframeformat.trackerdata.TrackerFrames
import dev.slimevr.tracking.trackers.Tracker
class PlayerTracker(val trackerFrames: TrackerFrames, val tracker: Tracker, private var internalCursor: Int = 0) {
class PlayerTracker(val trackerFrames: TrackerFrames, val tracker: Tracker, private var internalCursor: Int = 0, private var internalScale: Float = 1f) {
var cursor: Int
get() = internalCursor
@@ -13,6 +13,13 @@ class PlayerTracker(val trackerFrames: TrackerFrames, val tracker: Tracker, priv
setTrackerStateFromIndex(limitedCursor)
}
var scale: Float
get() = internalScale
set(value) {
internalScale = value
setTrackerStateFromIndex()
}
init {
setTrackerStateFromIndex(limitCursor())
}
@@ -54,12 +61,12 @@ class PlayerTracker(val trackerFrames: TrackerFrames, val tracker: Tracker, priv
val position = frame.tryGetPosition()
if (position != null) {
tracker.position = position
tracker.position = position * internalScale
}
val acceleration = frame.tryGetAcceleration()
if (acceleration != null) {
tracker.setAcceleration(acceleration)
tracker.setAcceleration(acceleration * internalScale)
}
}
}
@@ -35,4 +35,10 @@ class TrackerFramesPlayer(vararg val frameHolders: TrackerFrames) {
playerTracker.cursor = index
}
}
fun setScales(scale: Float) {
for (playerTracker in playerTrackers) {
playerTracker.scale = scale
}
}
}
@@ -1,10 +1,9 @@
package dev.slimevr.posestreamer;
import com.jme3.math.FastMath;
import dev.slimevr.tracking.processor.TransformNode;
import dev.slimevr.tracking.processor.Bone;
import dev.slimevr.tracking.processor.skeleton.HumanSkeleton;
import io.github.axisangles.ktmath.Quaternion;
import io.github.axisangles.ktmath.Transform;
import io.github.axisangles.ktmath.Vector3;
import org.apache.commons.lang3.StringUtils;
@@ -14,7 +13,7 @@ import java.io.*;
public class BVHFileStream extends PoseDataStream {
private static final int LONG_MAX_VALUE_DIGITS = Long.toString(Long.MAX_VALUE).length();
private BVHSettings bvhSettings = BVHSettings.DEFAULT;
private BVHSettings bvhSettings = BVHSettings.BLENDER;
private final BufferedWriter writer;
private long frameCount = 0;
@@ -22,9 +21,6 @@ public class BVHFileStream extends PoseDataStream {
private float[] angleBuf = new float[3];
private HumanSkeleton wrappedSkeleton;
private TransformNodeWrapper rootNode;
public BVHFileStream(OutputStream outputStream) {
super(outputStream);
writer = new BufferedWriter(new OutputStreamWriter(outputStream), 4096);
@@ -70,52 +66,26 @@ public class BVHFileStream extends PoseDataStream {
return bufferCount > 0 ? frameString + StringUtils.repeat(' ', bufferCount) : frameString;
}
private TransformNodeWrapper wrapSkeletonIfNew(HumanSkeleton skeleton) {
TransformNodeWrapper wrapper = rootNode;
// If the wrapped skeleton is missing or the skeleton is updated
if (wrapper == null || skeleton != wrappedSkeleton) {
wrapper = wrapSkeleton(skeleton);
}
return wrapper;
private boolean isEndBone(Bone bone) {
return bone == null || (!bvhSettings.shouldWriteEndNodes() && bone.getChildren().isEmpty());
}
private TransformNodeWrapper wrapSkeleton(HumanSkeleton skeleton) {
TransformNodeWrapper wrapper = wrapSkeletonNodes(skeleton.getHmdNode());
wrappedSkeleton = skeleton;
rootNode = wrapper;
return wrapper;
private void writeBoneHierarchy(Bone bone) throws IOException {
writeBoneHierarchy(bone, 0);
}
protected TransformNodeWrapper wrapSkeletonNodes(TransformNode rootNode) {
return TransformNodeWrapper.wrapFullHierarchy(rootNode);
}
private void writeBoneHierarchy(Bone bone, int level) throws IOException {
// Treat null as bone. This allows for simply writing empty end bones
boolean isEndBone = isEndBone(bone);
private boolean isEndNode(TransformNodeWrapper node) {
return node == null || (!bvhSettings.shouldWriteEndNodes() && node.children.isEmpty());
}
private void writeNodeHierarchy(TransformNodeWrapper node) throws IOException {
writeNodeHierarchy(node, 0);
}
private void writeNodeHierarchy(TransformNodeWrapper node, int level) throws IOException {
// Treat null as an end node, this allows for simply writing empty end
// nodes
boolean isEndNode = isEndNode(node);
// Don't write end sites at populated nodes, most BVH parsers don't like
// this
// Don't write end sites at populated bones, BVH parsers don't like that
// Ex case caught: `joint{ joint{ end }, end, end }` outputs `joint{ end
// }` instead
// Ex case let through: `joint{ end }`
boolean isSingleChild = node == null
|| node.getParent() == null
|| node.getParent().children.size() <= 1;
if (isEndNode && !isSingleChild) {
boolean isSingleChild = bone == null
|| bone.getParent() == null
|| bone.getParent().getChildren().size() <= 1;
if (isEndBone && !isSingleChild) {
return;
}
@@ -123,36 +93,26 @@ public class BVHFileStream extends PoseDataStream {
String nextIndentLevel = indentLevel + "\t";
// Handle ends
if (isEndNode) {
if (isEndBone) {
writer.write(indentLevel + "End Site\n");
} else {
TransformNodeWrapper parent = node.getParent();
boolean parentHasSameName = parent != null
&& parent.getBoneType() == node.getBoneType();
writer
.write(
(level > 0 ? indentLevel + "JOINT " : "ROOT ")
+ node.getBoneType()
+ (parentHasSameName ? "2" : "")
+ "\n"
);
.write((level > 0 ? indentLevel + "JOINT " : "ROOT ") + bone.getBoneType() + "\n");
}
writer.write(indentLevel + "{\n");
// Ignore the root offset and original root offset
if (level > 0 && node != null && node.wrappedNode.getParent() != null) {
Vector3 offset = node.localTransform.getTranslation();
float reverseMultiplier = node.hasReversedHierarchy() ? -1 : 1;
float offsetScale = bvhSettings.getOffsetScale() * reverseMultiplier;
if (level > 0 && bone != null && bone.getParent() != null) {
float offsetScale = bvhSettings.getOffsetScale();
writer
.write(
nextIndentLevel
+ "OFFSET "
+ offset.getX() * offsetScale
+ 0
+ " "
+ offset.getY() * offsetScale
+ -bone.getParent().getLength() * offsetScale
+ " "
+ offset.getZ() * offsetScale
+ 0
+ "\n"
);
} else {
@@ -160,7 +120,7 @@ public class BVHFileStream extends PoseDataStream {
}
// Handle ends
if (!isEndNode) {
if (!isEndBone) {
// Only give position for root
if (level > 0) {
writer.write(nextIndentLevel + "CHANNELS 3 Zrotation Xrotation Yrotation\n");
@@ -172,14 +132,14 @@ public class BVHFileStream extends PoseDataStream {
);
}
// If the node has children
if (!node.children.isEmpty()) {
for (TransformNodeWrapper childNode : node.children) {
writeNodeHierarchy(childNode, level + 1);
// If the bone has children
if (!bone.getChildren().isEmpty()) {
for (Bone childBone : bone.getChildren()) {
writeBoneHierarchy(childBone, level + 1);
}
} else {
// Write an empty end node
writeNodeHierarchy(null, level + 1);
// Write an empty end bone
writeBoneHierarchy(null, level + 1);
}
}
@@ -196,7 +156,7 @@ public class BVHFileStream extends PoseDataStream {
}
writer.write("HIERARCHY\n");
writeNodeHierarchy(wrapSkeletonIfNew(skeleton));
writeBoneHierarchy(skeleton.getHeadBone());
writer.write("MOTION\n");
writer.write("Frames: ");
@@ -249,19 +209,9 @@ public class BVHFileStream extends PoseDataStream {
return angles;
}
private void writeNodeHierarchyRotation(TransformNodeWrapper node, Quaternion inverseRootRot)
private void writeBoneHierarchyRotation(Bone bone, Quaternion inverseRootRot)
throws IOException {
Transform transform = node.worldTransform;
/*
* if (node.hasReversedHierarchy()) { for (TransformNodeWrapper
* childNode : node.children) { // If the hierarchy is fully reversed,
* set the rotation for the upper bone if
* (childNode.hasReversedHierarchy()) { transform =
* childNode.worldTransform; break; } } }
*/
Quaternion rot = transform.getRotation();
Quaternion rot = bone.getGlobalRotation();
// Adjust to local rotation
if (inverseRootRot != null) {
@@ -284,17 +234,17 @@ public class BVHFileStream extends PoseDataStream {
);
// Get inverse rotation for child local rotations
if (!node.children.isEmpty()) {
Quaternion inverseRot = transform.getRotation().inv();
for (TransformNodeWrapper childNode : node.children) {
if (isEndNode(childNode)) {
// If it's an end node, skip
if (!bone.getChildren().isEmpty()) {
Quaternion inverseRot = bone.getGlobalRotation().inv();
for (Bone childBode : bone.getChildren()) {
if (isEndBone(childBode)) {
// If it's an end bone, skip
continue;
}
// Add spacing
writer.write(" ");
writeNodeHierarchyRotation(childNode, inverseRot);
writeBoneHierarchyRotation(childBode, inverseRot);
}
}
}
@@ -305,9 +255,9 @@ public class BVHFileStream extends PoseDataStream {
throw new NullPointerException("skeleton must not be null");
}
TransformNodeWrapper rootNode = wrapSkeletonIfNew(skeleton);
Bone rootBone = skeleton.getHeadBone();
Vector3 rootPos = rootNode.worldTransform.getTranslation();
Vector3 rootPos = rootBone.getPosition();
// Write root position
float positionScale = bvhSettings.getPositionScale();
@@ -320,7 +270,7 @@ public class BVHFileStream extends PoseDataStream {
+ rootPos.getZ() * positionScale
+ " "
);
writeNodeHierarchyRotation(rootNode, null);
writeBoneHierarchyRotation(rootBone, null);
writer.newLine();
@@ -1,49 +0,0 @@
package dev.slimevr.posestreamer;
import dev.slimevr.tracking.processor.BoneType;
import dev.slimevr.tracking.processor.TransformNode;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.OutputStream;
public class StdBVHFileStream extends BVHFileStream {
public StdBVHFileStream(OutputStream outputStream) {
super(outputStream);
}
public StdBVHFileStream(File file) throws FileNotFoundException {
super(file);
}
public StdBVHFileStream(String file) throws FileNotFoundException {
super(file);
}
@Override
protected TransformNodeWrapper wrapSkeletonNodes(TransformNode rootNode) {
TransformNode newRoot = getNodeFromHierarchy(rootNode, BoneType.HIP);
if (newRoot == null) {
return null;
}
return TransformNodeWrapper.wrapFullHierarchy(newRoot);
}
private TransformNode getNodeFromHierarchy(TransformNode node, BoneType boneType) {
if (node.getBoneType() == boneType) {
return node;
}
for (TransformNode child : node.getChildren()) {
TransformNode result = getNodeFromHierarchy(child, boneType);
if (result != null) {
return result;
}
}
return null;
}
}
Loaded 100 of 136 files, more files were not shown because too many files have changed in this diff. Show more