 | In the previous tutorial we exported a model to Train Simulator.
We noted a few problems with the model. In particular, the windows
were transparent not translucent. |
|

|
 | In order to improve performance, Train Simulator assumes that a
translucent layer in a texture is transparent unless otherwise
indicated. To indicate this in 3D Canvas we have to set the
Translucent factor for the material when it is applied. A
Translucent factor of 1 indicates that the texture is translucent,
but the translucency ends at the interior of the model. Only use this
value if you are sure that it will not
be possible to see out the other side of the model. A Translucent factor of
2 indicates that the texture is translucent and it will be possible to
see out the other side.
This Translucent factor was lost when we imported the model
into 3D Canvas. Fortunately it is easy to correct.
|
|

|
 | The first step in correcting the material's Translucent
factor is to sample the material at the location where the material
needs to be translucent. Change the Translucent value on the
Material Palette to 2 to indicate that this material is translucent
and it is possible to see out through the other side of the model
(through two layers of glass).
Note: if you are creating a model that has exterior glass and interior
glass, the exterior glass should use texture translucency and a
Translucent value of 2. The interior glass should be transparent
with a Translucent value of 0.
|
|

|
 | Now select the faces that you want to update. It is important that
you only update the minimum necessary number of faces. If you select
too many Train Simulator will run more slowly or even not be able to
load your model. Run the UpdateMaterial plug-in to update the
material.
A negative aspect of selecting a restricted number of faces is that
occasionally gaps will be visible between the translucent and
non-translucent faces. If this is a problem you can increase the
translucent area to hide this.
|
|

|
 | You will not see much difference in the model in 3D Canvas. The
faces selected are now slightly translucent, but not enough to really
be noticeable in 3D Canvas.
Repeat this procedure for the other parts that require translucency.
Run the TrainSimWizard to export your model. You will be able to simply
click Finish since all of the other settings were saved the
last time you exported. |
|

|
 | The translucency on the model now looks correct in Train
Simulator. |
|

|
 | 3D Canvas has many material settings available, but Train
Simulator has a much more restricted ability to use materials. Many 3D
Canvas materials are
either not recognized by Train Simulator or are only supported in a
limited way.
As a rule, materials look best in Train Simulator with an Ambient
value of 20, and a Specular value of 1 or higher.
As discussed previously, the Translucent value is only used to
indicate that a texture is translucent rather than transparent.
The Diffuse value is not used at all by Train Simulator.
|
|

|
 | The specular value indicates that a material is shiny. Any number
higher than 0 is appropriate. But non-specular materials have another
attribute. They are much brighter than specular items. In this
picture, the left-bottom
section of the cab uses a Specular value of 1. The right-top section a
Specular value of 0. It is much brighter. |
|
 |
 | At night this is particularly obvious. Generally a Specular value
of 1 or higher should be used for everything except for items that are to be
self-illuminating at night.
A Specular value of 50 results in the material being visibly "shiny"
in Train Simulator and 75 or higher results in the material being
"very shiny" in Train Simulator. This visible shininess comes at the
price of slower rendering. By default Train Simulator turns off
specular highlighting, so in order to see any visible shininess, you
need to enable Specular Lighting in Train Simulator's advanced display
options.
Note that the use of the Specular value is restricted since Train
Simulator averages it for all of the objects in a group. So if you
want to use a variety of Specular values be sure to group the objects
by Specular value.
|
|

|
 | The Ambient value is used to indicate that relative brightness.
The standard value of 20 is shown on the wheel on the right. A value
of 0 is shown on the wheel on the left. Notice that this is on the
sunny side of the train. On the shaded side of the train there is no
difference between the two. |
|
 |
 | The standard Ambient value of 20 is shown on the left. An Ambient
value of 100 is shown on the right. Notice that this is on the shaded
side of the train. On the sunny side there is no difference between
the two. |
|
 |
 | At night there the difference is more pronounced. The left side is
the using the standard Ambient value of 20. The right side is using an
Ambient value of 100.
Note that the use of the Ambient value is restricted since Train
Simulator averages it for all of the objects in a group. So if you
want to use the Ambient value be sure to have the object located in
its own group. |
|
 |
 | Train Simulator models must be entirely textured. This does not
mean that simple colors cannot be used. To have the ability to use colors as well as textures, a single large texture can be
created that combines a number of smaller textures and colors. The texture can then be
cropped as it is applied to provide the desired texture or color.
3D Canvas permits virtually any texture size, but MSTS only permits
textures that are 64x64, 128x128, 256x256 or 512x512 pixels.
You may use multiple textures per object also if you wish, but Microsoft suggests using
as few textures as possible in order to improve performance. Also, 3D Canvas
requires
a single texture per object in order to automatically generate distance-based Levels of
Detail. These Levels of Detail improve Train Simulator performance.
Much of your material painting will be done using the Paint Tool. The Fill
operation can be quite useful for filling a selected group of faces with a material. If
you are filling a subset of the faces with a material all three wrapping modes (flat,
cylindrical and spherical), can be used. If you are filling the entire object, only the
flat wrap can be used or distortion will occur. The UnWrap and UVMap
operations are particularly useful with models created for Microsoft Train Simulator
because they allow for precise application of textures.Translucency layers can be used with 3D Canvas
Plus/Pro by using Targa (tga) files as
textures.
|
|
 |