You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2023. It is now read-only.
Hello, I've done extensive testing and found the following: on step 4, part 4 of Add a reticle the following code is on the tutorial:
async onSessionStarted() {
// ...
// Setup an XRReferenceSpace using the "local" coordinate system.
this.localReferenceSpace = await **_session_**.requestReferenceSpace("local");
// Add these lines:
// Create another XRReferenceSpace that has the viewer as the origin.
this.viewerSpace = await this.**_session_**.requestReferenceSpace("viewer");
// Perform hit testing using the viewer as origin.
this.hitTestSource = await this.**_session_**.requestHitTestSource({ space: this.viewerSpace });
// ...
}
and it doesn't work, it throws the onNoXRDevice exception.
The functional code, found in step-04 folder is the following:
// Setup an XRReferenceSpace using the "local" coordinate system.
this.localReferenceSpace = await this.**_xrSession_**.requestReferenceSpace('local');
// Create another XRReferenceSpace that has the viewer as the origin.
this.viewerSpace = await this.**_xrSession_**.requestReferenceSpace('viewer');
// Perform hit testing using the viewer as origin.
this.hitTestSource = await this.**_xrSession_**.requestHitTestSource({ space: this.viewerSpace });
Hello, I've done extensive testing and found the following: on step 4, part 4 of Add a reticle the following code is on the tutorial:
and it doesn't work, it throws the onNoXRDevice exception.
The functional code, found in step-04 folder is the following: