This page has been translated automatically.
Programming
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

app_oculus_00

This article describes the data/samples/plugins/app_oculus_00.cpp sample.

The app_oculus_00 sample demonstrates how to get access to the functions of the AppOculus plugin and then set the world scale (via engine.oculus.setPositionScale()). Also the example shows how to recenter the sensor orientation when the rkey is pressed.

To run the sample, perform the following:

  1. Get and set up Oculus Rift PC Runtime.
  2. In UnigineSDK Browser, go to the Optionstab and set theStereo 3D option to Oculus Rift.
  3. Go to the Samples -> UnigineScript -> App and run the sample by clicking Run.

AppOculus plugin sample

See Also

Last update: 2017-07-03
Build: ()