Git Product home page Git Product logo

jrift's Introduction

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

jrift's People

Contributors

38leinad avatar danjo133 avatar krisds avatar yuripourre avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.