CCG/Modelling: FixedTrack
Line 2: | Line 2: | ||
===FixedTrack - Curves abd Crossings=== | ===FixedTrack - Curves abd Crossings=== | ||
− | |||
<table cellpadding="20"><tr> | <table cellpadding="20"><tr> | ||
<td valign="top"> | <td valign="top"> |
Latest revision as of 00:59, 16 June 2011
Contents |
[edit] FixedTrack
[edit] FixedTrack - Curves abd Crossings
A fixedtrack in Trainz could be likened to a model train sectional track system. They snap into position when moved onto another track in Surveyor. Technically, all a fixedtrack comprises is a mesh asset with an attached track (or tracks) and surveyor-only rendered arrows so the user knows where the fixedtrack segment starts and ends. The model consists of a few attachment points (using the a.name naming convention) set-up accurately in 3dsmax or gmax, and a single invisible polygon to allow exporting, and for in-game asset selection. |
Note that correct track end attachment orientation is essential. The Y axis must point `out' at the correct angle. The Z axis must point `up'. Mid points only need to be in the correct spline path.
Crossing Attachments | Curve Attachments |
When a spline track is attached to a fixedtrack the fixedtrack will update to the attached track type. (unless the tag useadjoiningtracktype 0 is used - see example config.txt file).
The arrows are inserted at each end as a kind attachment - referenced by the arrow's KUID: <KUID:-3:10092>
Each fixedtrack asset needs a preview-mesh, as spline tracks will not render in the Preview window. A preview-mesh can simply be setup as a kind mesh. This way the preview-mesh will never be selectable or seen in Surveyor.
Early Trainz versions released fixedtracks consists of only curved and straight sections. Crossings may be made, just create two attached-track fields. For junctions, see below.
[edit] FixedTrack - Junctions
Junctions (turnouts) are possible in Trainz, with the use of additional tags. A number of samples are available in TC. Because the Kind fixed track is not based on the Kind Track asset, there is some functionality for the common flexi track that is not available for the fixed track asset.
- The default red and green direction arrows of the flexi track junctions are not available with the fixed track object.
- The fixed track object may be raised or lowered and placed on a slope.
- Operation of the turnout using the mouse will only operate one trigger or animation.
Multiple operations such as double slip junctions should be possible by scripting.
The in-built example asset from TRS2006 has been constructed with a main default mesh consisting of the fixed rails and ballast, the moveable blades are a separate animated mesh connected to an attachment point in the main mesh, and a separate lever mesh also connect to an appropriate attachment point either to the left or right of the default mesh.
In the in-built example, the red and green arrows have been simulated using an arrow texture with some transparency, with rotating animation, and attached to the lever attachment points. By amending the config.txt file, the arrows and the levers may be deleted or replaced by other suitable meshes.
a.track0b is the common track attachment point. The curved track may require more attachment points than the straight track, to define the curve shape. Note the Y axis at the end attachments must point outwards and be aligned with the track entrance or exit direction. To define the attached track in attached-track container, attachments a.track0a and a.track0b are common to both track tag lists. |
The vertices are listed as:
for the curved track0 0 a.track0a 1 a.track0b 2. a.track0c 3 a.track0d 4 a.track0e and for the straight track1 0 a.track0b 1 a.track1a 2 a.track1b
The diagram shows the positioning of:
|
Previous Page . . . . Next Page