NADS MiniSim Configuration Files Continued

Revision as of 17:21, 27 September 2016 by Ciera Headley (Talk | contribs) (Created page with "The sixth line is the position, orientation and size of the icon. The content of the line is dependent on the type of the icon. For OVERLAY icons, there are seven fields in th...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The sixth line is the position, orientation and size of the icon. The content of the line is dependent on the type of the icon. For OVERLAY icons, there are seven fields in this line:

  • Horizontal alignment for the icon. A string that can be “LEFT”, “RIGHT”, “CENTER”, or “NONE”.
  • Vertical alignment for the icon. A string that can be “TOP”, “BOTTOM”, “CENTER”, or “NONE”.
  • Horizontal offset in number of pixels. For left or right alignment, it is the offset from the edge of the display. For center alignment, it is the offset to the right of the center (to the left if the value is negative). For “NONE”, it is the actual x coordinate in pixels.
  • Vertical offset in number of pixels. For top or bottom alignment, it is the offset from the edge of the display. For center alignment, it is the offset above the center (below if the value is negative). For “NONE”, it is the actual y coordinate in pixels.
  • Width of icon in number of pixels.
  • Height of icon in number of pixels.
  • Rotation angle of the icon in degrees. A positive angle rotates the icon counterclockwise, and a negative angle rotates the icon clockwise.

For SCENE_OBJ icons, the sixth line has nine fields: x, y, z, roll, pitch, yaw, width, height, and auto- rotation type. Since SCENE_OBJ is part of the virtual environment, its position, orientation and size values are like those of regular objects in the scene. The unit for position and size is feet, and the unit for rotation is degrees. The position and rotation values are relative to the origin of the parent object it is attached to, in this case the ownship vehicle. The coordinate system is as follows, as viewing from the driver: +x is to the right, +y is forward, +z is up, +roll is raising the left side, +pitch is tilting the top toward the driver, and +yaw is rotating to the left. Currently auto-rotation type can only be FIXED, indicating no auto rotation (auto rotation is to make the icon always face the driver).

Below is a sample icon configuration file that contains 2 icons. The first icon has some animation sequences and so it uses six lines, while the second icon has no animation sequences and only uses five lines. The first icon is an OVERLAY type, and uses all textured quads for its frames. The second icon is a SCENE_OBJ type attached to the ownship vehicle, and uses textured quads as well as geometric shapes.