Skip to content

Conversation

@jorodi
Copy link
Contributor

@jorodi jorodi commented Aug 19, 2024

Description

This fixes the Could not find xr_standard_trigger_pressed_min in the model warning seen in three.js examples that use hand inputs: e.g. webxr_vr_handinput.html.

It also prevents unnecessary processing by the device, since XRControllerModelFactory is meant for non-hand input sources: i.e. controller models.

When hand tracking is enabled for a WebXR capable device and new XRControllerModelFactory() is used, its connected event listener does not currently prevent a hand input source from also calling fetchProfile().

This adds a check to prevent a hand input source from also calling fetchProfile().

@jorodi jorodi changed the title fix: add webxr input source hand check to prevent calling fetchProfile WebXR: Prevent hand input source processing by XRControllerModelFactory Aug 21, 2024
@jorodi
Copy link
Contributor Author

jorodi commented Sep 16, 2024

Is there anything else required for this PR?

This is my first time contributing here.

@Mugen87 Mugen87 added this to the r169 milestone Sep 16, 2024
@Mugen87 Mugen87 merged commit 3ddd8de into mrdoob:dev Sep 16, 2024
@Mugen87 Mugen87 changed the title WebXR: Prevent hand input source processing by XRControllerModelFactory XRControllerModelFactory: Prevent hand input source processing. Sep 16, 2024
@jorodi jorodi deleted the fix-webxr-controller-connect-check branch September 26, 2024 12:56
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