Using 3D Crafter: Assign Shaders

Discuss almost anything about RailWorks.

Using 3D Crafter: Assign Shaders

Unread postby TheKman » Fri Aug 28, 2020 1:40 pm

Ok, Looking for someone who uses 3D Crafter and makes models for the sim. I'm using 3DC 9.3

I have more questions. I make my models with Sketchup then export into 3DC to make the shape file. The model has all the textures on it when its exported into 3DC.

1. Shaders. From what I've read, these are entered in the custom field window under the properties tab. Where can I obtain a list of all the shaders used for the sim? Which would be used for a wagon, a engine, and a loft?

2. In the Materials Palette window there is a box called custom fields. These are where the shaders added in the custom field box show up. Beside the name of the shader is a blank box. The Dev docs say to give it a name but don't elaborate further. So what kind of name is used and is there a chart that tells me what the name should be for each shader used?

Two pics enclosed

Thanks.
You do not have the required permissions to view the files attached to this post.
TheKman
 
Posts: 383
Joined: Sun Sep 25, 2016 6:01 am

Re: Using 3D Crafter: Assign Shaders

Unread postby GreatNortherner » Sat Aug 29, 2020 3:50 am

Hi,

All you ever wanted to know about shaders but never dared to ask:
https://sites.google.com/a/railsimdev.c ... es/shaders

Judging by your second screenshot, I'd say your 3DC is set up correctly. Those three input fields in the material palette's custom tab are where you enter the shaders and other related information:
  • Field Rail Sim: enter the full shader name as per the above tech docs (e.g., "Tex", "TrainBasicObjectDiffuse.fx", "TrainBumpSpecEnvMask.fx", ...) - only one shader per material!
  • Tx Alpha: can usually be left blank, is used by the exporter for alpha settings purposes. Can have three values: "None", "Transparency" or "Translucency" -- so if your texture contains one of the two latter, enter the corresponding term here
  • RailSimX: this is the field for advanced settings to override the default material values used by the exporter (stuff like reflections, etc., or even UV scrolling textures) - there is a lot that can be entered here and there used to be a list of known commands somewhere, probably on the Amabilis forums
  • please note: enter all custom fields commands without the quotation marks in my examples above

Cheers!
Michael
User avatar
GreatNortherner
 
Posts: 1584
Joined: Sun Feb 15, 2009 11:19 am
Location: Czech Republic

Re: Using 3D Crafter: Assign Shaders

Unread postby TheKman » Sat Aug 29, 2020 6:59 am

GreatNortherner wrote:Hi,

All you ever wanted to know about shaders but never dared to ask:
https://sites.google.com/a/railsimdev.c ... es/shaders

Judging by your second screenshot, I'd say your 3DC is set up correctly. Those three input fields in the material palette's custom tab are where you enter the shaders and other related information:
  • Field Rail Sim: enter the full shader name as per the above tech docs (e.g., "Tex", "TrainBasicObjectDiffuse.fx", "TrainBumpSpecEnvMask.fx", ...) - only one shader per material!
  • Tx Alpha: can usually be left blank, is used by the exporter for alpha settings purposes. Can have three values: "None", "Transparency" or "Translucency" -- so if your texture contains one of the two latter, enter the corresponding term here
  • RailSimX: this is the field for advanced settings to override the default material values used by the exporter (stuff like reflections, etc., or even UV scrolling textures) - there is a lot that can be entered here and there used to be a list of known commands somewhere, probably on the Amabilis forums
  • please note: enter all custom fields commands without the quotation marks in my examples above

Cheers!
Michael


Thanks Michael.
TheKman
 
Posts: 383
Joined: Sun Sep 25, 2016 6:01 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests