Giter Site home page Giter Site logo

openvr-go's Introduction

Openvr-go v0.4.2

Openvr-go is an Go programming language wrapper for the OpenVR SDK published by Valve for VR hardware.

This package is currently synced up to v1.0.10 of OpenVR.

voxels_ss

UNDER CONSTRUCTION

At present, it is very much in an alpha stage with new development happening to complete the API exposed by the OpenVR SDK.

Requirements

The wrapper library itself doesn't have any dependencies besides Mathgl. The connectiontest sample in the examples folder also doesn't have any additional dependencies.

The other samples are graphical and use the following libraries, though they are not imported by the core openvr-go module itself:

  • GLFW (v3.1) - creating windows and providing the OpenGL context
  • Fizzle (v0.2.0) - provides the graphics engine
  • Go GL - provides the backend implementation of OpenGL for Fizzle.

Note: At present, some examples might required the development branch of Fizzle. You'll have to manually git checkout the development branch to compile these.

Installation

The dependency Go libraries for graphical examples can be installed with the following commands.

go get github.com/go-gl/glfw/v3.1/glfw
go get github.com/go-gl/mathgl/mgl32
go get github.com/go-gl/gl/v3.3-core/gl
go get github.com/tbogdala/fizzle

This does assume that you have the native GLFW 3.1 library installed already accessible to Go tools.

Additionally, the appropriate openvr_api.dll or libopenvr_api.so file from vendored/openvr/bin/<platform> will either need to be copied into each example directory being built or it will need to be accessible system wide.

Each sample can be built by going to that directory in a shell and executing a go build command. For example:

cd $GOPATH/src/github.com/tbogdala/openvr-go/examples/basiccube
go build
cp ../../vendored/openvr/bin/win64/openvr_api.dll .
./basiccube.exe

Current Features

Partial implementation of the following interfaces:

  • IVRSystem
  • IVRCompositor
  • IVRRenderModels

Implementation Notes

Some minor patches have been applied to the vendored openvr library version to better support linux.

LICENSE

Original source code in openvr-go is released under the BSD license. See the LICENSE file for more details.

Projects in the vendor folder may have their own LICENSE file.

The MTCORE32px texture pack files in examples/voxels/assets/textures are licensed CC BY-SA 3.0 by celeron55, Perttu Ahola. https://github.com/Napiophelios/MTCORE32px

openvr-go's People

Contributors

tbogdala avatar

Watchers

James Cloos 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.