Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Fix camera / head position appears way above ground for OpenVR#734

Merged
FejZa merged 1 commit intodevelopmentfrom
fix/base-camera-data-provider
Dec 22, 2020
Merged

Fix camera / head position appears way above ground for OpenVR#734
FejZa merged 1 commit intodevelopmentfrom
fix/base-camera-data-provider

Conversation

@FejZa
Copy link
Contributor

@FejZa FejZa commented Dec 22, 2020

XRTK - Mixed Reality Toolkit Pull Request

Overview

This PR fixes the issue where with OpenVR the user would appear way above the ground when anything else than 0 was configured for the "HeadHeight" in the camera data provider profile.

The issue was in BaseCameraDataProvider. The "ApplyHeadHeight" method runs even in editor mode. And since in edit mode XRDevice.isPresent will always return false, the artifical head height is applied to the TrackedPoseDriver on the camera. Then when the application is run, it wasn't being reset back to 0f once the device tracking kicks in.

@FejZa FejZa added the Ready for review PR finished primary development, open for review label Dec 22, 2020
@FejZa FejZa self-assigned this Dec 22, 2020
@FejZa FejZa merged commit 66f4b56 into development Dec 22, 2020
@FejZa FejZa deleted the fix/base-camera-data-provider branch December 22, 2020 12:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Ready for review PR finished primary development, open for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants