3D Canvas Community
3D Canvas Discussion Forums
Rail Simulator
Defaulting Rail Simulator Shaders|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
I'm about to setup defaulting of Rail Simulator Shaders/Materials.
Does anyone have any suggestions about what material parameters in 3D Canvas translate to what in Rail Simulator? |
||
|
|
Member |
I can sum up from KRS documentation what is needed to build a train:
1) 32-bit 1024x1024 pixels textures with alpha channel representing the specular map (shiny / metal aspect of the body): TrainSpecEnvMask.fx or TrainBumpSpecEnvMask.fx (if normal map added). 2) 24-bit normal maps for the body without specular or normal maps: TrainBasicObjectDiffuse.fx (not sure about that) 3) For bogies, single 512x512 24-bit texture. TexDiff (This shader is lit by diffuse lighting)? TrainBasicObjectDiffuse.fx? It seems that current 3DC default looks OK. 4) Single 24-bit 128x128 for wheels. TexDiff? TrainBasicObjectDiffuse.fx? 5) 256x256 texture with alpha channel for glass: BlendATexDiff 6) 24-bit with a punch-through alpha (1-bit; pure black and white) for each digit of a train numbers (KRS texture name not found in documentation) 7) Interior of train: Tex (never darkens) 8) StencilShadow.fx for a shadow shape I don't have 3DC here: hasn't the translucency tab disappeared (it was confusing when used for MSTS)? Then TrainSpecEnvMask.fx or TrainBumpSpecEnvMask.fx could appear when a tga file is in the primary texture tab. But what about BlendATexDiff? Normal map is linked to 3DC bump map, There are so many possibilities for 24 bit textures… and when creating buildings or trees, shaders are different. Setting a default by selecting a group / hierarchy would be great. Btw can someone explain what "dummy texture" is? KRS explanation: "On some shaders, there is a requirement for multiple texture pass effects. An example would be a reflection mapped shader, where the reflection map is applied as a secondary render pass at run-time." I don't understand where this is actually needed and how it could be implemented. … and LoftTexDiff: "These are specific shaders used for generating in-game lofts. These shaders support transparency if required. (brick wall)". What are "lofts"? |
|||
|
|
Member |
I believe 'lofts' are models that can be 'stretched out' across the landscape, such as track, roads, walls, fences and platforms. Rather than stretching the model, it actually duplicates it, so track would be modelled as a single sleeper (tie), but when lofted, it will have lots of them.
|
|||
|
|
Member |
Thanks, I translated most things to just BlendATexDiff and TexDiff. It seems to do the job.
|
|||
|
|
Member |
Will we be able to do specular and bump mapping effects just using those shaders?
Kevin |
|||
|
|
Member |
I haven't finished that yet.
I managed to confirm that "TrainSpecEnvMask.fx" works without any changes to 3D Canvas. I'm not 100% certain how to handle this in 3D Canvas though. Since the texture needs to be mostly black on the alpha map, it will make the faces disappear in 3D Canvas. I'll have to think about this one. Maybe this is a case of having one set of textures for in 3D Canvas and another for exporting to Rail Simulator. A manual process essentially. Or maybe a "flag" in 3D Canvas to enable/disable translucency. Anyone have any suggestions? |
|||
|
|
Member |
I'm working on the specular-bumpmapping. Looks good so far. I should have it in the next release assuming all continues to go well.
|
|||
|
|
Member |
I have "TrainBumpSpecEnvMask.fx" working for the next release. It will require that you enter "TrainBumpSpecEnvMask.fx" as your "Rail Sim" custom field and choose a bumpmap. Pretty simple.
Btw, the "Rail Simulator" custom field will be renamed "Rail Sim" in the next relase. You don't need to do anything. It will be automatic. |
|||
|
|
Member |
Didn't we used to have a to do a similar thing with alpha texturing on early versions of Canvas. Seem to remember having to split the .tga file up into 2 .bmp maps. One for the main texture and one for the alpha info. We would have to export the .s file and then have to remember to convert the original .tga file over to the .Ace format. We could do a similar thing for railsim. Cheers, Kevin |
|||
|
|
Member |
From taking a look at KRS rail vehicules (GeoPcDx files), the default / basic texture used is TrainBasicObjectDiffuse.fx not TexDiff.
Is it possible that 3DC changes the default texture before exporting? Both, TrainBasicObjectDiffuse.fx and TexDiff, fit the role of default texture but a fx shader should certainly look better. This message has been edited. Last edited by: DOM107, |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|
3D Canvas Community
3D Canvas Discussion Forums
Rail Simulator
Defaulting Rail Simulator Shaders
