Coder Social home page Coder Social logo

godot-openhmd-asset's Introduction

Godot OpenHMD GDNative module

This module is provided as is, all files are contained within the addons/godot-openhmd folder

At this point in time this asset only has a Windows 64bit build. Mac OS X and Linux builds will follow soon.

Source code for this module can be found here: https://github.com/GodotVR/godot_openhmd

Also note that we have a support asset containing a number of useful scenes to get you going building VR applications in Godot: https://github.com/GodotVR/godot-vr-common

Setting up OpenHMD

The OpenHMD solution currently does not support rendering directly to the HMD. Output for both eyes will be to the main Godot window. You will need to configure your Godot project to run fullscreen and mirror the display.

A version that handles direct output to the HMD in a similar fashion as the OpenVR and Oculus modules do will hopefully become available in the not too distant future.

Because OpenHMD supports multiple devices there is a configuration object you need to instantiate first:

# get our configuration object
openhmd_config = preload("res://addons/godot-openhmd/OpenHMDConfig.gdns").new()

After instantiating this object you will need to set up the ARVR interface:

var interface = ARVRServer.find_interface("OpenHMD")
if interface and interface.initialize():
	get_viewport().arvr = true

By default the first active HMD that is found will be automatically used.

Further documentation will follow soon.

Licensing

The Godot OpenHMD module is supplied under an MIT License. The LICENSE file in this repository only covers the Godot part of the module. OpenHMD itself falls under a BSL-1.0 license. This module further uses:

About this repository

This repository was created by and is maintained by Bastiaan Olij a.k.a. Mux213

You can follow me on twitter for regular updates here: https://twitter.com/mux213

Videos about my work with Godot including tutorials on working with VR in Godot can by found on my youtube page: https://www.youtube.com/channel/UCrbLJYzJjDf2p-vJC011lYw

godot-openhmd-asset's People

Contributors

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