This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Core Library
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Physics-Related Classes
Bounds-Related Classes
GUI-Related Classes
Controls-Related Classes
Pathfinding-Related Classes
Utility Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

CigiClient Plugin

Common Image Generator Interface (CIGI) protocol is a standard way for a host device to communicate with an image generator (IG). It is widely used in the simulation industry.

The Unigine implementation of CIGI supports its common functionality (versions 3.0, 3.1, 3.2, and 3.3).

The CigiClient plugin enables to use CIGI protocol in the Unigine engine. It listens the CIGI Host, which sends CIGI sentences.

Notice
A respond to the received sentences should be implemented in the script.

This plugin can work in both master and slave modes. The master IG can respond to the CIGI Host by creating a packet and sending it to the host. The slave IGs only listen sentences from the host.

In order to use CIGI, you need to activate the CigiClient plugin and take a look at data/samples/plugins/cigi_client_00 sample.

To run the plugin sample from the Unigine SDK Browser, press the CigiClient plugin button on the Plugin Samples tab.

Launching CigiClient

To use the plugin, specify the extern_plugin command line option on the application start-up:

Shell commands
main_x86d -extern_plugin "CigiClient"

Running Washington Demo

By default, the Washington demo is configured to work in a separate local subnet (192.168.0.0/24). A master computer should have the 192.168.0.2 IP address. Also, the firewall should be disabled or configured not to block the following ports: 8080, 8001, 8000, 8090.

To launch master and slaves, follow the instructions below:

  1. Start washington/cigi/track_N/PacketSniffer.exe (for example, on the master computer with the 192.168.0.2 IP address)
  2. Start washington/washington_cigi_master.bat on the same computer
  3. Start washigton/washington_cigi_slave.bat on the other computers

The PacketSniffer only plays recorded CIGI sentences (emulating real CIGI host work).

When you get running the master and slaves, you can configure viewports via the console as follows (no engine restart required):

Source code
channel_name <name>
Here <name> is one of the following viewport configurations:
  • landscape_left
  • landscape_center
  • landscape_right
  • portrait_left
  • portrait_center
  • portrait_right

In addition to the commands listed above you can control various rendering settings (time of day, shadows, density of clouds and forests) with a simple web-dashboard, which is available on the master (http://192.168.0.2:8080 by default).

If you have different network configuration, you need to modify the following:

  • washington/cigi/track_N/config.dat (change send_to_name IP to the broadcast address of your network)
  • Console variable cigi_send_host to match the IP of computer, on which the PacketSniffer.exe is run
  • Console variable cigi_sync_host to match your network broadcast address
  • server_host to match the master's IP address (only on the master). Required to launch a simple web-dashboard on the master

Notice
After changing any console variable you will need to restart the engine or perform the world_reload console command.
Last update: 2017-07-03
Build: ()