Coder Social home page Coder Social logo

paddymahoney / virtual_display Goto Github PK

View Code? Open in Web Editor NEW

This project forked from valvesoftware/virtual_display

0.0 3.0 0.0 5.51 MB

An example OpenVR driver for demonstrating the IVRVirtualDisplay interface.

License: BSD 3-Clause "New" or "Revised" License

C++ 99.64% MATLAB 0.24% Batchfile 0.13%

virtual_display's Introduction

Virtual Display

An example OpenVR driver for demonstrating the IVRVirtualDisplay interface: https://github.com/ValveSoftware/openvr/blob/master/headers/openvr_driver.h#L2372

The IVRVirtualDisplay interface is provided to allow OpenVR driver authors access to the final composited backbuffer intended for the headset’s display. The primary expected use case is for wireless transport, though this could also be used for saving output to disk or streaming video. From the perspective of the runtime, the VR compositor is interfacing with a virtual rather than an actual display.

Prerequisites

Both Steam and SteamVR must be installed and working properly. Steam can be downloaded here: http://store.steampowered.com/ This sample relies on a second video card installed in the machine to act as the "remote display". An HTC Vive headset should be connected to this secondary graphics adapter. See the included PDF for more details.

Supported platforms

This example is currently Windows-only.

Installation

Two bat files are included in the root for registering the current directory with SteamVR. This must be done for the SteamVR runtime to find the driver. These files have hardcoded paths to the default Steam instalation location which you may need to edit by hand if you've installed Steam in a different location.

Building

The provided solution and project files were built using Visual Studio 2013. You will need to build both the Win32 and x64 project configurations in either Release or Debug.

Running

Once built, ensure your headset is plugged into the secondary graphics card and that it is in Extended Mode (i.e. shows up as part of th Windows desktop). Then launch SteamVR.

Troubleshooting

Check Steam/logs/vrserver.txt or step through the code. The parameters used to launch virtual_display.exe are printed to the log, which can be helpful for launching from the debugger. For debugging drivers, you can connect to Steam and then use the Child Process Debugging Addon from Microsoft.

virtual_display's People

Contributors

aleiby avatar

Watchers

 avatar  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.