Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.12 KB

File metadata and controls

33 lines (21 loc) · 1.12 KB

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

Buliding

Windows

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.

Mac

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

Linux

You need to install "build-essentials" and "g++-multilib"

run "make"