exokitxr / exokit

Native VR/AR/XR engine for JavaScript 🦖
MIT License
994 stars 117 forks source link

A-Frame cursor does not track camera #1178

Closed avaer closed 5 years ago

avaer commented 5 years ago
node . -x webvr -t https://cursor-tests.glitch.me/

This site works fine in fake vr display mode (-t), but the camera Object3D does not track the headset as it should on Oculus Rift.

(Reported by @paperkettle)

chrisnovello commented 5 years ago

I noticed things parented to aframe's camera werent moving in exokit when moving my head. theyre just stuck in the scene.. (iirc this is only when vr is entered.. the first frame that exokit flashes before entering vr appears to show attached objects transformed according to head correctly) then realized the camera's object3d was showing 0s for x, y, and z... this is despite the fact that the camera does visually translate in the scene (in the headset, as you move your head you move through the scene)

avaer commented 5 years ago

A-Frame defers legacy WebVR a-camera pose tracking to THREE.js.

The bug is that Exokit is not updating the legacy WebVR pose property for the Oculus Desktop ingest case.