Kind corona

From TrainzOnline
Jump to: navigation, search

A corona is a ‘glow’ light effect. It is a simple texture that is inserted at an attachment point within the mesh. Coronas can be added to any asset that uses a mesh-table.

Examples of coronas used in-game can be seen on the Airport and Airport basic assets. The Jumbo Jet, the Cessna and the Airport tower all use flashing coronas.


Example mesh table with coronas:

mesh-table
{
  default
  {
    mesh asset.lm
    auto-create 1
    effects
    {
      0
      {
        kind corona
        att a.corona0
        texture-kuid <KUID:-3:10110>
        frequency 2
        directional 0
        object-size 0.20
      }
      1
      {
        kind corona
        att a.corona1
      }
    }
  }
}

Contents

Breakdown of KIND CORONA:

kind corona (required)

The effect kind

att (required)

The corona insertion point in the main mesh.

texture-kuid (optional)

Add this tag only when you want to specify your own texture for the corona. It specifies the KUID of a KIND Texture asset.

If the texture-kuid tag is not present the corona will use the default yellow/orange texture in Trainz.

TRS released corona textures:

  • Yellow/orange corona Default (if no texture-kuid)
  • Green corona <KUID:-3:10110>
  • Red corona <KUID:-3:10112>
  • White corona <KUID:-3:10111>

frequency 2 (optional)

This variable specifies the frequency in Hz (or ‘flashes’ per second). e.g. 1 for once per second, 0.5 for once every 2 seconds, 2 for twice per second.

directional 0 (optional)

The default for coronas is to be aligned to the attachment point to face the NEGATIVE Z direction. This is especially useful for Traincars.

Adding this tag over-rides this behavior, to make the corona always face the screen – useful for scenery objects.

object-size 0.15 (optional)

Size of the corona on the object when viewed up close, defaults to 0.15 (i.e. 0.15m)

Personal tools