|
VR Events Diagrams
|
|
VR training allow users to create an interactive environment inside the VR Viewer. It can integrate several inputs with built-in functions in order to generate desirable reactions. For example, when the VR viewer enters a specific area, an alarm sound plays or goes on. Inputs can take the form of a Scene State, an Animation Sequence, a Scene Object, or an Action. Functions include events and responses that are logically combined using the Boolean operations. For easier usability, functions are created using a diagram of smart blocks and connections that link the corresponding components together in a visual scripting manner.
|
|
|
|
Getting Started
|
|
When user selects the “Training Builder” option from the “VR Workbench” ribbon, a dialog box below appears, that contains the following options:
1) The current/selected Diagram.
2) Create a new diagram.
3) Edit Variables and initial values.
4) Remove selected diagram.
5) All needed Inputs, events and responses functions and Boolean operations.
6) Unlimited working area.
7) Help.
|
|
|
|
|
|
-
For better understanding this system, it should be read as an "If-then statement”. The User can add nodes, events, response functions and Boolean operations by clicking on them or by drag and drop into the working area. The connection lines define the information flow of inputs-blocks-events.
|
|
|
|
Icons
|
Inputs list
|
|
Icons
|
Events List
|
|
Icons
|
Responses List
|
|
Icons
|
Booleans List
|
|
Sequence
|
|
|
If Scene Start
|
|
|
Then Apply Scene State
|
|
|
Variable Equals String State
|
|
Scene State
|
|
|
If Scene State Applied
|
|
|
Then Play Sequence
|
|
|
Objects Overlap State
|
|
Scene Node (object)
|
|
|
If Sequence Ended
|
|
|
Then Stop Sequence
|
|
|
Object is Grabbed State
|
|
String
|
|
|
If Node Entered Node
|
|
|
Then Glow Object
|
|
|
And Operation
|
|
Variable
|
|
|
If Node Exited Node
|
|
|
Then Unglow Object
|
|
|
Or Operation
|
|
Action
|
|
|
If Node Triggered
|
|
|
Then Teleport to Camera
|
|
|
Not Operation
|
|
Boolean
|
|
|
If Node Grab Started
|
|
|
Then Show Message Box
|
|
|
|
|
Sound File
|
|
|
If Node Grab Ended
|
|
|
Then Change Node Action
|
|
|
|
|
|
|
|
If Delay
|
|
|
Then Change Node Grabable State
|
|
|
|
|
|
|
|
|
|
|
Then Change Variable Value
|
|
|
|
|
|
|
|
|
|
|
Then Play Sound
|
|
|
|
|
|
|
|
|
|
|
Then Video Action
|
|
|
|
|
|
|
|
1. Let’s make a simple exercise using the Training Builder. The main aim of this exercise is to run an alarm system (light and buzzer) when the user enters a specific area. To do so, we need to select the "Node Entered Node" from Events. Then we generate two nodes from the “Inputs” box: The first one is for the user, and the second is for the specific area.
|
|
|
|
|
|
2. Now select the user (viewer start position) from objects tree or directly from 3D area and press on this icon to pick it up from the first node, and select the specific area (you can make a specific area by creating a box and make the Alpha value equals zero for its material) and drop it into the second node.
|
|
|
|
|
|
3. For connecting these two nodes together with "Node Entered Node" event just hold and press on the red point from first node and drop it in the "SceneNodeA" red point in "Node Entered Node" event as shown in the image, and the second node with the "SceneNodeB" red point as shown in the image below.
|
|
|
|
|
|
4. The two nodes are now connected with the "Node Entered Node" event as shown below.
|
|
|
|
|
|
5. Now we need to add two different responses function: "Play Sequence" to start the light animation (you need to create an animation sequence before) and "Play Sound" for buzzer, also add two inputs "Sequence" and "Sound File" to pick the light animation and the buzzer sound effect file on them, then connect these inputs block with response functions, and "Node Entered Node" event with these two response functions by the same way in the step 3.
|
|
|
|
|
|
-
In edit variables and initial values dialog below, user can define infinite numbers of variables and get values for them, the variable values must begin with letters and can only contain letters, numbers and underscores. These variables can be used to maintain certain conditions such as, the status of doors and windows (closed/opened), garage (empty/busy), engine (working/not working) and so on. Then these variables can change with event functions inside the VR Viewer.
|
|
|
|
|
|
The following video shows you an example for using VR Training Maker.
|
|
|
|