GithubHelp home page GithubHelp logo

module_openvr's Introduction

module_openvr

A OpenVR module for OSPRay and HTC Vive, currently just a 360 image viewer app. Uses OSPRay to render panoramic 360 images and displays them in VR.

Building

First clone the module into OSPRay's modules/ directory.

cd $OSPRAY/modules
git clone [email protected]:ospray/module_openvr.git

Then cd back to your OSPRay build directory and run CMake with the module enabled via -DOSPRAY_MODULE_OPENVR=ON. The GLM and SDL2 libraries are required to build the module and the OpenVR SDK is required for VR support. If these libraries are installed in non-standard locations (or you're on Windows) you can specify the root directories of each library when running CMake. For example:

cmake <other OSPRay params> \
	-DOSPRAY_MODULE_OPENVR=ON \
	-DGLM_DIR=<..> -DSDL2_DIR=<..> -DOPENVR_DIR=<..>

If you don't have the OpenVR SDK on your system or don't specify OPENVR_DIR the app will build to just show the desktop mirror view with a fixed viewpoint.

Running

The module currently only contains the osp360 app which will use OSPRay to render a panoramic 360 image of a loaded model and then display this in VR as an environmeny map, allowing you to look around. To run pass the model to be loaded:

./osp360 <path to model>

Note: Currently the camera position is hard-coded for the Crytek Sponza model from the OSPRay demos page.

module_openvr's People

Contributors

carsonbrownlee avatar twinklebear avatar

Watchers

 avatar  avatar  avatar

Forkers

shugraphics

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.