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
On the image tracking when I set reference to 'local', but it is working great on 'viewer' space. I don't understand what is cause the offset.
there is my code.
let session = frame.session;
session.requestAnimationFrame(onXRFrame);
let pose = !trackingPostLocal ? frame.getViewerPose(localReferenceSpace):frame.getViewerPose(viewerReferenceSpace);
if (pose) {
gl.bindFramebuffer(gl.FRAMEBUFFER, session.renderState.baseLayer.framebuffer);
const view = pose.views[0];
if (setViewportSize === false){
const viewport = session.renderState.baseLayer.getViewport(view);
renderer.setSize(viewport.width, viewport.height)
setViewportSize = true;
}
camera.matrix.fromArray(view.transform.matrix)
camera.projectionMatrix.fromArray(view.projectionMatrix);
camera.updateMatrixWorld(true);
}
The text was updated successfully, but these errors were encountered:
TomDDH
changed the title
Tracking Have offset when I set referencerspcae to "local"
Tracking images having unexpected offset when I set referencerspcae to "local"
Aug 23, 2021
On the image tracking when I set reference to 'local', but it is working great on 'viewer' space. I don't understand what is cause the offset.
there is my code.
The text was updated successfully, but these errors were encountered: