NVIDIA Turf Effects or TurfFX for Trainz

Christopher824

CDETrainz.com
2 assets are needed to create a turf effect.

  • The one you create, more or less a template
  • The saved settings of what you do with the template

The first one, or the template is easily findable, shows up as a dependancy of a route. The second one shows up as a dependant of the the first, and can not be found any other way.

So now, how does the second asset find its way into the route, it is not really referenced. How do you you use it else where? Is it a setting that gets put into the route at the program level (not a loadable asset)?

Here is an example

1st asset, the template;

Code:
season-turffx
{
  0
  {
    albedo-texture                      "summer_albedo.texture"
    normal-texture                      "summer_normal.texture"
    parameters-texture                  "summer_parameters.texture"
    num-control-points-per-blade        3
    expansion-constant                  0.2
    expansion-multiplier                0.25
    number-of-seeds-multiplier          0.2
    density-clamp-far                   500
    density-clamp-near                  0
    density-compensation-max            2
    density-falloff-power               6
    edge-offset-far                     0,0,0,0
    edge-offset-minimum                 0.004
    edge-offset-near                    0,0,0,0
    smoothness-clamp-far                20
    smoothness-clamp-near               0
    smoothness-falloff-power            2
    tessellation-level-far              1
    tessellation-level-near             16
    clutter-asset                       <kuid:661281:96392>
    clutter-draw-distance               100
    clutter-spacing                     1.4
    
    blade-control-points
    {
      0                                 0.02,0.7,0.1
      1                                 0.63,1.25,0.6
      2                                 1.1,1.15,0.95
    }
  }
  
  1
  {
    albedo-texture                      "winter_albedo.texture"
    normal-texture                      "summer_normal.texture"
    parameters-texture                  "summer_parameters.texture"
    num-control-points-per-blade        3
    expansion-constant                  0.2
    expansion-multiplier                0.25
    number-of-seeds-multiplier          0.2
    density-clamp-far                   500
    density-clamp-near                  0
    density-compensation-max            2
    density-falloff-power               6
    edge-offset-far                     0,0,0,0
    edge-offset-minimum                 0.004
    edge-offset-near                    0,0,0,0
    smoothness-clamp-far                20
    smoothness-clamp-near               0
    smoothness-falloff-power            2
    tessellation-level-far              1
    tessellation-level-near             16
    clutter-asset                       <kuid:661281:96392>
    clutter-draw-distance               100
    clutter-spacing                     1.4
    
    blade-control-points
    {
      0                                 0.02,0.7,0.1
      1                                 0.63,1.25,0.6
      2                                 1.1,1.15,0.95
    }
  }
}

2nd assets, the settings;

Code:
effect-properties
{
  turffx-asset                          <kuid:647907:102003>
  turffx-density                        "4,3,0.000000,0.000000,0.000000,0.000000"
  turffx-height-scale                   "4,3,1.000000,0.000000,0.000000,0.000000"
  geometry-scale                        2
  blade-width                           0.03
  blade-width-noise                     0.33
  blade-height-noise                    0.33
  width-scale-near                      "1,1,1,0"
  width-scale-far                       "1,1,1,0"
  bending-scale                         0.4
  dispersal                             0.07
  bunching                              1
  expansion-constant                    0.2
  expansion-multiplier                  0.1
  number-of-seeds-multiplier            0.3
  avoid-water                           "1"
  altitude-range                        "-3000,3000"
  gradient-range                        "0,90"
}
 
Back
Top