Currently, I am in the process of transferring an existing three.js project to WebVR with Oculus Rift compatibility. This application takes an STL file as input, generates a THREE.Mesh
based on it, and displays it in a virtual scene. While I was able to successfully run the app in Firefox Nightly using the VREffect plugin for three.js and VRControls, I encountered an issue where the models rendered in VR do not appear truly 3D. When I move the HMD forwards or backwards, the active 3D model does not change its distance from me and I cannot view different sides of the model. It seems as though the model is merely a flat background image stuck in place. Interestingly, when I include a THREE.AxisHelper
in the scene, it moves correctly as I adjust the position of the HMD.
Initially, the app utilized THREE.OrbitControls
which allowed for proper rotation and movement of the models.
Given the extensive amount of source code involved, I can provide specific snippets upon request.