3D Canvas Community
3D Canvas Discussion Forums
Rail Simulator
Materials and shaders|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Junior Member |
hello
The basic tracks in RS are ugly and for my route i need 1 meter gauge shape.. so i have taken the 3D that i have done for msts and was reading the "doc" to do an updated version, when i found out a thing that i don't understand how to do in 3Dcanvas: "Create a new Kuju material using the LoftTexDiff.fx shader and assign this to your track object. Give the material a meaningful name. In the material roll-out, click on the ‘Slot Texture’ and point to your texture. " |
||
|
|
Junior Member |
After 85 view of this topic i can understand that applying a shader as a material is impossible....
The problem now is: all the objects in RS need some kind of material taken form a shader file... all the loft objects need LoftTexDiff... the stencil shadow -> "The shader StencilShadow.fx must be used. A texture from the source shape can be referenced in the texture slot." etc... TrainLightMapWithDiffuse -> Example use -> Buildings and Stations RS docs file 4.02 - Shaders.. |
|||
|
|
Member |
Actually, you can specify a shader. When 3D Canvas exports to Rail Simulator format for the first time it creates a custom material field that you can access via object properties. That's where you enter your shader name.
Note that some shaders require multiple textures (I'm pretty sure about that). That's something I'll add for version 1.1 or 2.0 of the exporter. For now, you can only use the shaders that use a single texture. |
|||
|
|
Junior Member |
Thank's.. I was doing that in the wrong way Before this small change, RS gaves out an error message.. now that error is gone but the track is invisible... there is but is invisible. This is the same problem that i have with a big bridge.. so must be something in the texture... except that are all 512*512 .BMP.... i'll try something else |
|||
|
|
Member |
It seems to me that the shader suffix is required. I imported some samples and they had the suffix if I recall correctly.
|
|||
|
|
Junior Member |
I have done a pair of tests:
1) My textures were doing the first RS error because they were tga files and RS need a different approach for them. 2) With .bmp texture... without the .fx suffix the tracks are invisible.. with the suffix .fx the tracks are invisible. NO other errors in each cases. It's a funny thing |
|||
|
|
Junior Member |
From the RS doc.. "These are specific shaders used for generating in-game lofts. These shaders support transparency if required. " I think that is a single texture, single pass shader.. I have tried all the tricks i know... nothing changed... I'm the only one that needs new tracks? |
|||
|
|
Junior Member |
I have solved my little problem
This is only the first... |
|||
|
|
Member |
Looks good
How did you solve the problem? Cheers, Kevin |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|
3D Canvas Community
3D Canvas Discussion Forums
Rail Simulator
Materials and shaders
