Git Product home page Git Product logo

fovecppsample's Introduction

FOVE C++ Examples

This repository contains C++ programs that demonstrate how to use the FOVE SDK.

The data example shows how to:

  • Properly connect to the service
  • Read out data and check for error

The DirectX11 example demonstrates the following:

  • DirectX setup
  • Orientation tracking
  • Position tracking
  • Stereo rendering
  • Submitting frames to the FOVE Compositor
  • Eye tracking (objects are highlighted when gazed upon)
  • Displaying the rendered scene in a window in addition to the HMD

The OpenGL example is similar to the DirectX11 example, except:

  • Uses OpenGL for rendering
  • Uses the WGL_NV_DX_interop2 extension to render to a DirectX11 surface (needed for submission to the FOVE compositor)

How to build

To build and run, follow these steps:

Visual Studio:

  1. Ensure CMake (https://cmake.org/) and Visual Studio 2015 or later are installed.
  2. Run CMake to generate a 64-bit Visual Studio project (make sure to select a 64 bit generator such as "Visual Studio 14 2015 Win64").
  3. Open the generated Visual Studio project, and build and run from there.

Qt Creator + MSVC tool chain:

  1. Ensure that you have at least CMake 3.7, Qt Creator 3.8, and the MSVC tool chain (2015 or later) installed.
  2. Setup a cmake kit in the Qt Creator options, and ensure that it points to the right cmake/compiler/debugger/generator (use the same generators as suggested above).
  3. Open the CMakeList.txt file with Qt Creator, ensure that you've selected the kit you made, and build and run from there.

If you run into any difficulties, hit us up on the forums. http://forum.getfove.com/

If you have improvements you would like to submit to the sample project, send us a pull request.

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.