neiz / JRift

Java Wrapper for the Oculus Rift HMD and Sensors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JRift

Java Wrapper (JNI) for the Oculus Rift HMD and Sensors.

Currently exposes the HMDInfo and yaw/pitch/roll angles of the sensors.

You can get a first alpha build (32-bit JRE) for Windows from here: https://dl.dropbox.com/u/8241387/OVR/JRift_alpha.zip

Want to build it yourself? Compile the Java-part into a JAR (JRift) and compile the C++ part into a .dll (JRiftLibrary). The JRiftLibrary comes with a Visual Studio 2010 solution project so it should build by only properly setting up two depenencies:

  • jni.h header include of your installed JDK (include /include and /win32
  • OVR SDK headers and library references. Get the SDK from Oculus VR and see this wiki entry on how to set up the includes and library references properly.

Build for Mac OS X

Thanks to krisds, MacOSX is supported as well; need to build native library yourself via Makefile, though.

You need to set OCULUS_SDK environment variable prior to building.

Example:

export OCULUS_SDK=/Users/<YOU>/Downloads/OculusSDK

About

Java Wrapper for the Oculus Rift HMD and Sensors

License:MIT License