; July 23, 2008
; Special ini for snstest track
; The surfaces section below are used with "road_noise=0.0" in debug.ini, 
; before beta 8.5, or racer.ini "dbg_controls" section after.  They were 
; set up and tested using the Honda Spoon.
; Surfaces
; surf_xxxx - whatever you want to call it
; type=road - determines sound generated in racer.ini
; pattern=road* - image matched to generate sound
; grip_factor=0.2 makes track like ice
; rolling_resistance_factor= resistance of surface to the tire rolling on it.
; viscosity= - forceViscosity=-load*viscosity*wheelVelocity
; road_noise=0.5 - causes car to bump violently if too high, measured in meters
; road_noise_frequency=0.25 32 - perlin noise frequency sets distance between peaks
; with two to four values the second and subsequent are imposed on the first with
; the road_noise_amplitude values used in sequence
; road_noise_amplitude=1.0 0.1 - perlin noise amplitude height of bumps
; road_noise scales amplitude - road_noise * road_noise_amplitude = bump in meters
; The green sign by the kerbs shows the effect for various values of 
; "road_noise_threshold".
; road_noise_threshold <v1> <v2> ... if <v1> and <v2> is greater than the road_noise 
; value the surface has no noise and is flat.  If the threshold value is less than or 
; equal to the road_noise value then the surface has that noise added to it.
; steer_noise=0.1 - for force feedback set as needed if you use it
; dust_color=1 1 1 - 0.0 to 1.0 red-green-blue for beta7.9 on
; skid_sound=0 for no skid sound on the surface, default is = 1
; no skid sound = no skid marks
gfx
{
  clear_color=0
  ;   sky=0.188235 0.352941 0.639220 0.000000
  ; Sun location (XYZ); keep it far away to avoid too much movement
  ; sun=+2000000.0 5000000.0 0.0 ; high in sky  +Y up/down -Y
  ; sun=+1000000.0 1000000.0 0.0 ; low in sky   +X east/west -X
  ; sun=5000000.0 6000000.0 0.0  ; east         +Z north/south -Z 
  ; sun=-5000000.0 4000000.0 0.0   ;west
  ; sun=-5000000.0 6000000.0 0.0  orig
  ; Night track? If 1, turns on car lights by default
  night=0
  ; Alternative with light sky
  sky=1.000000 1.000000 1.000000 0.000000
  ; Sky exposure
  exposure=1
  ; Day time (overrules sun if specified)
  time=1400
  ; Sun location (XYZ); keep it far away to avoid too much movement
  sun=-5000000.0 4000000.0 0.0
  {
    ; Sky Cg shaders
    intensity=250   ;20000   ;250
    ; Paint the sun?
    enable=1
    ; Coloring
    ambient=1 1 1 1
    ;    ambient=0.5 0.5 0.5 1
    ; emission=1 1 1 1
    ; Dusk
    ;diffuse=1.0 0.7 0.27 1
    diffuse=1.0 0.9 0.7 1
    specular=1 1 1 1
    ; No global light
;    global=0.15 0.15 0.15 1
  }
  shadows
  {
    ; Intensity of projected shadows (defaults to 0.3)
    intensity_projected=0.5   ;1.0   ;0.5
  }
  fog
  {
    density=0.002
    start=0
    end=1
    color=.3 .3 .37 1
    ; Fog mode; 0=exp, 1=exp^2, 2=linear (start/end only used with linear!)
    fog_mode=0
    ; Sky Cg shaders
    rayleigh=0.00008
    mie=0.00008
  }
}
env
{
  snow=0   ;1
  ; Amount of rain (0..1)
  rain=0
  ; Animate rain (X=time in seconds, Y=intensity)
  ;rain_curve=rain.crv
  ; Amount of clouds (0..1)
  clouds=0.9   ;0.9
}
surfaces
{
  surf_road
  {
    type=road
    subtype=0
    pattern=road*
    grip_factor=1.0
    rolling_resistance_factor=0.1
    viscosity=0.0
    road_noise=0.0001   ;0.004 inches real smooth pavement
    road_noise_frequency=0.25 32
    road_noise_amplitude=1.0 0.1
    road_noise_threshold=0.0001 0.0001
    ;    steer_noise=0.1
    dust_color=1 1 1
    skid_sound=1
  }
  surf_grass
  {
    type=grass
    subtype=0
    pattern=grass
    grip_factor=0.4
    rolling_resistance_factor=0.1
    viscosity=0.0
    road_noise=0.05   ;2 inches slippery stuff and a bit rough
    road_noise_frequency=2 16
    road_noise_amplitude=0.8 0.2
    road_noise_threshold=0.01 0.01
    ;    steer_noise=0.1
    dust_color=0.359 0.450 0.150
    skid_sound=1   ;0
  }
  surf_gravel
  {
    type=gravel
    subtype=0
    pattern=gravel
    grip_factor=0.2
    rolling_resistance_factor=0.5
    viscosity=0.15
    road_noise=0.06   ;2.4 inches tough to move thru
    road_noise_frequency=2 8 16
    road_noise_amplitude=1.5 0.4 0.1
    road_noise_threshold=0.01 0.01 0.1
    ;     steer_noise=0.1
    dust_color=0.795 0.655 0.427
    skid_sound=0
  }
  surf_stone
  {
    type=stone
    subtype=0
    pattern=stone
    grip_factor=0.35
    rolling_resistance_factor=0.7
    viscosity=0.1
    road_noise=0.01   ;0.5 inches small stones on pavement
    road_noise_frequency=2 8 16
    road_noise_amplitude=1.0 0.4 0.1
    road_noise_threshold=0.001 0.001 0.001
    ;      steer_noise=0.1
    dust_color=0.800 0.750 0.600
    skid_sound=0
  }
  surf_water
  {
    type=water
    subtype=0
    pattern=waterb
    grip_factor=1.0
    rolling_resistance_factor=1
    viscosity=0.15
    road_noise=0.001   ; smooth bottom difficult to move thru
    road_noise_frequency=1
    road_noise_amplitude=1.0
    road_noise_threshold=0.0001
    ;      steer_noise=0.1
    dust_color=0.584 0.695 1.0
    skid_sound=1   ;0
  }
  surf_kerb
  {
    type=kerb
    subtype=0
    pattern=curb
    grip_factor=1
    rolling_resistance_factor=1
    road_noise=0.05   ;2 inches set to desired kerb height or 0.0
    road_noise_frequency=5.   ;has no effect on kerb
    road_noise_amplitude=1.0   ;0.0 has no effect on kerb
    road_noise_threshold=1.0
    ;    steer_noise=0.1
    dust_color=0 0 0
    skid_sound=0
  }
  surf_ice
  {
    type=ice
    subtype=0
    pattern=ice
    grip_factor=0.1
    rolling_resistance_factor=0.01
    viscosity=0.0
    road_noise=0.01   ;0.4 inches rough ice slippery stuff
    road_noise_frequency=0.2 0.8 32
    road_noise_amplitude=0.01 1.4 0.1
    road_noise_threshold=0.001 0.001 0.001
    ;      steer_noise=0.1
    dust_color=0.815 0.860 0.985
    skid_sound=1   ;0
  }
  surf_snow
  {
    type=snow
    subtype=0
    pattern=snow
    grip_factor=0.2
    rolling_resistance_factor=0.1
    viscosity=0.05
    road_noise=0.01   ;0.4 inches slippery and a little rough
    road_noise_frequency=0.1 0.8 16
    road_noise_amplitude=0.01 3.0 2.5
    road_noise_threshold=0.001 0.001 0.001
    ;    steer_noise=0.1
    dust_color=0.970 0.970 0.970
    skid_sound=1   ;0
  }
  surf_mud
  {
    type=mud
    subtype=0
    pattern=mud
    grip_factor=0.57
    rolling_resistance_factor=1
    viscosity=0.3
    road_noise=0.1   ;4 inch ruts and sticky
    road_noise_frequency=6 32
    road_noise_amplitude=1.0 0.1
    road_noise_threshold=0.05 0.05
    ;    steer_noise=0.1
    dust_color=0.450 0.365 0.227
    skid_sound=1   ;0
  }
  surf_hill
  {
    type=gravel
    subtype=0
    pattern=hill
    grip_factor=1.0
    rolling_resistance_factor=0.1
    viscosity=0.0
    road_noise=0.21   ;8 inch bumps
    road_noise_frequency=6 32
    road_noise_amplitude=1.0 0.1
    road_noise_threshold=0.05 0.05
    ;    steer_noise=0.1
    dust_color=0.725 0.600 0.327
    skid_sound=1   ;0
  }
  surf_sand
  {
    type=sand
    subtype=0
    grip_factor=0.7
    rolling_resistance_factor=1
    pattern=san*
    viscosity=0.2
    road_noise=0.026   ;1 inch ripply like beach sand
    road_noise_frequency=0.6 8 16
    road_noise_amplitude=0.1 1.5 0.4
    road_noise_threshold=0.01 0.01 0.01
    ;     steer_noise=0.1
    dust_color=0.850 0.750 0.327
    skid_sound=1   ;0  ;if =0 no dust
  }
}
grid
{
  count=2
  pos0
  {
    from
    {
      x=155.745712
      y=0.000000
      z=5.756555
    }
    to
    {
      x=155.252548
      y=0.000000
      z=10.390680
    }
  }
  pos1
  {
    from
    {
      x=149.359802
      y=0.000000
      z=3.319432
    }
    to
    {
      x=149.040115
      y=0.000000
      z=9.828664
    }
  }
}
pit
{
  count=2
  pos0
  {
    from
    {
      x=155.017822
      y=0.000000
      z=13.919944
    }
    to
    {
      x=154.610291
      y=0.000000
      z=17.432243
    }
  }
  pos1
  {
    from
    {
      x=148.500885
      y=0.000000
      z=13.184361
    }
    to
    {
      x=148.283005
      y=0.000000
      z=17.171932
    }
  }
  side=1
  inout_line0
  {
    from=0.000000 0.000000 0.000000
    to=0.000000 0.000000 0.000000
  }
  inout_line1
  {
    from=0.000000 0.000000 0.000000
    to=0.000000 0.000000 0.000000
  }
  inout_line2
  {
    from=0.000000 0.000000 0.000000
    to=0.000000 0.000000 0.000000
  }
  inout_line3
  {
    from=0.000000 0.000000 0.000000
    to=0.000000 0.000000 0.000000
  }
}
timeline
{
  count=2
  point_to_point=0
  line0
  {
    from
    {
      x=128.315979
      y=0.000000
      z=-1.012031
    }
    to
    {
      x=178.162781
      y=-0.000000
      z=2.898414
    }
  }
  line1
  {
    from
    {
      x=-77.096184
      y=0.000000
      z=57.868095
    }
    to
    {
      x=-84.173409
      y=0.000001
      z=50.901344
    }
  }
  auto_return=0
}
tcam
{
  count=1
  cam0
  {
    pos
    {
      x=79.325081
      y=21.900049
      z=10.381783
    }
    pos2
    {
      x=79.325081
      y=0.000000
      z=10.381783
    }
    posdolly
    {
      x=0.000000
      y=0.000000
      z=0.000000
    }
    rot
    {
      x=0.000000
      y=0.000000
      z=0.000000
    }
    rot2
    {
      x=0.000000
      y=0.000000
      z=0.000000
    }
    radius=200.000000
    group=0.000000
    zoom_edge=20.000000
    zoom_close=30.000000
    zoom_far=20.000000
    flags=1
    src
    {
      k=0.000000
      mass=1.000000
    }
    dst
    {
      k=0.000000
      mass=1.000000
    }
    cube
    {
      edge=0.000000 0.000000 0.000000
      close=0.000000 0.000000 0.000000
      far=0.000000 0.000000 0.000000
    }
    keyframes
    {
      count=0
    }
  }
}
waypoint
{
  count=0
}
audio
{
  count=1
  source0
  {
    pos=-3.837822 4.000000 11.237222
    sample=crowd1.wav
    radius=15.000000
  }
}
triggerline
{
  count=3
  line0
  {
    from
    {
      x=5.000000
      y=0.000000
      z=285.000000
    }
    to
    {
      x=5.000000
      y=0.000000
      z=295.000000
    }
    command=fast_time 3000   ;show carbbox
  }
  line1
  {
    from
    {
      x=200.000000
      y=0.000000
      z=-106.250000
    }
    to
    {
      x=206.250000
      y=0.000000
      z=-106.250000
    }
    command=anicmd reset
  }
  line2
  {
    from
    {
      x=200.000000
      y=0.000000
      z=-106.250000
    }
    to
    {
      x=206.250000
      y=0.000000
      z=-106.250000
    }
    command=fast_time off
  }
}
