Kind corona

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
m
 
Line 38: Line 38:
 
The corona insertion point in the main mesh.
 
The corona insertion point in the main mesh.
 
===texture-kuid (optional)===
 
===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.
+
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 TRS.
+
If the texture-kuid tag is not present the corona will use the default yellow/orange texture in Trainz.
  
 
TRS released corona textures:
 
TRS released corona textures:

Latest revision as of 12:04, 18 October 2010

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

[edit] Breakdown of KIND CORONA:

[edit] kind corona (required)

The effect kind

[edit] att (required)

The corona insertion point in the main mesh.

[edit] 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>

[edit] 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.

[edit] 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.

[edit] 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