IG Host
You should upgrade to
In the simulation industry, an image generator (IG) receives data from a host via an interface (such as CIGI). For demonstration of IG features and debugging purposes, we started developing IG Host — a cross-platform and cross-protocol solution. Currently, IG Host is a simplified version of CIGI HEMU and includes a number of useful advantages:
- Simplified entity control
- Transparent packet transfer (requests and responses can be viewed in the console)
- CIGI Debug mode
- Improved LOS responses
It is planned to add the HLA and DIS protocols in next versions.
Running IG Host#
IG Host is a part of CIGI demo. Therefore, to try out IG Host, you need to download and run CIGI demo. In the IG Configurator window, click the Run IG Host button.
Then click Connect.
Using IG Host in IG Projects#
To run IG Host with your IG application, copy the ig_host binaries from the demos/cigi_demo/bin/ folder to your project:
- For Windows — ig_host_x64.pdb, ig_host_x64.exe, ig_host_x64d.exe
- For Linux — ig_host_x64, ig_host_x64d
IG Host Settings and Parameters#
To make things work, you need to perform the following actions:
- Connect IG Host with IG.
- Open the world (database) that provides the environment.
- Add an entity.
- Create a view attached to the entity, which is displayed in IG.
- Enable control of the entity movements.
General Settings#
In the IG Host window, open the Settings window (File -> Settings) and set the following parameters:
- Async Mode currently should be disabled.
- Geodetic Origin — the coordinates that are set for the Geodetic Pivot in the world you have created.
- Spawn Point — the coordinates of the entity spawn location.
- CIGIConnector settings, if necessary.
Adding and Loading the World#
To have an environment displayed in IG, you need to load a world (database).
- Open the Database List window (Windows -> Database List).
- Select a database from the list.
- Click Load.
- Check if the world has been loaded in the IG window. Click Connect/Reconnect in the Settings window, if necessary.
You can add more databases to the list. The databases you want to add should be located inside the /data folder of the project you work with. To add another world to the database list:
- Click Add.
- Select the *.world file to be loaded.
- Specify Latitude and Longitude of Geodetic Pivot in that world.
- Click OK.
- Reopen IG and IG Host.
Adding an Entity#
The entity is added as follows:
- Open the Entity List window (Windows -> Entity List).
- Double-click an entity from the list to open Entity Properties.
- Set the entity Type, and check its position (most importantly along the Z axis to make sure it is not under the ground).
- Set other parameters, if necessary.
Setting the View#
The view defines what actually is going to be displayed in IG.
To open the view settings:
- Open the Views list (Windows -> Views List).
- Double-click a view from the list to open its properties.
- Use Position and Rotation to adjust the camera relative to the entity. Both positive and negative values can be used.
- Parent Entity ID — ID of the entity to which camera is attached. By changing this ID, you can switch between entities.
Controlling the Entity#
To move the entity around in IG:
- Select the entity in the Entity List.
- Open the EntityControl window (Windows -> Entity Control).
- Activate the Enabled option.
- Click in the black area within the IG Host window.
- Use WASDQE buttons and mouse movements to control the entity. Speed is controlled by using Shift + Mouse Scroll button.
There are three Motion Types available:
- Spectator — camera follows the entity.
- Airplane — the entity moves with a predefined speed, the direction is controlled by the mouse movements.
- Circle — entity moves circle-wise using the entered Radius and Circle Center coordinates.
Only one entity can be controlled at a certain moment, switching to another entity stops the movement of the previous entity.
Setting the Weather#
To control the weather, open the Global Weather window (Windows -> Global Weather):
Currently the weather settings are the same as in HEMU.
Saving and Loading IG Host Settings#
In the File menu, the Save and Load options are available. You can save all IG Host settings and load them as needed.
Sending CIGI Packets#
To send packets, select the type of packets you want to send:
The corresponding window will open:
You can open as many windows and send as many requests as you want.
Logging CIGI Packets#
IG Host allows tracing both sent and received packets.
In the Settings window (File -> Settings), click the Packet Logger Filter button to open the corresponding window:
In the window that opens, enable the CIGI option and the packets that should be logged.
- Packets in the top area are the packets sent from Host to IG.
- Packets in the bottom area are the packets sent from IG to Host.
The information will be displayed in the console of the IG Host window (opened using the ` button).