The texture should be a very small one like 2x2px or larger. The size of the texture can improve performance because when having a shadow Trainz makes the same object again so you will have 2 objects in the scene.
Here is the 2x2px black texture:
Export the newly created object in the subfolder called objectname_shadow with the same name with the folder. Just like this:
The last thing you have to do is add this line in the config.txt file:
Cast_shadows 1To see the shadow in Trainz you have to check the shadow option in the options menu.
This is all you need to do. Remember that this method works just for spline objects.
Also remember to use it with caution. If the object has many poligons you should reduce them in the shadow mesh. Trainz is limited when working with high poly objects.
No comments:
Post a Comment