Materials and shaders

Looks good <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –>

How did you solve the problem?

Cheers,
Kevin

hello <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –>

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 3DC:

‘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. ‘ <!– s:? –><img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused" /><!– s:? –>

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 -andgt; ‘The shader StencilShadow.fx must be used. A texture from the source shape can be referenced in the texture slot.’ etc…
TrainLightMapWithDiffuse -andgt; Example use -andgt; Buildings and Stations
RS docs file 4.02 – Shaders..

Actually, you can specify a shader. When 3DC 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.

[BLOCKQUOTE class=’ip-ubbcode-quote’][div class=’ip-ubbcode-quote-title’]quote:[/div][div class=’ip-ubbcode-quote-content’]That’s where you enter your shader name. [/div][/BLOCKQUOTE]
Thank’s.. I was doing that in the wrong way <!– s:D –><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" /><!– s:D –> I was writing the name of the shader with the .FX suffix..
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 <!– s;) –><img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink" /><!– s;) –>

It seems to me that the shader suffix is required. I imported some samples and they had the suffix if I recall correctly.

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 <!– s:D –><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" /><!– s:D –>

[BLOCKQUOTE class=’ip-ubbcode-quote’][div class=’ip-ubbcode-quote-title’]quote:[/div][div class=’ip-ubbcode-quote-content’]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. [/div][/BLOCKQUOTE]
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? <!– s:? –><img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused" /><!– s:? –>

I have solved my little problem <!– s:D –><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" /><!– s:D –> <!– s:D –><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" /><!– s:D –> <!– s8-) –><img src="{SMILIES_PATH}/icon_cool.gif" alt="8-)" title="Cool" /><!– s8-) –>
This is only the first…
[img:306ahgh8]http&#58;//utenti&#46;lycos&#46;it/brerepos/Centovallina/RailSim/BreRS004&#46;jpg[/img:306ahgh8]

You must be logged in to reply in this thread.

9 posts