Skip to content
A sample program to demonstrate how to work with the Fove SDK in C++
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
FOVE SDK 0.16.0 Update SDK to v0.16.0, including API update Nov 27, 2018
.clang-format Add clang format file and format the code base. May 31, 2017
.gitignore Add info on how to build with Qt Creator as an alternative to Visual … May 22, 2017
CMakeLists.txt Update SDK to v0.16.0, including API update Nov 27, 2018
DXUtil.cpp Add clang format file and format the code base. May 31, 2017
DXUtil.h Update SDK to v0.16.0, including API update Nov 27, 2018
DataExample.cpp DataExample: Use waitForNextEyeFrame API to capture full ET frame rate Nov 29, 2018
DirectX11Example.cpp Update SDK to v0.16.0, including API update Nov 27, 2018
LICENSE.txt Initial commit of FOVE C++ example Repo, with DirectX11 example Feb 6, 2017
Model.h Implement eye tracking in the DirectX 11 example Jun 1, 2017
NativeUtil.h Move Window creation code into WindowsUtil.h May 31, 2017
OpenGLExample.cpp Update SDK to v0.16.0, including API update Nov 27, 2018
OpenGLUtil.cpp Add an OpenGL example along the lines of the DirectX example. Jul 13, 2017
OpenGLUtil.h Update SDK to v0.16.0, including API update Nov 27, 2018
README.md Update readme Jul 14, 2017
Shader.frag.hlsl Precompile HLSL shaders May 24, 2017
Shader.vert.hlsl Implement eye tracking in the DirectX 11 example Jun 1, 2017
Util.cpp Update SDK to v0.16.0, including API update Nov 27, 2018
Util.h Update SDK to v0.16.0, including API update Nov 27, 2018
WindowsUtil.cpp Fix missing return statement Mar 12, 2018
WindowsUtil.h Add an OpenGL example along the lines of the DirectX example. Jul 13, 2017

README.md

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.

You can’t perform that action at this time.