M.tbumpenv

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
(Blender Material Configuration (2.8+))
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
'''This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.'''
 +
 
=Description=
 
=Description=
  
 
Bump mapped environment reflective material.
 
Bump mapped environment reflective material.
  
Blends a environment reflection map onto a bump map.  The blend between environment and diffuse maps is controlled by the alpha channel of the diffuse texture.
+
Blends a environment reflection map onto a bump map.  The reflection is controlled in the alpha channel of the diffuse map. White in the alpha channel is full sun/sky reflection and black is no reflection.  
 +
 
 
The environment cube map is generated by the game and is not specified in the material configuration.
 
The environment cube map is generated by the game and is not specified in the material configuration.
  
''Note: This material is available in TS2009 WBE SP1 and later.''
+
Used too heavily it will drastically change the original surface color. Used gently it has subtle advantages over m.reflect.
 +
 
 +
Reducing the specular level (changing the specular color to gray) will reduce the strength of reflection.
 +
 
 +
When used in '''TRS19''' , the alpha channel of the diffuse texture will represent the ''metallic'' and the normal map alpha will determine the ''roughness''.
  
 
=Preview=
 
=Preview=
Line 19: Line 26:
 
* Glossiness - Should be set to 32 to match game.
 
* Glossiness - Should be set to 32 to match game.
 
* [[Diffuse map]] - RGB = diffuse color, A = environment reflection strength/mask
 
* [[Diffuse map]] - RGB = diffuse color, A = environment reflection strength/mask
* [[Opacity map]] - Legacy support for Diffuse texture Alpha channel
+
* [[Opacity map]] - Legacy support for Diffuse texture Alpha channel - As per above, the alpha channel of the Diffuse texture provides the environment reflection strength/mask
 
* [[Normal map]] - RGB = bump normal A, = specular strength
 
* [[Normal map]] - RGB = bump normal A, = specular strength
 +
 +
=Blender Material Configuration (2.7x)=
 +
 +
You must use the Blender Render option in Blender as the Cycles Render in V2.79 doesn't export the texture names associated with the material. You will need a diffuse, and normal texture.
 +
The material must have the suffix .m.tbumpenv , with any name you like. Here is an example with the material name called "Material."
 +
 +
[[File:Tbumpenv279config.png|border|middle|]]
 +
 +
[[File:Blender27TbumpenvDiffuse.png|border|middle|x700px]]  [[File:Blender27TbumpenvNormal.png|border|middle|x700px]]
 +
 +
=Blender Material Configuration (2.8+)=
 +
 +
In order to export with Blender 2.8+, you will need Rileyzzz's IM Exporter: [https://github.com/rileyzzz/BlenderIMExporter https://github.com/rileyzzz/BlenderIMExporter]
 +
 +
The Eevee or Cycles renderer will work fine for exporting. The resulting material may look strange in Blender; this is normal. The material must have the suffix .m.tbumpenv , with any name you like.
 +
 +
Use the following node setup to export:
 +
 +
[[File:Tbumpenv - tbumptex Blender 2.8+.png|border|middle|x700px]]
 +
 +
 +
Additionally, the Alpha, Roughness, Specular, and Emission sliders can be altered to change the appearance of your model.
 +
 +
 +
[[File:AlphaSlider2.8+.png|border|middle|x300px]] Alpha - Reflects the Visibility (opacity) of the material
 +
 +
 +
[[File:ShininessSlider2.8+.png|border|middle|x300px]] Roughness - Reflects the shininess of the material
 +
 +
 +
[[File:SpecularSlider2.8+.png|border|middle|x300px]] Specular - Reflects the specular value of the material
 +
 +
 +
[[File:EmissionSlider2.8+.png|border|middle|x300px]] Emission - The Emission strength value can be left at 1.0. If you want your material to glow, change the emission colour to any colour you'd like.
 +
 +
=Substance Painter Preset=
 +
 +
