HowTo/Bogey/mesh-table
From TrainzOnline
(→mesh-table) |
(→mesh-table) |
||
Line 8: | Line 8: | ||
− | mesh-table | + | mesh-table |
− | + | { | |
− | { | + | |
[[/default/]] | [[/default/]] | ||
{ | { | ||
Line 19: | Line 18: | ||
{ | { | ||
[[/mesh/]] "bogey_shadow.trainmesh" | [[/mesh/]] "bogey_shadow.trainmesh" | ||
− | } | + | } |
A more complex example with LOD (level of detail) could look like this | A more complex example with LOD (level of detail) could look like this | ||
− | mesh-table | + | mesh-table |
− | { | + | { |
− | + | lod-0 | |
− | lod-0 | + | |
{ | { | ||
[[/mesh/]] "bogey_lod0.trainzmesh" | [[/mesh/]] "bogey_lod0.trainzmesh" | ||
[[/auto-create/]] 1 | [[/auto-create/]] 1 | ||
} | } | ||
− | lod-1 | + | lod-1 |
{ | { | ||
[[/mesh/]] "bogey_lod1.trainzmesh" | [[/mesh/]] "bogey_lod1.trainzmesh" | ||
[[/auto-create/]] 1 | [[/auto-create/]] 1 | ||
− | + | } | |
− | } | + | } |
Each of the level of detail is displayed the further away from the used the mesh is. When you add level of detail to a mesh several other tags are required. | Each of the level of detail is displayed the further away from the used the mesh is. When you add level of detail to a mesh several other tags are required. | ||
− | They are : | + | They are : |
− | + | [[/mesh-detail-level-count/]] | |
[[/mesh-table-lod-transition-distances/]] | [[/mesh-table-lod-transition-distances/]] |
Latest revision as of 19:15, 15 February 2022
[edit] mesh-table
This tag is compulsory
The mesh-table is a container tag, meaning it is followed by curly brackets. The opening bracket should be on the next line for readability purposes. The closing bracket is best on the next line after the final entry. Again for readability purposes. It can have sub container tags. I will try and explain these. Clicking on each tag will take you to further information on that tag
For a scenery asset a mesh table may look like this.
mesh-table { default { mesh "bogey.trainzmesh" auto-create 1 } shadow { mesh "bogey_shadow.trainmesh" }
A more complex example with LOD (level of detail) could look like this
mesh-table { lod-0 { mesh "bogey_lod0.trainzmesh" auto-create 1 } lod-1 { mesh "bogey_lod1.trainzmesh" auto-create 1 } }
Each of the level of detail is displayed the further away from the used the mesh is. When you add level of detail to a mesh several other tags are required.
They are :