mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-03 23:32:29 -08:00
Remove calibration range VRChat warning
This commit is contained in:
1 parent
2243e1583c
commit
a66c43feb7
5 files changed
+1
-15
No files matched your search
@@ -1596,7 +1596,6 @@ vrc_config-legacy_mode = Use Legacy IK Solving
|
||||
vrc_config-disable_shoulder_tracking = Disable Shoulder Tracking
|
||||
vrc_config-tracker_model = FBT Tracker Model
|
||||
vrc_config-avatar_measurement_type = Avatar Measurement
|
||||
vrc_config-calibration_range = Calibration Range
|
||||
vrc_config-calibration_visuals = Display Calibration Visuals
|
||||
vrc_config-user_height = User Real Height
|
||||
|
||||
|
||||
@@ -192,14 +192,6 @@ export function VRCWarningsPage() {
|
||||
<Localized id={onOffKey(state.state.calibrationVisuals)} />
|
||||
}
|
||||
/>
|
||||
<SettingRow
|
||||
{...settingRowProps('calibrationRangeOk')}
|
||||
name="vrc_config-calibration_range"
|
||||
recommendedValue={meterFormat.format(
|
||||
state.recommended.calibrationRange
|
||||
)}
|
||||
value={meterFormat.format(state.state.calibrationRange)}
|
||||
/>
|
||||
<SettingRow
|
||||
{...settingRowProps('trackerModelOk')}
|
||||
name="vrc_config-tracker_model"
|
||||
|
||||
@@ -25,7 +25,6 @@ val VRC_VALID_KEYS = setOf(
|
||||
"shoulderTrackingOk",
|
||||
"shoulderWidthCompensationOk",
|
||||
"userHeightOk",
|
||||
"calibrationRangeOk",
|
||||
"calibrationVisualsOk",
|
||||
"trackerModelOk",
|
||||
"spineModeOk",
|
||||
@@ -101,7 +100,6 @@ fun computeRecommendedValues(server: VRServer, userHeight: Float): VRCConfigReco
|
||||
(!hasLeftHandWithPosition || !hasRightHandWithPosition || isMissingAnArmTracker) &&
|
||||
((hasLeftHandWithPosition && hasRightHandWithPosition) || isMissingAShoulderTracker),
|
||||
userHeight = userHeight / EYE_HEIGHT_TO_HEIGHT_RATIO,
|
||||
calibrationRange = 0.25f,
|
||||
trackerModel = VRCTrackerModel.AXIS,
|
||||
calibrationVisuals = true,
|
||||
avatarMeasurementType = VRCAvatarMeasurementType.HEIGHT,
|
||||
@@ -111,7 +109,6 @@ fun computeRecommendedValues(server: VRServer, userHeight: Float): VRCConfigReco
|
||||
fun isVRCConfigValid(validity: VRCConfigValidity, mutedWarnings: List<String>): Boolean = (validity.legacyModeOk || "legacyModeOk" in mutedWarnings) &&
|
||||
(validity.shoulderTrackingOk || "shoulderTrackingOk" in mutedWarnings) &&
|
||||
(validity.userHeightOk || "userHeightOk" in mutedWarnings) &&
|
||||
(validity.calibrationRangeOk || "calibrationRangeOk" in mutedWarnings) &&
|
||||
(validity.calibrationVisualsOk || "calibrationVisualsOk" in mutedWarnings) &&
|
||||
(validity.trackerModelOk || "trackerModelOk" in mutedWarnings) &&
|
||||
(validity.avatarMeasurementTypeOk || "avatarMeasurementTypeOk" in mutedWarnings)
|
||||
@@ -120,7 +117,6 @@ fun computeValidity(values: VRCConfigValues, recommended: VRCConfigRecommendedVa
|
||||
legacyModeOk = values.legacyMode == recommended.legacyMode,
|
||||
shoulderTrackingOk = values.shoulderTrackingDisabled == recommended.shoulderTrackingDisabled,
|
||||
trackerModelOk = values.trackerModel == recommended.trackerModel,
|
||||
calibrationRangeOk = abs(values.calibrationRange - recommended.calibrationRange) < 0.1f,
|
||||
userHeightOk = abs(recommended.userHeight - values.userHeight) < 0.1f,
|
||||
calibrationVisualsOk = values.calibrationVisuals == recommended.calibrationVisuals,
|
||||
avatarMeasurementTypeOk = values.avatarMeasurementType == recommended.avatarMeasurementType,
|
||||
|
||||
@@ -42,7 +42,6 @@ internal suspend fun buildVRCConfigValues(
|
||||
legacyMode = intValue("VRC_IK_LEGACY") == 1,
|
||||
shoulderTrackingDisabled = intValue("VRC_IK_DISABLE_SHOULDER_TRACKING") == 1,
|
||||
userHeight = doubleValue("PlayerHeight")?.toFloat() ?: -1.0f,
|
||||
calibrationRange = doubleValue("VRC_IK_CALIBRATION_RANGE")?.toFloat() ?: -1.0f,
|
||||
trackerModel = when (intValue("VRC_IK_TRACKER_MODEL")) {
|
||||
0 -> VRCTrackerModel.SPHERE
|
||||
1 -> VRCTrackerModel.SYSTEM
|
||||
|
||||
+1
-1
Submodule solarxr-protocol updated: 9914738f89...5f646a000e.
Reference in new issue
Block a user