HowTo/Scenery/mesh-table/mesh

From TrainzOnline
< HowTo | Scenery | mesh-table(Difference between revisions)
Jump to: navigation, search
(mesh)
(mesh)
Line 1: Line 1:
  
 
== mesh ==
 
== mesh ==
 +
This is a required tag.
 +
 +
Data type is string so it needs to be surrounded by "".
  
 
This the name of the mesh that is being used within the asset. There maybe more than one mesh.
 
This the name of the mesh that is being used within the asset. There maybe more than one mesh.
Line 6: Line 9:
 
Trainz uses and can understand two mesh extensions either ".im" or ".trainzmesh". The second one is the current file extension to the mesh. It is created by trainz when an asset is imported into trainz.
 
Trainz uses and can understand two mesh extensions either ".im" or ".trainzmesh". The second one is the current file extension to the mesh. It is created by trainz when an asset is imported into trainz.
  
if you have the ".lm" extension on the mesh name this point to a text file (LOD file). The mesh tag could also refer to the mesh itself i.e.. industry.im. If this were the case the asset would not have LOD mesh reduction.
+
If you have the ".lm" extension on the mesh name this point to a text file (LOD file). The mesh tag could also refer to the mesh itself i.e.. industry.im. If this were the case the asset would not have LOD mesh reduction.
  
So an ".im" or ".trainzmesh" extension is referencing the asset mesh directly where as the "".lm" extension refers to a LOD text file with the mesh information is contained within that text file.  
+
So an ".im" or ".trainzmesh" extension is referencing the asset mesh directly where as the "".lm" extension refers to a LOD text file with the mesh information contained within that text file.  
  
 
The ".lm" extension is mostly not used anymore and the LOD detains are contained within the main config file.
 
The ".lm" extension is mostly not used anymore and the LOD detains are contained within the main config file.

Revision as of 10:00, 6 February 2022

mesh

This is a required tag.

Data type is string so it needs to be surrounded by "".

This the name of the mesh that is being used within the asset. There maybe more than one mesh.

Trainz uses and can understand two mesh extensions either ".im" or ".trainzmesh". The second one is the current file extension to the mesh. It is created by trainz when an asset is imported into trainz.

If you have the ".lm" extension on the mesh name this point to a text file (LOD file). The mesh tag could also refer to the mesh itself i.e.. industry.im. If this were the case the asset would not have LOD mesh reduction.

So an ".im" or ".trainzmesh" extension is referencing the asset mesh directly where as the "".lm" extension refers to a LOD text file with the mesh information contained within that text file.

The ".lm" extension is mostly not used anymore and the LOD detains are contained within the main config file.


mesh subdirectories

Originally Trainz liked mesh that were not the main mesh to be in sub-directories. In recent editions and with the latest OS's all the mesh are now in one directory. This not a requirement and sub-directories can still be used but the reference to the mesh-table. Example maybe that the night meshes are in a sub-directory call "night". So the reference to the mes would be entered as "night/a_mesh.im" or "night/a_mesh.tranzmesh"

Personal tools