Material Types
(→Material Examples) |
|||
Line 1: | Line 1: | ||
− | + | [[Material]]s describe how a modelled surface will appear in the game. They specify a range of configurations and resources including classic material properties, textures and shaders. Each Material is an instance of a particular preset Material Type, from the selection described on this page. | |
− | + | This page describes content format v4.6. | |
− | |||
− | + | =Material Naming= | |
− | + | A material name consists of a creator-supplied given name and a material type suffix. The material type is one of a set of supported types defined below, eg. 'm.onetex'. All material types begin with 'm.' The material type is manually appended to the name of the material within the creation program eg. [[Autodesk 3ds Max]], it is not implied by the configuration of the material. Material type names in Trainz are not case sensitive. | |
For more info about configuring materials see [[Exporting with 3D Studio Max]]. | For more info about configuring materials see [[Exporting with 3D Studio Max]]. | ||
Line 17: | Line 16: | ||
- Paint - [http://download.trainzportal.com/tutorials/16_2_trainz_material_paint.zip Download Asset]. View the tutorial video for this asset [https://youtu.be/YGGkb6nvg5I HERE] | - Paint - [http://download.trainzportal.com/tutorials/16_2_trainz_material_paint.zip Download Asset]. View the tutorial video for this asset [https://youtu.be/YGGkb6nvg5I HERE] | ||
- Creating Specular Maps - [http://download.trainzportal.com/tutorials/16_3_trainz_material_specular.zip Download Asset]. View the tutorial video for this asset [https://youtu.be/bR3l1LgHSAk HERE] | - Creating Specular Maps - [http://download.trainzportal.com/tutorials/16_3_trainz_material_specular.zip Download Asset]. View the tutorial video for this asset [https://youtu.be/bR3l1LgHSAk HERE] | ||
− | |||
− | |||
=Material Types= | =Material Types= | ||
Line 24: | Line 21: | ||
==m.notex== | ==m.notex== | ||
+ | '''''This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.'''''<br> | ||
[[m.notex]] is a non-textured material. | [[m.notex]] is a non-textured material. | ||
Line 32: | Line 30: | ||
[[Image:mat_notex.jpg]] | [[Image:mat_notex.jpg]] | ||
==m.onetex== | ==m.onetex== | ||
+ | '''''This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.'''''<br> | ||
[[m.onetex]] is a diffuse texture mapped material. | [[m.onetex]] is a diffuse texture mapped material. | ||
Line 47: | Line 46: | ||
==m.gloss== | ==m.gloss== | ||
+ | '''''This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.'''''<br> | ||
[[m.gloss]] is a glossy reflective material. | [[m.gloss]] is a glossy reflective material. | ||
Line 55: | Line 55: | ||
[[Image:mat_gloss.jpg]] | [[Image:mat_gloss.jpg]] | ||
==m.tbumptex== | ==m.tbumptex== | ||
+ | '''''This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.'''''<br> | ||
[[m.tbumptex]] is a bump mapped material. | [[m.tbumptex]] is a bump mapped material. | ||
Line 65: | Line 66: | ||
[[Image:mat_tbumptex.jpg]] | [[Image:mat_tbumptex.jpg]] | ||
==m.tbumpgloss== | ==m.tbumpgloss== | ||
+ | '''''This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.'''''<br> | ||
[[m.tbumpgloss]] is a bump mapped reflective material. | [[m.tbumpgloss]] is a bump mapped reflective material. | ||
Line 80: | Line 82: | ||
==m.tbumpenv== | ==m.tbumpenv== | ||
+ | '''''This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.'''''<br> | ||
[[m.tbumpenv]] is a bump mapped environment reflective material. In current versions of Trainz this is the preferred material for most models lit by world lighting, unless a particular effect is desired. Exceptions include tunnels and interiors. | [[m.tbumpenv]] is a bump mapped environment reflective material. In current versions of Trainz this is the preferred material for most models lit by world lighting, unless a particular effect is desired. Exceptions include tunnels and interiors. | ||
Revision as of 19:34, 12 September 2017
Materials describe how a modelled surface will appear in the game. They specify a range of configurations and resources including classic material properties, textures and shaders. Each Material is an instance of a particular preset Material Type, from the selection described on this page.
This page describes content format v4.6.
Contents |
Material Naming
A material name consists of a creator-supplied given name and a material type suffix. The material type is one of a set of supported types defined below, eg. 'm.onetex'. All material types begin with 'm.' The material type is manually appended to the name of the material within the creation program eg. Autodesk 3ds Max, it is not implied by the configuration of the material. Material type names in Trainz are not case sensitive.
For more info about configuring materials see Exporting with 3D Studio Max.
Material Examples
Download example assets below and drop them into Trainz to see what effect can be created using the Materials listed below:
- Rust - Download Asset. View the tutorial video for this asset HERE - Paint - Download Asset. View the tutorial video for this asset HERE - Creating Specular Maps - Download Asset. View the tutorial video for this asset HERE
Material Types
All materials are lit.
m.notex
This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.
m.notex is a non-textured material.
Opacity = Uniform opacity can be controlled in the material settings.
Full details here: m.notex
m.onetex
This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.
m.onetex is a diffuse texture mapped material.
Opacity = Per-texel opacity can be controlled via the diffuse texture's alpha channel.
Full details here: m.onetex
m.reflect
m.reflect is a reflective material.
Full details here: m.reflect
m.gloss
This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.
m.gloss is a glossy reflective material.
Opacity = Uniform opacity can be controlled in the material settings.
Full details here: m.gloss
m.tbumptex
This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.
m.tbumptex is a bump mapped material.
Opacity = Per-texel opacity can be controlled via the diffuse texture's alpha channel.
Specular = Per-texel specular strength can be controlled via the normal texture's alpha channel.
Full details here: m.tbumptex
m.tbumpgloss
This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.
m.tbumpgloss is a bump mapped reflective material.
View the tutorial video on tbumpgloss HERE and download an example asset HERE to drop into Trainz to see what effect can be created using this material. The example asset is a "rust" type material.
Opacity = Uniform opacity can be controlled in the material settings.
Specular = Per-texel specular strength can be controlled via the normal texture's alpha channel.
Reflection = Per-texel blend strength of the reflection can be controlled via the diffuse texture's alpha channel.
Full details here: m.tbumpgloss
m.tbumpenv
This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.
m.tbumpenv is a bump mapped environment reflective material. In current versions of Trainz this is the preferred material for most models lit by world lighting, unless a particular effect is desired. Exceptions include tunnels and interiors.
View the tutorial video on tbumpenv HERE and download an example asset HERE to drop into Trainz to see what effect can be created using this material. The example asset is a "paint" type material.
Opacity = Uniform opacity can be controlled in the material settings.
Specular = Per-texel specular strength can be controlled via the normal texture's alpha channel.
Reflection = Per-texel blend strength of the environment map can be controlled via the diffuse texture's alpha channel.
Full details here: m.tbumpenv