Drag[en]gine Script Module DragonScript
1.23
|
VR system. More...
Static Public Member Functions | |
Input devices | |
static int | getDeviceCount () |
Number of input devices. More... | |
static InputDevice | getDeviceAt (int index) |
Information for input device at index. More... | |
static int | indexOfDeviceWithID (String id) |
Index of device with identifier or -1 if absent. More... | |
static int | indexOfButtonWithID (int device, String id) |
Index of button with identifier on device at index or -1 if absent. More... | |
static int | indexOfAxisWithID (int device, String id) |
Index of axis with identifier on device at index or -1 if absent. More... | |
static int | indexOfFeedbackWithID (int device, String id) |
Index of feedback with identifier on device at index or -1 if absent. More... | |
static bool | getButtonPressed (int device, int button) |
Button at index on device at index is pressed down. More... | |
static bool | getButtonTouched (int device, int button) |
Button at index on device at index is touched. More... | |
static float | getAxisValue (int device, int axis) |
Value of axis at index on device at index. More... | |
static float | getFeedbackValue (int device, int feedback) |
Value of feedback at index on device at index. More... | |
static void | setFeedbackValue (int device, int feedback, float value) |
Set value of feedback at index on device at index. More... | |
Parameters | |
static int | getParameterCount () |
Number of parameters available. More... | |
static ModuleParameter | getParameterInfo (int index) |
Parameter information. More... | |
static ModuleParameter | getParameterInfo (String name) |
Named parameter information or null if not found. More... | |
static String | getParameterValue (String name) |
Parameter value. More... | |
static void | setParameterValue (String name, String value) |
Set named parameter value. More... | |
static String | sendCommand (String command) |
Send command. More... | |
Management | |
static bool | runtimeUsable () |
VR Runtime is usable. More... | |
static void | startRuntime () |
Start VR. More... | |
static void | stopRuntime () |
Stop VR. More... | |
static bool | isRuntimeRunning () |
VR is running. More... | |
static Camera | getCamera () |
Camera to render on head mounted display or null. More... | |
static void | setCamera (Camera camera) |
Set camera to render on head mounted display. More... | |
static bool | supportsPassthrough () |
VR Runtime supports presenting user environment inside the rendered world. More... | |
static bool | getEnablePassthrough () |
Presenting user environment inside the rendered world is enabled. More... | |
static void | setEnablePassthrough (bool enable) |
Enable presenting user environment inside the rendered world. More... | |
static float | getPassthroughTransparency () |
Transparency of user environment presented inside the rendered world. More... | |
static void | setPassthroughTransparency (float transparency) |
Set transparency of user environment presented inside the rendered world. More... | |
void | requestFeatureEyeGazeTracking (VRFeatureSupportLevel level) |
Set feature request level for eye gaze tracking. More... | |
void | requestFeatureFacialTracking (VRFeatureSupportLevel level) |
Set feature request level for facial tracking. More... | |
VR system.
This is a native class. This is a pure static class. The class can not be instantiated
|
static |
Value of axis at index on device at index.
|
static |
Button at index on device at index is pressed down.
|
static |
Button at index on device at index is touched.
|
static |
Camera to render on head mounted display or null.
|
static |
Information for input device at index.
|
static |
Number of input devices.
|
static |
Presenting user environment inside the rendered world is enabled.
Returns false if SupportsPassthrough() returns false.
|
static |
Value of feedback at index on device at index.
|
static |
Number of parameters available.
|
static |
Parameter information.
EOutOfBoundary | index less than 0 or greater than or equal to getParameterCount(). |
|
static |
Named parameter information or null if not found.
|
static |
Parameter value.
EInvalidParam | Parameter with name not found. |
|
static |
Transparency of user environment presented inside the rendered world.
Has no effect if SupportsPassthrough() returns false. A value of 0 hides the environment. A value of 1 shows the environment. Values in between blend over.
|
static |
Index of axis with identifier on device at index or -1 if absent.
|
static |
Index of button with identifier on device at index or -1 if absent.
|
static |
Index of device with identifier or -1 if absent.
|
static |
Index of feedback with identifier on device at index or -1 if absent.
|
static |
VR is running.
VR systems typically are required to be activated before they can be used. Starting VR connects the engine to the VR system present on the host system and activates VR support on various modules. VR mode can be started and stopped at any time.
void Dragengine.VRSystem.requestFeatureEyeGazeTracking | ( | VRFeatureSupportLevel | level | ) |
Set feature request level for eye gaze tracking.
Tracking eye gaze features is consider a high privacy operation by most VR environments. Enabling this feature usually requires the user to explicitely agree. Furthermore eye gaze tracking is not required for the majority of games and applications. For these reasons eye gaze tracking is disabled by default. To enable set the feature request level to optional or required.
The set feature request level takes effect only the next time StartRuntime() is called. It has no effect while the VR runtime is running.
If the VR module does not support eye gaze tracking and sFeatureSupport::efslRequired is specified an exception is thrown.
void Dragengine.VRSystem.requestFeatureFacialTracking | ( | VRFeatureSupportLevel | level | ) |
Set feature request level for facial tracking.
Facial tracking includes eye tracking and mouth tracking. Tracking facial features is consider a high privacy operation by most VR environments. Enabling this feature usually requires the user to explicitely agree. Furthermore facial tracking typically is an expensive operation and can degrade performance. Last but not least facial tracking is not required for the majority of games and applications. For this reason facial tracking is disabled by default. To enable set the feature request level to optional or required.
The set feature request level takes effect only the next time StartRuntime() is called. It has no effect while the VR runtime is running.
If the VR module does not support facial tracking and sFeatureSupport::efslRequired is specified an exception is thrown.
|
static |
VR Runtime is usable.
Returns true if a call to startRuntime() is likely to succeed or not.
|
static |
Send command.
|
static |
Set camera to render on head mounted display.
If set to null fades back to safe scene as defined by VR Runtime.
|
static |
Enable presenting user environment inside the rendered world.
Has no effect if SupportsPassthrough() returns false.
|
static |
Set value of feedback at index on device at index.
|
static |
Set named parameter value.
EInvalidParam | Parameter with name not found. |
|
static |
Set transparency of user environment presented inside the rendered world.
Has no effect if SupportsPassthrough() returns false. A value of 0 hides the environment. A value of 1 shows the environment. Values in between blend over.
|
static |
Start VR.
VR systems typically are required to be activated before they can be used. Starting VR connects the engine to the VR system present on the host system and activates VR support on various modules. VR mode can be started and stopped at any time.
|
static |
Stop VR.
VR systems typically are required to be activated before they can be used. Starting VR connects the engine to the VR system present on the host system and activates VR support on various modules. VR mode can be started and stopped at any time.
|
static |
VR Runtime supports presenting user environment inside the rendered world.