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

Hands don't show up in AR #229

Open
MateSteinforth opened this issue Dec 30, 2022 · 6 comments
Open

Hands don't show up in AR #229

MateSteinforth opened this issue Dec 30, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@MateSteinforth
Copy link

using the hands will work as controllers, emitting a ray, but the hand geometry is not displayed.

@saitonakamura
Copy link
Sponsor Collaborator

@MateSteinforth can you say what device you're using? This might be related to #213

@saitonakamura saitonakamura added the bug Something isn't working label Jan 16, 2023
@rekliner
Copy link
Contributor

This is another symptom of #219 . Without isHandtracking setting to true the hand models are not displayed.

@CodyJasonBennett
Copy link
Member

I missed this and #219. Taking a look.

@wtong2017
Copy link

wtong2017 commented Mar 16, 2023

I had the same issue too. After several hours of searching, I found that was because the hand-tracking feature is not enabled in AR mode using the default <ARButton /> (at least for my case). After I used the customized <XRButton /> with the hand-tracking enabled in the optional features, the hand-tracking works well in AR!

<XRButton
  mode={'AR'}
  sessionInit={{ optionalFeatures: ['hand-tracking', ...] }}
>
</XRButton>

It would be nice to add this to the documentation for people who want to enable hand-tracking in AR.

@rekliner
Copy link
Contributor

Huh. @wtong2017 I'm confirming that this is somehow related to the default AR/VR button.
Here is an example using a custom AR/VR button: xr-next-starter.vercel.app
Here's is an example with both standard AR & VR buttons shown: ekc8wh.csb.app

The first shows hands and sets isHandtracking in AR, the second only in VR. Another clue to this bug is that the button that works in AR breaks the VR mode. @CodyJasonBennett you had thought initially this might be the session init getting out of sync with three.js but it might just be the button!

@apendua
Copy link

apendua commented Jan 4, 2024

I confirm the fix described by @wtong2017 worked for me as well. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants