vsTASKER 7 User Manual
×
Menu
Index

GDI OSG

 
The GDI OSG Sprite allows an OpenSceneGraph window to be displayed on the HMI.
It will use a 3D terrain and will add all options defined in a (optional) OSG Viewer (than must be disabled).
Only one GDI OSG can be instanciated on one HMI.
When an HMI is using an OSG output, the OSG Viewer cannot be enabled. It must be disabled and setup for the HMI OSG only.
 
 
On the HMI grid, add a GDI OSG:
or
 
 
Give it a name, resize it so that it get a good size of the HMI.
 
Create a scenario.
Open the Terrain::Raster Maps:
and load the following synthetic map:
D:\VirtualSim\vsTasker\7\Data\Map\Synthetic\field.map
 
Now, go back to the HMI.
Open the GDI OSG Sprite and in its property window, load the corresponding terrain database in File:
D:/VirtualSim/vsTasker/7/Runtime/OSG/Terrains/field/master.ive
 
set Camera Mode to Terrain Centered and the Z Offset to 100 meters.
 
Compile and run.
The HMI window will display the OSG terrain in 3D.
 
 
The GdiOsg Sprite can use the setting of an OSG Viewer if one is defined. Otherwise, it will create one with default values.
The OSG Viewer must be disabled (and a Console viewer can be used, or any other).
 
The GdiOsg filename and Camera settings have been deprecated and removed from the window. The terrain filename must now be set in the Terrain::3D Settings and the camera must be set in the OSG Viewer itself.
 
vsTASKER simulation engine will create only one osg_root node for the whole simulation.
 
 The OSG setting is done in the user modifiable /src/OSG/osg_setup.cpp
 This file is compiled with the project when needed.