Skip to content

voxel/voxel-vr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

voxel-vr

WebVR voxel.js plugin

screenshot

Renders the scene side by side in stereo 3D for use with WebVR. Requires voxel-engine-stackgl, and game-shell-fps-camera, load with voxel-plugins.

Replaces the render handler of gl-now to emit gl-render twice per tick, one for each eye, with the viewport and matrices set appropriately. If used on a WebVR-enabled browser (experimental Firefox or Chrome), or on a platform supported by webvr-polyfill, will attempt to use VR settings from a head-mounted VR device.

Warning: incomplete

See also

  • MozVR
  • voxel-oculus - Oculus Rift stereo view for three.js-based voxel-engine, includes lens distortion (note this predates WebVR, with WebVR the browser is expected to perform the lens distortion instead)
  • voxel-oculus-vr - uses OculusRiftEffect.js from three.js
  • three.js example effects - OculusRiftEffect, StereoEffect, and VREffect (WebVR)

License

MIT