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

Correct initial headset view #1

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

SeanCurtis-TRI
Copy link

In starting a session, we create a reference space such that the headset is at the same location in the scene as the non-VR camera's position. Furthermore, the space turns so that the headset is looking in the same heading as the non-VR camera was. It's not fully aligned, we don't want to turn looking forward into looking down. We make sure that the scene's up frame is still parallel with the direction of Earth's gravity.

Incidentally beef up the test html to provide testing and information about more of the functionality.

In starting a session, we create a reference space such that the headset
is at the same location in the scene as the non-VR camera's position.
Furthermore, the space turns so that the headset is looking in the same
heading as the non-VR camera was. It's not *fully* aligned, we don't want
to turn looking forward into looking down. We make sure that the scene's
up frame is still parallel with the direction of Earth's gravity.

Incidentally beef up the test html to provide testing and information about
more of the functionality.
@WawasCode
Copy link
Owner

It's really well made! Thanks Sean.

@WawasCode WawasCode merged commit 831add0 into WawasCode:vrdev Oct 5, 2023
WawasCode added a commit that referenced this pull request Oct 5, 2023
WawasCode added a commit that referenced this pull request Oct 10, 2023
WawasCode added a commit that referenced this pull request Oct 10, 2023
WawasCode added a commit that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants