Skip to content

38leinaD/JRift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Build for Linux x86_64

Linux is now supported; need to build native library yourself via Makefile, too.

You need to set JAVA_HOME and OCULUS_SDK environment variables prior to building.

In Fedora 18:

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
export OCULUS_SDK=/home/<YOU>/Downloads/OculusSDK

About

Java Wrapper for the Oculus Rift HMD and Sensors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •