Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand skeleton height config #1156

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from
Draft

Expand skeleton height config #1156

wants to merge 29 commits into from

Conversation

ButterscotchV
Copy link
Member

@ButterscotchV ButterscotchV commented Sep 8, 2024

Replaces the basic height configuration that is part of AutoBone with one that includes the floor height. This value is also used when resetting proportions, so you no longer need to be in a specific pose for that.

Requires SlimeVR/SolarXR-Protocol#147.

Remaining tasks:

  • Handle not having positional trackers
  • Load current height/floor values from config
    • Loaded values are valid if height - floor > 0.4
  • Value validation
    • Values are valid if height - floor > 0.4
    • Must warn user they cannot continue because the resulting height is invalid
  • Warn user if no height is configured when resetting proportions (default will be used)

@ButterscotchV ButterscotchV added Priority: Normal The default priority Area: GUI Related to the GUI Type: Enhancement Adds or improves a feature Area: Translation Improvements or additions to translations Area: Server Related to the server labels Sep 8, 2024
@ButterscotchV ButterscotchV added the Status: Blocked by other issue Progress cannot be made until linked issue is resolved label Sep 8, 2024
@ButterscotchV ButterscotchV changed the title Add skeleton height config Expand skeleton height config Sep 8, 2024
Comment on lines 33 to 40
const beneathFloor = useMemo(
() =>
!(
hmdTracker?.tracker.position &&
hmdTracker.tracker.position.y >= MIN_HEIGHT
),
[hmdTracker?.tracker.position?.y]
);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably only consider this if the headset is connected or not, the height could be very off, but could be correct with the floor height changed. Maybe we could give an option to use the manual height when the smol warning is shown?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this better?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but any positional head tracker should work, though idk if it matters if we just go for HMD

@github-actions github-actions bot added Area: Skeletal Model Deals with the model of the skeleton and its pose Area: Application Protocol Related to communication with apps like the GUI, overlay, games Area: AutoBone The AutoBone feature labels Nov 10, 2024
@ButterscotchV ButterscotchV added the Difficulty: Large refactor Requires modifying large sections of the codebase label Nov 10, 2024
@ImUrX
Copy link
Member

ImUrX commented Nov 14, 2024

done added all remaining tasks ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Application Protocol Related to communication with apps like the GUI, overlay, games Area: AutoBone The AutoBone feature Area: GUI Related to the GUI Area: Server Related to the server Area: Skeletal Model Deals with the model of the skeleton and its pose Area: Translation Improvements or additions to translations Difficulty: Large refactor Requires modifying large sections of the codebase Priority: Normal The default priority Status: Blocked by other issue Progress cannot be made until linked issue is resolved Type: Enhancement Adds or improves a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants