Page 1 of 1

Using 3D Crafter: Assign Shaders

Unread postPosted: Fri Aug 28, 2020 1:40 pm
by TheKman
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.

Re: Using 3D Crafter: Assign Shaders

Unread postPosted: Sat Aug 29, 2020 3:50 am
by GreatNortherner
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

Re: Using 3D Crafter: Assign Shaders

Unread postPosted: Sat Aug 29, 2020 6:59 am
by TheKman
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.