CCG/Modelling: FixedTrack

From TrainzOnline
< CCG(Difference between revisions)
Jump to: navigation, search
(New page: ==FixedTrack== <font size="+1" color="red">Page incomplete.. Please do not edit</font> A fixedtrack in Trainz could be likened to a model train sectional track system. They snap into pos...)
 
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
==FixedTrack==
 
==FixedTrack==
  
<font size="+1" color="red">Page incomplete.. Please do not edit</font>
+
===FixedTrack - Curves abd Crossings===
 
+
<table cellpadding="20"><tr>
 +
<td valign="top">
 +
[[Image:CCG_Arrow_on_Fixed_track.jpg]]
 +
</td><td valign="top">
 
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.
 
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.
 
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.
  
[[Image:CCG_Arrow_on_Fixed_track.jpg]]
+
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.
 +
</td></tr></table>
  
 
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.
 
  
  
Line 34: Line 35:
  
  
==FixedTrack - Junctions==
+
===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.
 
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.  
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.
+
:Operation of the turnout using the mouse will only operate one trigger or animation.
  
  
Line 44: Line 45:
  
  
The in-built example asset in 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.
+
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 TRS2006 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.
+
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.
  
 +
<table cellpadding="10"><tr><td>
 +
[[Image:CCG_junction.jpg]]
 +
</td><td valign="top">
 +
[[Image:CCG_fixedtrack_junction_atts.jpg]]
  
 
+
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.
 
+
a.track0b is the common track attachment point. The curved track may require more attachment points then  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.
 
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.
  
 +
</td></tr></table>
  
 
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:
 
The vertices are listed as:
  
for the curved track0
+
for the curved track0
 
         0 a.track0a
 
         0 a.track0a
 
         1 a.track0b
 
         1 a.track0b
Line 69: Line 72:
 
         3 a.track0d
 
         3 a.track0d
 
         4 a.track0e
 
         4 a.track0e
 
+
 
and for the straight track1
+
and for the straight track1
 
         0 a.track0b
 
         0 a.track0b
 
         1 a.track1a
 
         1 a.track1a
 
         2 a.track1b
 
         2 a.track1b
  
The diagram in the column to the right shows the positioning of:
+
<table cellpadding="20"><tr>
 +
<td valign="top">
 +
[[Image:CCG_junction_diag1.jpg]]
 +
</td><td valign="top">
 +
The diagram shows the positioning of:
 +
:· the various track attachments (referenced in the attached-track container);
 +
:· the helper point b.r.blade for the animated blades; and
 +
:· the switch lever attachment, a.lever0, called the junction-vertex tag in CCP, and the lever mesh, referenced by the junction-lever-mesh tag in CCP.
  
· the various track attachments (referenced in the attached-track container);
 
  
· the helper point b.r.blade for the animated blades; and
+
For convenience, the b.r.blade is placed on the origin, and is also the helper for the default mesh (the fixed parts of the turnout).
  
· the switch lever attachment, a.lever0, called the junction-vertex tag in CCP, and the lever mesh, referenced by the junction-lever-mesh tag in CCP.
 
  
For convenience, the b.r.blade is placed on the origin, and is also the helper for the default mesh (the fixed parts of the turnout).
+
For examples of the attributes and tags required for Fixed Track assets, refer to Kind Fixed Track Containers, Tags and Examples in Chapter 6 and Chapter7.
  
For examples of the attributes and tags required for Fixed Track assets, refer to Kind Fxed Track Containers, Tags and Examples in Chapter 6 and Chapter7.
 
  
 
Note that in this example, actual meshes for the ballast and shape of the junction track have been created in 3dsmax/gmax. This mesh will show in the Surveyor preview window, and a separate referenced preview mesh is not required.
 
Note that in this example, actual meshes for the ballast and shape of the junction track have been created in 3dsmax/gmax. This mesh will show in the Surveyor preview window, and a separate referenced preview mesh is not required.
 +
  
 
Use a preview mesh where track is called up between attachment points and no actual mesh is used, the asset mesh is too large to be a true representation in the preview window (airport model), or the mesh used does not show a recognisable preview.
 
Use a preview mesh where track is called up between attachment points and no actual mesh is used, the asset mesh is too large to be a true representation in the preview window (airport model), or the mesh used does not show a recognisable preview.
 +
</td></tr></table>
 +
 +
 +
 +
[[CCG/Modelling: Turntable (Transfer Table)|Previous Page]] . . . . [[CCG/Modelling: Chunky Mesh Track|Next Page]]
 +
 +
==Return to CCG Index==
 +
[[Content Creator's Guide]]

Latest revision as of 00:59, 16 June 2011

Contents

[edit] FixedTrack

[edit] FixedTrack - Curves abd Crossings

CCG Arrow on Fixed track.jpg

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

CCG fixed track attachments.jpg


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.

CCG junction.jpg

CCG fixedtrack junction atts.jpg

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

CCG junction diag1.jpg

The diagram shows the positioning of:

· the various track attachments (referenced in the attached-track container);
· the helper point b.r.blade for the animated blades; and
· the switch lever attachment, a.lever0, called the junction-vertex tag in CCP, and the lever mesh, referenced by the junction-lever-mesh tag in CCP.


For convenience, the b.r.blade is placed on the origin, and is also the helper for the default mesh (the fixed parts of the turnout).


For examples of the attributes and tags required for Fixed Track assets, refer to Kind Fixed Track Containers, Tags and Examples in Chapter 6 and Chapter7.


Note that in this example, actual meshes for the ballast and shape of the junction track have been created in 3dsmax/gmax. This mesh will show in the Surveyor preview window, and a separate referenced preview mesh is not required.


Use a preview mesh where track is called up between attachment points and no actual mesh is used, the asset mesh is too large to be a true representation in the preview window (airport model), or the mesh used does not show a recognisable preview.


Previous Page . . . . Next Page

[edit] Return to CCG Index

Content Creator's Guide

Personal tools