From 0c787b66759ec52fca3dc02a22c869393382ca64 Mon Sep 17 00:00:00 2001 From: Erimel Date: Mon, 16 Jan 2023 18:39:49 -0500 Subject: [PATCH] Bring back elbow offset (#470) --- gui/public/i18n/en-x-owo/translation.ftl | 1 + gui/public/i18n/en/translation.ftl | 1 + gui/public/i18n/es-419/translation.ftl | 1 + gui/public/i18n/et/translation.ftl | 1 + gui/public/i18n/fr/translation.ftl | 1 + gui/public/i18n/it/translation.ftl | 1 + gui/public/i18n/ja/translation.ftl | 1 + gui/public/i18n/ko/translation.ftl | 1 + gui/public/i18n/pl/translation.ftl | 1 + gui/public/i18n/pt-BR/translation.ftl | 1 + gui/public/i18n/vi/translation.ftl | 1 + gui/public/i18n/zh-Hans/translation.ftl | 1 + .../dev/slimevr/vr/processor/skeleton/SkeletonConfig.java | 6 ++++++ .../vr/processor/skeleton/SkeletonConfigOffsets.java | 6 ++++++ solarxr-protocol | 2 +- 15 files changed, 25 insertions(+), 1 deletion(-) diff --git a/gui/public/i18n/en-x-owo/translation.ftl b/gui/public/i18n/en-x-owo/translation.ftl index 07c5755b8..354dd1e30 100644 --- a/gui/public/i18n/en-x-owo/translation.ftl +++ b/gui/public/i18n/en-x-owo/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = uppew awm wength skeleton_bone-LOWER_ARM = fowewawm disyance skeleton_bone-CONTROLLER_Y = cyontwowla disance y skeleton_bone-CONTROLLER_Z = cyontwowla disance z +skeleton_bone-ELBOW_OFFSET = ewbow awfsewt ## Tracker reset buttons reset-reset_all = weset aww pwopowtions~ diff --git a/gui/public/i18n/en/translation.ftl b/gui/public/i18n/en/translation.ftl index 8f921eea2..6f7e39105 100644 --- a/gui/public/i18n/en/translation.ftl +++ b/gui/public/i18n/en/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = Upper Arm Length skeleton_bone-LOWER_ARM = Lower Arm Length skeleton_bone-CONTROLLER_Y = Controller Distance Y skeleton_bone-CONTROLLER_Z = Controller Distance Z +skeleton_bone-ELBOW_OFFSET = Elbow Offset ## Tracker reset buttons reset-reset_all = Reset all proportions diff --git a/gui/public/i18n/es-419/translation.ftl b/gui/public/i18n/es-419/translation.ftl index f08d8675d..29d46b3bf 100644 --- a/gui/public/i18n/es-419/translation.ftl +++ b/gui/public/i18n/es-419/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = Largo del brazo superior skeleton_bone-LOWER_ARM = Distancia del antebrazo skeleton_bone-CONTROLLER_Y = Distancia Y del mando skeleton_bone-CONTROLLER_Z = Distancia Z del mando +skeleton_bone-ELBOW_OFFSET = Desplazamiento del codo ## Tracker reset buttons reset-reset_all = Reiniciar todas las proporciones diff --git a/gui/public/i18n/et/translation.ftl b/gui/public/i18n/et/translation.ftl index 44f1fa952..6049982df 100644 --- a/gui/public/i18n/et/translation.ftl +++ b/gui/public/i18n/et/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = Õlavarre Pikkus skeleton_bone-LOWER_ARM = Käsivarre Kaugus skeleton_bone-CONTROLLER_Y = Kontrolleri Kaugus Y skeleton_bone-CONTROLLER_Z = Kontrolleri Kaugus Z +skeleton_bone-ELBOW_OFFSET = Küünarnuki Nihe ## Tracker reset buttons reset-reset_all = Lähtesta kõik proportsioonid diff --git a/gui/public/i18n/fr/translation.ftl b/gui/public/i18n/fr/translation.ftl index a0416c4b8..f1e00e97a 100644 --- a/gui/public/i18n/fr/translation.ftl +++ b/gui/public/i18n/fr/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = Longueur des bras supérieurs skeleton_bone-LOWER_ARM = Longueur des avant-bras skeleton_bone-CONTROLLER_Y = Distance Y des contrôleurs skeleton_bone-CONTROLLER_Z = Distance Z des contrôleurs +skeleton_bone-ELBOW_OFFSET = Écart des coudes ## Tracker reset buttons reset-reset_all = Réinitialiser toutes les proportions diff --git a/gui/public/i18n/it/translation.ftl b/gui/public/i18n/it/translation.ftl index 4e49da7f3..5d1cd2c8d 100644 --- a/gui/public/i18n/it/translation.ftl +++ b/gui/public/i18n/it/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = Lunghezza Braccia skeleton_bone-LOWER_ARM = Distanza Avambracci skeleton_bone-CONTROLLER_Y = Distanza Y Controller skeleton_bone-CONTROLLER_Z = Distanza Z Controller +skeleton_bone-ELBOW_OFFSET = Correzione Gomito ## Tracker reset buttons reset-reset_all = Ripristina tutte le proporzioni diff --git a/gui/public/i18n/ja/translation.ftl b/gui/public/i18n/ja/translation.ftl index 1430ef4b2..8d49ee067 100644 --- a/gui/public/i18n/ja/translation.ftl +++ b/gui/public/i18n/ja/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = 上腕長さ skeleton_bone-LOWER_ARM = 前腕長さ skeleton_bone-CONTROLLER_Y = コントローラ距離 Y skeleton_bone-CONTROLLER_Z = コントローラ距離 Z +skeleton_bone-ELBOW_OFFSET = 肘オフセット ## Tracker reset buttons reset-reset_all = すべてのプロポーションをリセット diff --git a/gui/public/i18n/ko/translation.ftl b/gui/public/i18n/ko/translation.ftl index 254de4110..9306ed328 100644 --- a/gui/public/i18n/ko/translation.ftl +++ b/gui/public/i18n/ko/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = 위팔 거리 skeleton_bone-LOWER_ARM = 전완 길이 skeleton_bone-CONTROLLER_Y = 컨트롤러 Y축 거리 skeleton_bone-CONTROLLER_Z = 컨트롤러 Z축 거리 +skeleton_bone-ELBOW_OFFSET = 팔꿈치 오프셋 ## Tracker reset buttons reset-reset_all = 모든 신체 비율 리셋 diff --git a/gui/public/i18n/pl/translation.ftl b/gui/public/i18n/pl/translation.ftl index 5c7e419d5..4acc96232 100644 --- a/gui/public/i18n/pl/translation.ftl +++ b/gui/public/i18n/pl/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = Długość Bicepsa skeleton_bone-LOWER_ARM = Długość PrzedRamienia skeleton_bone-CONTROLLER_Z = Controller Distance Z skeleton_bone-CONTROLLER_Y = Controller Distance Y +skeleton_bone-ELBOW_OFFSET = Offset Łokcia ## Tracker reset buttons reset-reset_all = Zresetuj wszystkie wymiary diff --git a/gui/public/i18n/pt-BR/translation.ftl b/gui/public/i18n/pt-BR/translation.ftl index 0187af736..7f5a8d91d 100644 --- a/gui/public/i18n/pt-BR/translation.ftl +++ b/gui/public/i18n/pt-BR/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = Tamanho do Braço Superior skeleton_bone-LOWER_ARM = Distância do Antebraço skeleton_bone-CONTROLLER_Y = Distância do Controle Y skeleton_bone-CONTROLLER_Z = Distância do Controle Z +skeleton_bone-ELBOW_OFFSET = Compensação do Cotovelo ## Tracker reset buttons reset-reset_all = Redefinir todas as proporções diff --git a/gui/public/i18n/vi/translation.ftl b/gui/public/i18n/vi/translation.ftl index 2167e7bb7..47a13c65d 100644 --- a/gui/public/i18n/vi/translation.ftl +++ b/gui/public/i18n/vi/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = Chiều dài tay trên skeleton_bone-LOWER_ARM = khoảng cách cánh tay skeleton_bone-CONTROLLER_Y = Khoảng cách tay cầm Y skeleton_bone-CONTROLLER_Z = Khoảng cách tay cầm Z +skeleton_bone-ELBOW_OFFSET = Lệch đo khuỷu tay ## Tracker reset buttons reset-reset_all = Reset tất cả bộ phận diff --git a/gui/public/i18n/zh-Hans/translation.ftl b/gui/public/i18n/zh-Hans/translation.ftl index 71c8399d7..2a92f58c9 100644 --- a/gui/public/i18n/zh-Hans/translation.ftl +++ b/gui/public/i18n/zh-Hans/translation.ftl @@ -58,6 +58,7 @@ skeleton_bone-UPPER_ARM = 上臂长度 skeleton_bone-LOWER_ARM = 前臂距离 skeleton_bone-CONTROLLER_Y = 控制器距离 Y skeleton_bone-CONTROLLER_Z = 控制器距离 Z +skeleton_bone-ELBOW_OFFSET = 肘部偏移 ## Tracker reset buttons reset-reset_all = 重置所有比例 diff --git a/server/src/main/java/dev/slimevr/vr/processor/skeleton/SkeletonConfig.java b/server/src/main/java/dev/slimevr/vr/processor/skeleton/SkeletonConfig.java index bbe792e7a..537cbc4f3 100644 --- a/server/src/main/java/dev/slimevr/vr/processor/skeleton/SkeletonConfig.java +++ b/server/src/main/java/dev/slimevr/vr/processor/skeleton/SkeletonConfig.java @@ -329,6 +329,12 @@ public class SkeletonConfig { getOffset(SkeletonConfigOffsets.CONTROLLER_Y), getOffset(SkeletonConfigOffsets.CONTROLLER_Z) ); + case LEFT_ELBOW_TRACKER, RIGHT_ELBOW_TRACKER -> setNodeOffset( + nodeOffset, + 0, + getOffset(SkeletonConfigOffsets.ELBOW_OFFSET), + 0 + ); } } diff --git a/server/src/main/java/dev/slimevr/vr/processor/skeleton/SkeletonConfigOffsets.java b/server/src/main/java/dev/slimevr/vr/processor/skeleton/SkeletonConfigOffsets.java index 2587b4027..0c1aac94a 100644 --- a/server/src/main/java/dev/slimevr/vr/processor/skeleton/SkeletonConfigOffsets.java +++ b/server/src/main/java/dev/slimevr/vr/processor/skeleton/SkeletonConfigOffsets.java @@ -123,6 +123,12 @@ public enum SkeletonConfigOffsets { 0.13f, new BoneType[] { BoneType.LEFT_CONTROLLER, BoneType.RIGHT_CONTROLLER, BoneType.LEFT_HAND, BoneType.RIGHT_HAND } + ), + ELBOW_OFFSET( + 20, + "elbowOffset", + 0.0f, + new BoneType[] { BoneType.LEFT_ELBOW_TRACKER, BoneType.RIGHT_ELBOW_TRACKER } ),; public static final SkeletonConfigOffsets[] values = values(); diff --git a/solarxr-protocol b/solarxr-protocol index 46123c8b0..6d4c79277 160000 --- a/solarxr-protocol +++ b/solarxr-protocol @@ -1 +1 @@ -Subproject commit 46123c8b0f7de62de656ca23fa71974475c60d90 +Subproject commit 6d4c7927708d523e5cd36e228c71024d8f5cdd79