This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm (Experimental)
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

IG Host

Warning
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to Sim SDK edition to use it.
Warning
This tool is experimental, some settings and parameters are still under development.

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:

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).

  1. Open the Database List window (Windows -> Database List).
  2. Select a database from the list.
  3. Click Load.
  4. 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:

  1. Click Add.
  2. Select the *.world file to be loaded.
  3. Specify Latitude and Longitude of Geodetic Pivot in that world.
  4. Click OK.
  5. Reopen IG and IG Host.

Adding an Entity#

The entity is added as follows:

  1. Open the Entity List window (Windows -> Entity List).
  2. Double-click an entity from the list to open Entity Properties.
  3. Set the entity Type, and check its position (most importantly along the Z axis to make sure it is not under the ground).
  4. Set other parameters, if necessary.

Setting the View#

The view defines what actually is going to be displayed in IG.

Notice
Currently only one view (view 0) is available.

To open the view settings:

  1. Open the Views list (Windows -> Views List).
  2. Double-click a view from the list to open its properties.
  3. Use Position and Rotation to adjust the camera relative to the entity. Both positive and negative values can be used.
  4. 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:

  1. Select the entity in the Entity List.
  2. Open the EntityControl window (Windows -> Entity Control).
  3. Activate the Enabled option.
  4. Click in the black area within the IG Host window.
  5. 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).

Last update: 2020-11-24
Build: ()