Mesh library
From TrainzOnline
(Difference between revisions)
(Created page with "A mesh library is a technique rather than a specific asset type supported by Trainz. The intention of the technique is to include a number of mesh files into a single ...") |
Revision as of 19:33, 11 October 2017
A mesh library is a technique rather than a specific asset type supported by Trainz. The intention of the technique is to include a number of mesh files into a single "library" asset (for the purposes of material sharing, mesh sharing, texture sharing, or simply for clarity of organisation) and then reference them from other assets as required rather than copying the mesh files into each asset.
The typical configuration of a mesh library within Trainz is as follows:
- A KIND Mesh asset is used as the mesh library asset.
- The asset is configured with a mesh-table including the various mesh files but with the "auto-create" tag included for each and configured to "0".
mesh-table { first { mesh "actual-mesh-file.trainzmesh" auto-create 0 } }
- Placeable assets are configured as normal, but rather than including any mesh files or texture files into the placeable assets, the placeable assets simply reference the "library" asset in their mesh-table, as follows:
mesh-table { default { mesh-asset <KUID-OF-MESH-LIBRARY-ASSET> mesh "actual-mesh-file.trainzmesh" auto-create 1 } }