vizicities
vizicities copied to clipboard
Add Oculus Rift support
Seeing as I now have an Oculus Rift, adding support for it in ViziCities is inevitable. Basic integration should include changing the render output to a stereographic view, and changing the camera orientation based on the Oculus head-tracking.
These may be useful:
- https://github.com/Instrument/oculus-bridge
- http://blog.thematicmapping.org/2013/10/terrain-visualization-with-threejs-and.html
- https://github.com/mrdoob/three.js/blob/master/examples/js/controls/OculusControls.js
- https://github.com/mrdoob/three.js/blob/master/examples/js/effects/OculusRiftEffect.js
- https://github.com/possan/oculus-rest
- http://threejs.org/examples/#webgl_effects_oculusrift
- http://threejs.org/examples/#misc_controls_oculusrift
"Why am I here?"
This will probably prove useful in due time... Looks like Mozilla is starting to experiment with Web based VR (and Chrome is too). http://blog.bitops.com/blog/2014/06/26/first-steps-for-vr-on-the-web/
Consistent high frame rate is necessary to avoid sickness in VR. I will be submitting a bunch of pull requests for optimizations that reference this issue.
Also check out https://github.com/borismus/webvr-boilerplate for a pretty easy way to extend Three.js rendering for Cardboard and Oculus VR support
