I'm pretty new with THREE.js and webXR. The current spec is very confusing to me. the webXR API examples don't show any way to use the THREE.js renderer, and the examples from Three seem to be in a "in between" stage of using webVR vs using webXR.
The current way that I'm aware of is to set the session
of renderer.vr
to a session that has been requested. While doing this does get me the 3d scene with the camera background, I'm at a loss when it comes to how the scene actually functions. Using requestHitTest()
on that session doesn't seem to function, and my default cube is floating somewhere beneath the floor.
When I log the position of the camera while using the demo, this also comes back as 0,0. Is the camera not being moved?
Is there any good place to get accurate examples on how to get these functions to work?