Index of /download/YT/temp/gary_gan-unity-vs-phonedialvep-97fabce5e646/Assets/OSVRUnity

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[DIR]Editor/ 2017-10-11 10:00 -  
[DIR]Prefabs/ 2017-10-11 10:01 -  
[DIR]Resources/ 2017-10-11 10:01 -  
[DIR]Sample/ 2017-10-11 10:03 -  
[DIR]Textures/ 2017-10-11 10:03 -  
[DIR]src/ 2017-10-11 10:04 -  
[   ]NOTICE 2017-07-25 11:07 92  
[   ]LICENSE.meta 2017-07-25 11:07 133  
[   ]NOTICE.meta 2017-07-25 11:07 133  
[TXT]CONTRIBUTING.html.meta 2017-07-25 11:07 136  
[   ]Editor.meta 2017-07-25 11:07 192  
[   ]Prefabs.meta 2017-07-25 11:07 192  
[   ]Resources.meta 2017-07-25 11:07 192  
[   ]Sample.meta 2017-07-25 11:07 192  
[   ]Textures.meta 2017-07-25 11:07 192  
[   ]src.meta 2017-07-25 11:07 192  
[TXT]CONTRIBUTING.html 2017-07-25 11:07 4.1K 
[TXT]LICENSE 2017-07-25 11:07 11K 

OSVR-Unity README

This is an Alpha Release, and probably not entirely idiomatic for Unity. Check back for updates often.

Documentation

For links to details, documentation, and support, visit the repository on github: https://github.com/OSVR/OSVR-Unity#readme

Known Issues

This list only includes Unity-specific issues that have a substantial impact on the development experience. For a full list of issues, see the GitHub issue tracker

Basic Principles and Files

On a machine where you're running an OSVR-Unity application, you need to run an OSVR server, part of the OSVR-Core builds. For convenience, a 32-bit OSVR Server install is bundled in the OSVR-Unity snapshot archives. Contact us if you need help.

The OSVR-Unity.unitypackage package should contain the x86 and x86_64 binary plugins, the compiled Managed-OSVR wrapper, the OSVRUnity scripts (in the Assets directory), and a directory of prefabs. Import this package into your project.

There is also a few sample/demo applications included, ranging from fairly sparse environments also used for development of the code/prefabs, to a high-detail demo.

ClientKit object

You need exactly one instance of OSVR.Unity.ClientKit in your project: get one using the ClientKit prefab. You need to set the app ID: use a reversed DNS name as seen elsewhere (Java, Android, etc). This just uniquely identifies your application to the OSVR software. If you fail to do this, you'll see an error in the Unity console.

Tracking

For trackers (Pose, Position, Orientation), there are prefabs of nodes that update their transform accordingly. You'll need to set the path you want to use. Please see the C/C++ documentation for client apps to find valid interface paths. (Note that the OSVR-Unity package handles normalization of the coordinate system to the Unity standard: ignore the one seen in the C++ documentation.)

Manually handling callbacks

This involves two pieces:

Examples for buttons and analog triggers are included in the minigame scene.

Paths for these callbacks that provide useful information can be found in the main OSVR-Core documentation on the "Writing a client application" page.

Other interaction

Any other interaction with the OSVR framework should go directly through the Managed-OSVR (.NET) wrapper without any Unity-specific adaptations. See that source for examples of button and analog callbacks, as well as display parameter access (ideally used to set up the display properly). In terms of API, the Managed-OSVR API is effectively a direct translation of the C++ wrappers of OSVR ClientKit, so please see the main OSVR-Core client documentation for more information.

Execution

A standalone player built for Windows may end up needing the -adapter N argument, where N is a Direct3D display adapter, to put the rendered output on the HMD display.