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

Fix pointer duplication issue in WebXR Hand Examples #24142

Merged
merged 2 commits into from
May 30, 2022
Merged

Fix pointer duplication issue in WebXR Hand Examples #24142

merged 2 commits into from
May 30, 2022

Conversation

dmliao
Copy link
Contributor

@dmliao dmliao commented May 27, 2022

Related issue: #24055

Description

The WebXR hand examples were made with the assumption that the hands connected event would only fire once, which is the current behavior in Oculus Quest, but not in Hololens (which send connected / disconnected events as hands enter and leave the view). This changes the pointer creation logic in the hands examples so that it'd only create the pointer on the connected event if no pointer has already been created.

Note that I do not own a Hololens device so I have not personally tested this to make sure that the behavior is correct on Hololens. An alternative to this would be to destroy the pointers on disconnected events, and recreate it on connected.

@mrdoob mrdoob added this to the r142 milestone May 30, 2022
@mrdoob mrdoob merged commit fc357b9 into mrdoob:dev May 30, 2022
@mrdoob
Copy link
Owner

mrdoob commented May 30, 2022

Thanks!

mrdoob added a commit that referenced this pull request May 30, 2022
* Fix pointer duplication issue in WebXR Hand Examples

* Update OculusHandPointerModel.js

Co-authored-by: mrdoob <[email protected]>
abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
* Fix pointer duplication issue in WebXR Hand Examples

* Update OculusHandPointerModel.js

Co-authored-by: mrdoob <[email protected]>
snagy pushed a commit to snagy/three.js-1 that referenced this pull request Sep 21, 2022
* Fix pointer duplication issue in WebXR Hand Examples

* Update OculusHandPointerModel.js

Co-authored-by: mrdoob <[email protected]>
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