If you want to use Substance Painter for legacy materials, tbumpenv is your best option. It also lets content look almost up to par in TRS19. Here is a Dropbox link with a preset for you: [https://www.dropbox.com/s/6wpuivje3ua1f6v/tbumpenv.spexp?dl=0].
 +
* '''Note: You may have to adjust the alpha channels more to your liking. By default Trainz is quite sensitive for the environment intensity, so you'll need to adjust the diffuse alpha accordingly.'''
  
 
=Related Links=
 
=Related Links=
Line 30: Line 76:
  
 
[[.texture.txt Files]] - What goes into a .texture.txt file
 
[[.texture.txt Files]] - What goes into a .texture.txt file
 +
 +
[[Category:Material types]]

Latest revision as of 18:11, 3 February 2021

This is a legacy material, and should only be used where compatibility with older versions of Trainz is required.

Contents

[edit] Description

Bump mapped environment reflective material.

Blends a environment reflection map onto a bump map. The reflection is controlled in the alpha channel of the diffuse map. White in the alpha channel is full sun/sky reflection and black is no reflection.

The environment cube map is generated by the game and is not specified in the material configuration.

Used too heavily it will drastically change the original surface color. Used gently it has subtle advantages over m.reflect.

Reducing the specular level (changing the specular color to gray) will reduce the strength of reflection.

When used in TRS19 , the alpha channel of the diffuse texture will represent the metallic and the normal map alpha will determine the roughness.

[edit] Preview

Mat tbumpenv.jpg

[edit] Max Settings

Max material tbumpenv.jpg

[edit] Max Settings in detail

  • Ambient - Ambient color R,G,B
  • Diffuse - Diffuse color R,G,B
  • Specular - Specular color R,G,B
  • Opacity - Level of transparency, 0 = transparent, 100 = opaque.
  • Glossiness - Should be set to 32 to match game.
  • Diffuse map - RGB = diffuse color, A = environment reflection strength/mask
  • Opacity map - Legacy support for Diffuse texture Alpha channel - As per above, the alpha channel of the Diffuse texture provides the environment reflection strength/mask
  • Normal map - RGB = bump normal A, = specular strength

[edit] Blender Material Configuration (2.7x)

You must use the Blender Render option in Blender as the Cycles Render in V2.79 doesn't export the texture names associated with the material. You will need a diffuse, and normal texture. The material must have the suffix .m.tbumpenv , with any name you like. Here is an example with the material name called "Material."

Tbumpenv279config.png

Blender27TbumpenvDiffuse.png Blender27TbumpenvNormal.png

[edit] Blender Material Configuration (2.8+)

In order to export with Blender 2.8+, you will need Rileyzzz's IM Exporter: https://github.com/rileyzzz/BlenderIMExporter

The Eevee or Cycles renderer will work fine for exporting. The resulting material may look strange in Blender; this is normal. The material must have the suffix .m.tbumpenv , with any name you like.

Use the following node setup to export:

Tbumpenv - tbumptex Blender 2.8+.png


Additionally, the Alpha, Roughness, Specular, and Emission sliders can be altered to change the appearance of your model.


AlphaSlider2.8+.png Alpha - Reflects the Visibility (opacity) of the material


ShininessSlider2.8+.png Roughness - Reflects the shininess of the material


SpecularSlider2.8+.png Specular - Reflects the specular value of the material


EmissionSlider2.8+.png Emission - The Emission strength value can be left at 1.0. If you want your material to glow, change the emission colour to any colour you'd like.

[edit] Substance Painter Preset

If you want to use Substance Painter for legacy materials, tbumpenv is your best option. It also lets content look almost up to par in TRS19. Here is a Dropbox link with a preset for you: [1].

  • Note: You may have to adjust the alpha channels more to your liking. By default Trainz is quite sensitive for the environment intensity, so you'll need to adjust the diffuse alpha accordingly.

[edit] Related Links

Material Types - Material types supported by Trainz.

Max Exporters - 3D Studio Max exporters.

Exporting with 3D Studio Max - Material setup and exporting with 3DS Max.

.texture.txt Files - What goes into a .texture.txt file

Personal tools