Oct 23, 2015 This semester, I will be developing a virtual reality data visualization for the Center’s VR equipment based on the music listening habits of library users. This first blog post is about the use of the Processing programming language as a tool for the rapid prototyping of VR experiences. Overall, ManualsLib acts as a rich resource for user manuals that will serve all electronic appliance owners. — makeuseof.com This handy web application can help you save both time and effort as you browse the web to find a particular manual. Oculus Go is a portable, all-in-one VR headset made for entertainment. Watch your favorite TV, movies, and live events from almost anywhere. No phone to drop in.
Oculus Rift Library for Processing
The library is currently distributed by PDE format (OculusRift.pde).First, see and run OculusRift_BasicExample.
##Examples###OculusRift_BasicExampleThis example shows simple scene that contains a wall, a floorboard, a cube, and stereo picture.
###OculusRift_PanoramaViewIt shows a spherical panorama view. The included picture was taken by RICOH THETA.
Gear Vr Library
###OculusRift_RadarExampleIt shows a radar denoting user's head direction.
###OculusRift_VideoSeeThrough
This is an example for making augmented reality. You need web camera for running it. This code uses sarxos's webcam-capture library instead of Processing's Capture class, because jna.jar used by Processing's Capture class conflicts with jna-4.1.0.jar used in OculusRift.pde.
##EnvironmentIt was checked that it worked in the following environment.
- Oculus Rift DK2 (currently only for DK2)
- Oculus Runtime V0.5.0.1-beta
- Processing 2.2.1
- Windows 8.1 and OS X Yosemite (v10.10.2)
How to use
Skeleton
Please make the function named 'onDrawScene(int eye)' and write a code about 3D scene in it. In the function, the scale is approximately real scale and the unit is a millimeter. The default eye position is on the origin (0, 0, 0) in the scene. The parameter 'eye' gives LEFT or RIGHT.
API
Method | Description |
---|---|
boolean enableHeadTracking(); | Enables head tracking. |
void draw(); | Draws a stereo image for Oculus Rift display. |
void resetHeadState(); | Resets the head state matrix by current state. |
PMatrix3D getMatrix(); | Gets the current head state matrix. |
Acknowledgements
Thanks a lot for the following codes.