RiftRay
RiftRay copied to clipboard
Step into the worlds of Shadertoy with an Oculus Rift.
RiftRay
github.com/jimbo00000/RiftRay
Oculus Rift CV-1 enabled viewer for the worlds of Shadertoy.
Instructions
Press the remote's center button or the Xbox Controller's start button to enter a shadertoy. Press again to return to the gallery. Use the Xbox Controller's d-pad to adjust render resolution and cinemascope for image clarity or comfort.
Features
- Floating AntTweakbar pane for live shader parameter editing
- Dynamic framebuffer scaling
- Vertical FOV adjustment(per developer guide section 8.5.4)
- Seamless VR/monitor transitions(thanks to CV1!)
Related work
-
Shadertoy VR - Qt-enabled shader editing in VR
- Part of Brad Davis(jherico)'s Oculus Rift in Action
- boxplorer2 - Marius Schilder
- Fragmentarium - native cross-platform shader IDE
- GLSL Sandbox - web app, similar to Shadertoy
- Synthclipse - plugin for Eclipse
- Julius Horsthuis' videos
- Mandelbulb VR - Peder Norrby, Trapcode
- Shdr - Online GLSL shader editor, viewer and validator
- ShaderShop - shader manipulation interface
Controls
Gamepad and Hydra are supported, but optional. To highlight a shader's thumbnail in the gallery, look at it or point the right Hydra controller at it.
Remote:
- Center button - Enter shader/return to gallery
- Back button - Toggle Tweakbar pane
Keyboard:
- Space - Recenter view
- Enter - Enter shader/return to gallery
- Escape - Quit
- WASD - Movement
- QE13 - Movement(elevation), Yaw
- Shift/Control - Slow/fast movement
- PgUp/PgDn - Open/Close cinemascope(letterbox)
- Tab - Toggle Tweakbar pane
- Backspace - Toggle OVR Perf HUD
- \(Backslash) - Click in pane
- /(Slash) - Reposition pane
- R - Reset world position
Mouse:
- Wheel - adjust vertical - Cinemascope | Letterbox | vFOV
- Middle click - Toggle Tweakbar pane
- Hold Right click & Left Click - Enter shader/return to gallery
- Hold Left click & Wheel - Adjust render target size manually
Xbox Controller:
- Start - Enter shader/return to gallery
- Back - Toggle Performance HUD
- Left analog stick - Movement
- Right analog stick - Yaw
- A - Move up
- B - Move down
- Y - Toggle Tweakbar pane
- X - Click in pane
- Left Bumper - Recenter view
- Right Bumper - Reset position
- Left Trigger - Move quickly
- Right Trigger - Move slowly
- Dpad - Resolution, vFOV
Acknowledgments
All shader code under shaders/shadertoy/ was written by the top developers in the field and is covered by the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License http://creativecommons.org/licenses/by-nc-sa/3.0/us/ unless stated otherwise in the code.
Huge Thanks to:
- BeautyPi: Iñigo Quilez and Pol Jeremias for Shadertoy and all the code and tutorials on his site www.iquilezles.org
- All the members of Shadertoy for their beautiful GLSL code
- Mikael Hvidtfeldt Christensen for this blog post blog.hvidtfeldts.net
- Micah Dedmon for Mac porting and packaging
- elmindreda for the awesome Glfw3 framework
- Palmer Luckey and Oculus for the Oculus Rift and OVR SDK
- Philip Rideout for the excellent CMake/OpenGL code
- Philippe Decaudin for AntTweakBar
- Milan Ikits and Marcelo Magallon for GLEW
- Christophe Riccio for GLM