Giter VIP home page Giter VIP logo

ofxopenvrutil's Introduction

ofxOpenVrUtil

openFrameworks addon for bridging OpenVR, a refactored version of perevalovds/ofxOpenVR.

OpenVR is a cross-platform open source API to access VR system through SteamVR (by ValveSoftware). Main support target is HTC VIVE (I was using VIVE PRO for developping/debugging) but it might be compatible to Oculus Rift S, Valve Index or other VR hardwares which can play SteamVR for just displaying a scene. But for major hardware vendors, such like Oculus(facebook) and HTC published native SDK which are supposed to run faster than via OpenVR.

example-scene

example-scene

example-ViveTrackers

example-ViveTrackers

Feature

  • Rendering controllers (mesh + texture)

  • Simple interface: just submit texture to show in HMD!

    class ofApp : public ofBaseApp {
    public:
        ofxOpenVrUtil::Interface vr;
        // ...
    
        void setup() {
            vr.setup();
        }
        void update() {
            vr.update(); // update device orientations
    
            // ... update your textures for both eyes
    
            // submit textures to VR!
            vr.submit(tex_l, vr::Eye_Left);
            vr.submit(tex_r, vr::Eye_Right);
        }
        void exit() {
            vr.close();
        }
    }
    
  • VIVE Only: Stencil Mesh (Hidden Area Mesh) to avoid pixels to be rendererd. (17% faster)

  • VIVE PRO Only: See-through from stereo-camera on HMD

  • Controller inputs as ofEvents

  • Gizmo UI in VR

  • Vive trackers

  • Run without HMD (see an example)

Setup

  • OpenVR is a submodule of this repo, so we have to git submodule

    > cd of\addon
    > git clone https://github.com/nama-gatsuo/ofxOpenVrUtil
    > git submodule init
    > git submodule update
    
    
  • You can then use the OF Project Generator to generate projects with the appropriate headers and libraries included.

ofxopenvrutil's People

Contributors

nama-gatsuo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ofxopenvrutil's Issues

Setup missing > cd ofxOpenVrUtil

hi, in Setup you should add one line:

> cd of\addons 
> git clone https://github.com/nama-gatsuo/ofxOpenVrUtil
> cd ofxOpenVrUtil // 3j add
> git submodule init
> git submodule update

Update events not firing?

I was wondering if you could provide an example for how to bind to Update events, such as onJoyStickUpdate. I'm binding it to an AxisMove function but can't seem to get it to fire, all the button press ones work well though.

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.