Material Types

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (Material Naming)
Line 16: Line 16:
  
 
==m.notex==
 
==m.notex==
[[m.notex]] is a non-textured material. Uniform opacity can be controlled in the material settings.
+
[[m.notex]] is a non-textured material.
 +
Opacity = Uniform opacity can be controlled in the material settings.
  
 
[[Image:mat_notex.jpg]]
 
[[Image:mat_notex.jpg]]
 
==m.onetex==
 
==m.onetex==
[[m.onetex]] is a diffuse texture mapped material. Per-texel opacity can be controlled via the diffuse texture's alpha channel.
+
[[m.onetex]] is a diffuse texture mapped material.
 +
Opacity = Per-texel opacity can be controlled via the diffuse texture's alpha channel.
  
 
[[Image:mat_onetex.jpg]]
 
[[Image:mat_onetex.jpg]]
Line 28: Line 30:
 
[[Image:mat_reflect.jpg]]
 
[[Image:mat_reflect.jpg]]
 
==m.gloss==
 
==m.gloss==
[[m.gloss]] is a glossy reflective material. Uniform opacity can be controlled in the material settings.
+
[[m.gloss]] is a glossy reflective material.
 +
Opacity = Uniform opacity can be controlled in the material settings.
  
 
[[Image:mat_gloss.jpg]]
 
[[Image:mat_gloss.jpg]]
  
 
==m.tbumptex==
 
==m.tbumptex==
[[m.tbumptex]] is a bump mapped material. Per-texel opacity can be controlled via the diffuse texture's alpha channel. Per-texel specular strength can be controlled via the normal texture's alpha channel.
+
[[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.
  
 
[[Image:mat_tbumptex.jpg]]
 
[[Image:mat_tbumptex.jpg]]
 
==m.tbumpgloss==
 
==m.tbumpgloss==
[[m.tbumpgloss]] is a bump mapped reflective material. Uniform opacity can be controlled in the material settings. Per-texel blend strength of the reflection can be controlled via the diffuse texture's alpha channel. Per-texel specular strength can be controlled via the normal texture's alpha channel.
+
[[m.tbumpgloss]] is a bump mapped reflective 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.
  
 
[[Image:mat_tbumpgloss.jpg]]
 
[[Image:mat_tbumpgloss.jpg]]
 
==m.tbumpenv==
 
==m.tbumpenv==
[[m.tbumpenv]] is a bump mapped environment reflective material. Uniform opacity can be controlled in the material settings. Per-texel blend strength of the environment map can be controlled via the diffuse texture's alpha channel. Per-texel specular strength can be controlled via the normal texture's alpha channel.
+
[[m.tbumpenv]] is a bump mapped environment reflective 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.
  
 
[[Image:mat_tbumpenv.jpg]]
 
[[Image:mat_tbumpenv.jpg]]
  
 
[[Category:Material types| ]]
 
[[Category:Material types| ]]

Revision as of 14:07, 18 February 2014

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.

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 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. 3D Studio Max, it is not implied by the configuration of the material.

The creator supplied given name should begin with a letter and contain only english letters, numbers, dash and underscore characters. Material names in Trainz are not case sensitive. The names will be converted to lowercase internally, even if the original name from the creation program (ie. 3DS Max, Blender) contained mixed case or was case sensitive.

The same material name may be used by different models intended to be used together, in fact this allows the materials to be efficiently shared. An example valid material name is: brickwall.m.tbumptex

For more info about configuring materials see Exporting with 3D Studio Max.

Material Types

All materials are lit.


m.notex

m.notex is a non-textured material. Opacity = Uniform opacity can be controlled in the material settings.

Mat notex.jpg

m.onetex

m.onetex is a diffuse texture mapped material. Opacity = Per-texel opacity can be controlled via the diffuse texture's alpha channel.

Mat onetex.jpg

m.reflect

m.reflect is a reflective material.

Mat reflect.jpg

m.gloss

m.gloss is a glossy reflective material. Opacity = Uniform opacity can be controlled in the material settings.

Mat gloss.jpg

m.tbumptex

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.

Mat tbumptex.jpg

m.tbumpgloss

m.tbumpgloss is a bump mapped reflective 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.

Mat tbumpgloss.jpg

m.tbumpenv

m.tbumpenv is a bump mapped environment reflective 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.

Mat tbumpenv.jpg

Personal tools