diff --git a/gui/app/public/i18n/en/translation.ftl b/gui/app/public/i18n/en/translation.ftl index 7030d206f..f2facafff 100644 --- a/gui/app/public/i18n/en/translation.ftl +++ b/gui/app/public/i18n/en/translation.ftl @@ -249,19 +249,11 @@ skeleton_bone-LOWER_ARM-desc = This is the distance from your elbows to your wrists. To adjust it, adjust Arm Length properly and modify it until your elbow trackers line up with your real elbows. -skeleton_bone-HAND_Y = Hand Distance Y -skeleton_bone-HAND_Y-desc = - This is the vertical distance from your wrists to the middle of your hand. - To adjust it for motion capture, adjust Arm Length properly and modify it until your - hand trackers line up vertically with the middle of your hands. - To adjust it for elbow tracking from your controllers, set Arm Length to 0 and - modify it until your elbow trackers line up vertically with your wrists. -skeleton_bone-HAND_Z = Hand Distance Z -skeleton_bone-HAND_Z-desc = - This is the horizontal distance from your wrists to the middle of your hand. - To adjust it for motion capture, set it to 0. - To adjust it for elbow tracking from your controllers, set Arm Length to 0 and - modify it until your elbow trackers line up horizontally with your wrists. +skeleton_bone-HAND = Hand Length +skeleton_bone-HAND-desc = + This is the distance from your wrists to your knuckles. + To adjust it, adjust Arm Length properly and modify it until your + hand trackers line up vertically with your knuckles. ## Tracker reset buttons reset-reset_all = Reset all proportions diff --git a/gui/app/src/hooks/onboarding.ts b/gui/app/src/hooks/onboarding.ts index 09442565c..9ac05b579 100644 --- a/gui/app/src/hooks/onboarding.ts +++ b/gui/app/src/hooks/onboarding.ts @@ -16,14 +16,12 @@ import { ResetsSettingsRequestT, ResetsSettingsResponseT, RpcMessage, - SkeletonBone, SkeletonSettingsRequestT, SkeletonSettingsResponseT, SkeletonTogglesT, VRCOSCSettingsRequestT, VRCOSCSettingsResponseT, } from 'solarxr-protocol'; -import { useManualProportions } from './manual-proportions'; type OnboardingAction = | { type: 'progress'; value: number } @@ -116,10 +114,6 @@ export function useProvideOnboarding() { } ); - const { changeBoneValue } = useManualProportions({ - type: 'linear', - }); - const onboardingEnded = () => { setConfig({ doneOnboarding: true }); if (!skeletonSettings || !resetsSettings || !vrcOscSettings) return; @@ -142,10 +136,6 @@ export function useProvideOnboarding() { const osc = Object.assign(new VRCOSCSettingsResponseT(), vrcOscSettings); osc.enabled = vrcOsc ?? false; sendRPCPacket(RpcMessage.ChangeVRCOSCSettingsRequest, osc); - - if (mocap) { - changeBoneValue({ bone: SkeletonBone.HAND_Z, type: 'bone', newValue: 0 }); - } }; const onboardingStarted = () => { diff --git a/server/core/src/main/java/dev/slimevr/skeleton/proportions.kt b/server/core/src/main/java/dev/slimevr/skeleton/proportions.kt index f558ff6f1..256e58ed7 100644 --- a/server/core/src/main/java/dev/slimevr/skeleton/proportions.kt +++ b/server/core/src/main/java/dev/slimevr/skeleton/proportions.kt @@ -25,8 +25,7 @@ val DEFAULT_PROPORTIONS = mapOf( SkeletonBone.SHOULDERS_WIDTH to 0.35f, SkeletonBone.UPPER_ARM to 0.26f, SkeletonBone.LOWER_ARM to 0.26f, - SkeletonBone.HAND_Y to 0.08f, - SkeletonBone.HAND_Z to 0f, + SkeletonBone.HAND to 0.08f, ) // Set of SkeletonBones whose lengths sum to standing height (spine + legs). @@ -59,8 +58,7 @@ private val BONE_VALUE_TO_OFFSETS: Map> = map SkeletonBone.SHOULDERS_WIDTH to BodyPartMap(mapOf(BodyPart.LEFT_SHOULDER to Vector3.NEG_X / 2f, BodyPart.RIGHT_SHOULDER to Vector3.POS_X / 2f)), SkeletonBone.UPPER_ARM to BodyPartMap(mapOf(BodyPart.LEFT_UPPER_ARM to Vector3.NEG_Y, BodyPart.RIGHT_UPPER_ARM to Vector3.NEG_Y)), SkeletonBone.LOWER_ARM to BodyPartMap(mapOf(BodyPart.LEFT_LOWER_ARM to Vector3.NEG_Y, BodyPart.RIGHT_LOWER_ARM to Vector3.NEG_Y)), - SkeletonBone.HAND_Y to BodyPartMap(mapOf(BodyPart.LEFT_HAND to Vector3.NEG_Y, BodyPart.RIGHT_HAND to Vector3.NEG_Y)), - SkeletonBone.HAND_Z to BodyPartMap(mapOf(BodyPart.LEFT_HAND to Vector3.NEG_Z, BodyPart.RIGHT_HAND to Vector3.NEG_Z)), + SkeletonBone.HAND to BodyPartMap(mapOf(BodyPart.LEFT_HAND to Vector3.NEG_Y, BodyPart.RIGHT_HAND to Vector3.NEG_Y)), ) private val BONE_VALUE_TO_HEAD_OFFSETS: Map> = mapOf( @@ -88,7 +86,7 @@ val DEFAULT_HEIGHT = DEFAULT_PROPORTIONS.height() // whose length scales with user height. // Non-height bones (HEAD, HIPS_WIDTH) are absent; they keep fixed defaults from DEFAULT_SKELETON_STATE. private val HEIGHT_SCALED_BONE_RATIOS: Map = ( - HEIGHT_CONTRIBUTING_BONES + setOf(SkeletonBone.UPPER_ARM, SkeletonBone.LOWER_ARM, SkeletonBone.HAND_Y, SkeletonBone.FOOT_LENGTH) + HEIGHT_CONTRIBUTING_BONES + setOf(SkeletonBone.UPPER_ARM, SkeletonBone.LOWER_ARM, SkeletonBone.HAND, SkeletonBone.FOOT_LENGTH) ).associateWith { (DEFAULT_PROPORTIONS[it] ?: 0f) / DEFAULT_HEIGHT } // Sums the HEIGHT_CONTRIBUTING_BONES lengths to derive standing height. @@ -123,7 +121,7 @@ fun toBoneOffsets(lengths: Map): BoneOffsets { BONE_VALUE_TO_OFFSETS[cfg]?.let { for ((bone, vec) in it) tail[bone] = (tail[bone] ?: Vector3.ZERO) + length * vec } BONE_VALUE_TO_HEAD_OFFSETS[cfg]?.let { for ((bone, vec) in it) head[bone] = (head[bone] ?: Vector3.ZERO) + length * vec } } - lengths[SkeletonBone.HAND_Y]?.let { + lengths[SkeletonBone.HAND]?.let { tail.putAll(getFingerOffsets(it)) head.putAll(getFingerHeadOffsets(it)) } diff --git a/solarxr-protocol b/solarxr-protocol index 6e02c027e..fb1b2b335 160000 --- a/solarxr-protocol +++ b/solarxr-protocol @@ -1 +1 @@ -Subproject commit 6e02c027e48352ea23a559a3496c6f350832f6d9 +Subproject commit fb1b2b335e1d83590b0e148902a6ac05073bbce9