Skip to content

SantanMaddi/RiftRay

 
 

Repository files navigation

RiftRay

Oculus Rift DK2 enabled viewer for the worlds of Shadertoy.

Instructions

Tap the side of the Rift with one finger to dismiss the Health and Safety Warning and recenter your view. Gaze at a picture in the gallery and tap the Rift to be transported. Tap again to return to the gallery.

Features

  • Floating AntTweakbar pane for live shader parameter editing
  • Dynamic framebuffer scaling
  • Vertical FOV adjustment(per developer guide section 8.5.4)
  • Xbox controller, Gamepad support
  • Sixense Razer Hydra support
  • Tracking volume display(on when near the boundary)
  • Auxiliary window display mirroring

Controls

Gamepad and Hydra are supported, but optional. You can get by with only the HMD for input by tapping on it to select a shader in the gallery. To highlight a shader's thumbnail in the gallery, look straight at it or point the right Hydra controller at it.

HMD:

  • Tap on Headset - Enter shader/return to gallery

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)
  • F5-F8 - Adjust render target size manually
  • F9-F11 - VSync Off/On/Adaptive
  • Tab - Toggle Tweakbar pane
  • \(Backslash) - Click in pane
  • /(Slash) - Reposition pane
  • R - Reset world position
  • Print Screen - Save shader variables to settings directory

Mouse:

  • Wheel - adjust vertical - Cinemascope | Letterbox | vFOV
  • Middle click - Toggle Tweakbar pane
  • Left click & drag - Yaw
  • Right click & drag - Movement in horizontal plane
  • Middle click & drag - Movement in vertical plane
  • Hold Right click & Left Click - Enter shader/return to gallery
  • Hold Right click & Wheel - Adjust render target size manually

Xbox Controller:

  • Start - Enter shader/return to gallery
  • 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

Gravis Gamepad Pro:

  • Right side buttons - Movement
  • Left Shoulder 1(upper) - Move quickly/Reposition pane
  • Left Shoulder 2(lower) - Move slowly
  • Start - Enter shader
  • Select - Toggle Tweakbar pane
  • Right Shoulder 1(upper) - Click in pane

Razer Hydra:

  • Right Controller translation/rotation - Select shader, pointer in pane
  • Right Stick - Movement(press in for vertical plane)
  • Right Trigger - Move quickly
  • Right Start Button - Enter shader/return to gallery
  • Right Bumper - Toggle Tweakbar pane
  • Right Button 1 - Click in pane
  • Right Button 2 - Reposition pane
  • Left Stick - Resolution, vFOV

Related work

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:

About

Step into the worlds of Shadertoy with an Oculus Rift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • GLSL 62.0%
  • C++ 33.8%
  • C 2.5%
  • CMake 1.7%