Live coding in VR with the Oculus Rift, Firefox WebVR, JavaScript and Three.js

3,227
by Jay, 10 years ago
0 0
I built a live-coding web app for the Oculus Rift where you code in JavaScript using Three.js and watch the world change around you in real-time. It's quite a niche application since you need to have an Oculus Rift, be a JavaScript programmer, be sufficiently familiar with Three.js *and* you need to be able to touch-type but it's a surprisingly engaging experience! If happen to have a Rift and you want to try it out yourself, download the Windows or OS X or dev build of Firefox that includes the WebVR APIs from http://blog.bitops.com/blog/2014/08/20/updated-firefox-vr-builds/ and visit http://brianpeiris.github.io/RiftSketch with your Rift hooked up. The code's messy but it's up on GitHub: https://github.com/brianpeiris/RiftSketch Edit: Since people keep asking, the music is actually just one of the royalty-free tracks from YouTube's audio library called "Grass" by "Silent Partner": https://www.youtube.com/audiolibrary_download?vid=2545f834238bcd11