Assetto Corsa + Rain

Discussion in 'General' started by Just Kauser, Feb 12, 2018.

  1. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    Wiper in-game:

    Duplicate the wiper.ksanim and rename light in light_wing if present, then rename the second wiper.ksanim in light. If you now press the light switch, the windshield wiper works, that's why the Glovepie script is there.
     
    Last edited: Mar 12, 2018
  2. MLT

    MLT Active Member

    Joined:
    Nov 2, 2017
    Likes Received:
    125
    Interesting, I will look into this during the day.
     
    Just Kauser likes this.
  3. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    IGNORE THAT!
    Yes, now it working ingame in my own app: with 100fps:

    This is just an 1 second loop, i will program that animations more complex and with more randomly generated loops, that are synchronized with the wiper animation and maybe the vehicle speed ( rain running down at low speed and up at high speed). The whole loop takes just 300kb.
     
    Last edited: Mar 12, 2018
    MLT likes this.
  4. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    Here is a short ingame preview, i spend the last 2 days to develop the python app, and create all that animated rain textures, wimper sound, and windshield texture and material, nothing is perfect, but it works and sounds realy realistic. I hope you will like it and i get any feedback from you:
    (THIS IS FULL INGAME FOOTGAME, NO POSTPRODUCTION)


    P.S.: Drifting the stock AE86 with an 200HP engine in rain is so extreme, nothing compares to this. A little mistake and you die instantly.
     
    Last edited: Mar 12, 2018
  5. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    Tutorial For Wet Conversion
    Wet Road: Replace your materials from the dry road with this values:
    Shader ksperpixel or ksperpixelNM (if you have a bumb map).

    values wet road.jpg


    Now it should look like these: Screenshot_ks_toyota_ae86_tourist_ks_nordschleife_14-2-118-12-1-38.jpg

    Rain tyre:

    Code:
    ;Rain Tyres
    
    [FRONT_2]
    NAME=Potenza RE-01R Rain
    SHORT_NAME=Rain
    WIDTH=0.185
    RADIUS=0.2888                ; tyre radius in meters
    RIM_RADIUS=0.1905            ; rim radius in meters (use 1 inch more than nominal)
    ANGULAR_INERTIA=0.83                            ; angular inertia of front rim+tyre+brake disc together
    DAMP=600                                    ; Damping rate of front tyre in N sec/m (values usualy from 200 to 1400)
    RATE=254573                                    ; Spring rate of front tyres in Nm
    DY0=0.8122
    DY1=-0.055
    DX0=0.80
    DX1=-0.053
    WEAR_CURVE=street_front.lut        ; file with lookup table to call
    SPEED_SENSITIVITY=0.003667        ; speed sensitivity value
    RELAXATION_LENGTH=0.095
    ROLLING_RESISTANCE_0=10        ; rolling resistance constant component
    ROLLING_RESISTANCE_1=0.000900        ; rolling resistance velocity (squared) component
    ROLLING_RESISTANCE_SLIP=4538        ; rolling reistance slip angle component
    FLEX=0.000878                        ; tire profile flex. the bigger the number the bigger the flex, the bigger the added slipangle with load.
    CAMBER_GAIN=0.131                    ; Camber gain value as slipangle multiplayer. default 1
    DCAMBER_0=1.1
    DCAMBER_1=-13                        ; D dependency on camber. D=D*(1.0 - (camberRAD*DCAMBER_0 + camberRAD^2 * DCAMBER_1)) , camberRAD=absolute value of camber in radians
    FRICTION_LIMIT_ANGLE=9.30                            ; Slip angle peak.
    XMU=0.24
    PRESSURE_STATIC=32                 ; STATIC (COLD) PRESSURE
    PRESSURE_SPRING_GAIN=7330         ; INCREASE IN N/m  per psi (from 26psi reference)
    PRESSURE_FLEX_GAIN=0.45         ; INCREASE IN FLEX per psi
    PRESSURE_RR_GAIN=0.55            ; INCREASE IN RR RESISTENCE per psi
    PRESSURE_D_GAIN=0.004                ;loss of tyre footprint with pressure rise.
    PRESSURE_IDEAL=39
    FZ0=1755
    LS_EXPY=0.8200
    LS_EXPX=0.8880
    DX_REF=0.8
    DY_REF=0.8
    FLEX_GAIN=0.0304
    FALLOFF_LEVEL=0.87
    FALLOFF_SPEED=4
    CX_MULT=1.02
    RADIUS_ANGULAR_K=0.01   ; Radius grows of MILLIMITERS!! Formula -> RADIUS_ANGULAR_K * angularVelocity in rad/s
    BRAKE_DX_MOD=0.05
    
    
    [REAR_2]
    NAME=Potenza RE-01R Rain
    SHORT_NAME=Rain
    WIDTH=0.185
    RADIUS=0.2888                ; tyre radius in meters
    RIM_RADIUS=0.1905            ; rim radius in meters (use 1 inch more than nominal)
    ANGULAR_INERTIA=0.83                            ; angular inertia of front rim+tyre+brake disc together
    DAMP=600                                    ; Damping rate of front tyre in N sec/m (values usualy from 200 to 1400)
    RATE=254573                                    ; Spring rate of front tyres in Nm
    DY0=0.8122
    DY1=-0.055
    DX0=0.80
    DX1=-0.053
    WEAR_CURVE=street_rear.lut        ; file with lookup table to call
    SPEED_SENSITIVITY=0.003667        ; speed sensitivity value
    RELAXATION_LENGTH=0.095
    ROLLING_RESISTANCE_0=10        ; rolling resistance constant component
    ROLLING_RESISTANCE_1=0.000900        ; rolling resistance velocity (squared) component
    ROLLING_RESISTANCE_SLIP=4538        ; rolling reistance slip angle component
    FLEX=0.000878                        ; tire profile flex. the bigger the number the bigger the flex, the bigger the added slipangle with load.
    CAMBER_GAIN=0.131                    ; Camber gain value as slipangle multiplayer. default 1
    DCAMBER_0=1.1
    DCAMBER_1=-13                        ; D dependency on camber. D=D*(1.0 - (camberRAD*DCAMBER_0 + camberRAD^2 * DCAMBER_1)) , camberRAD=absolute value of camber in radians
    FRICTION_LIMIT_ANGLE=9.30                            ; Slip angle peak.
    XMU=0.24
    PRESSURE_STATIC=32                 ; STATIC (COLD) PRESSURE
    PRESSURE_SPRING_GAIN=7330         ; INCREASE IN N/m  per psi (from 26psi reference)
    PRESSURE_FLEX_GAIN=0.45         ; INCREASE IN FLEX per psi
    PRESSURE_RR_GAIN=0.55            ; INCREASE IN RR RESISTENCE per psi
    PRESSURE_D_GAIN=0.004                ;loss of tyre footprint with pressure rise.
    PRESSURE_IDEAL=39
    FZ0=1755
    LS_EXPY=0.8200
    LS_EXPX=0.8880
    DX_REF=0.8
    DY_REF=0.8
    FLEX_GAIN=0.0304
    FALLOFF_LEVEL=0.87
    FALLOFF_SPEED=4
    CX_MULT=1.02
    RADIUS_ANGULAR_K=0.01   ; Radius grows of MILLIMITERS!! Formula -> RADIUS_ANGULAR_K * angularVelocity in rad/s
    BRAKE_DX_MOD=0.05
    
    
    [THERMAL_FRONT_2]
    SURFACE_TRANSFER=0.0140     ;How fast external sources heat the tyre tread touching the asphalt: Values 0-1
    PATCH_TRANSFER=0.00027                        ;How fast heat transfers from one tyre location to the other: Values 0-1
    CORE_TRANSFER=0.00051            ;How fast heat transfers from tyre to inner air and back. bidirectional
    INTERNAL_CORE_TRANSFER=0.0076
    FRICTION_K=0.08892                            ;Quantity of slip becoming heat
    ROLLING_K=0.22                            ;rolling resistance heat
    PERFORMANCE_CURVE=tcurve_street.lut                ;File to use for temperature/grip relation
    GRAIN_GAMMA=1                 ; Gamma for the curve grain vs slip. higher number makes grain more influenced by slip
    GRAIN_GAIN=0.4                ; Gain for graining. How much gain raises with slip and temperature difference- 100 value = slipangle*(1+grain%)
    BLISTER_GAMMA=1            ; Gamma for the curve blistering vs slip. higher number makes blistering more influenced by slip
    BLISTER_GAIN=0.3            ; Gain for blistering. How much blistering raises with slip and temperature difference. think blistering more as heat cycles. 100 value = 20% less grip
    COOL_FACTOR=2.40
    SURFACE_ROLLING_K=1.29583
    
    [THERMAL_REAR_2]
    SURFACE_TRANSFER=0.0140     ;How fast external sources heat the tyre tread touching the asphalt: Values 0-1
    PATCH_TRANSFER=0.00027                        ;How fast heat transfers from one tyre location to the other: Values 0-1
    CORE_TRANSFER=0.00051            ;How fast heat transfers from tyre to inner air and back. bidirectional
    INTERNAL_CORE_TRANSFER=0.0076
    FRICTION_K=0.08892                            ;Quantity of slip becoming heat
    ROLLING_K=0.22                            ;rolling resistance heat
    PERFORMANCE_CURVE=tcurve_street.lut                ;File to use for temperature/grip relation
    GRAIN_GAMMA=1                 ; Gamma for the curve grain vs slip. higher number makes grain more influenced by slip
    GRAIN_GAIN=0.4                ; Gain for graining. How much gain raises with slip and temperature difference- 100 value = slipangle*(1+grain%)
    BLISTER_GAMMA=1            ; Gamma for the curve blistering vs slip. higher number makes blistering more influenced by slip
    BLISTER_GAIN=0.3            ; Gain for blistering. How much blistering raises with slip and temperature difference. think blistering more as heat cycles. 100 value = 20% less grip
    COOL_FACTOR=2.40
    SURFACE_ROLLING_K=1.29583
    
    
    
    
    


    For the rain tires you should insert this code in the tyre.ini of your car and make the following changes:

    1. Copy the lines:
    WIDTH = 0185
    RADIUS = 0.2888; tire radius in meters
    RIM_RADIUS = 0.1905; rim radius in meters (use 1 inch more than nominal)
    from the previous data of your car.

    2. replaces _2 with the number +1 that appeared last in the file. In case of doubt in _1

    If you now select these tires in the setup, rain on the road is simulated on each track.

    Tire wear is best switched off because it is only very low in wet conditions.

    Tyre Smoke
    Simply copy these settings into the Tire_Smoke.ini under Assetto Corsa \ system \ cfg.
    [SETTINGS]
    EMISSIVE_BLEND=0.0
    VELOCITY_BASE=0,-0.5,0
    VELOCITY_RANDOM=0.5,-0.7,0.5
    SIZE_BASE=0.1,0.4
    SIZE_RANDOM=0.2,0.45
    COLOR_BASE=0.49,0.51,0.55
    COLOR_RANDOM=0.1,0.1,0.1
    DRAG_BASE=0.7
    DRAG_RANDOM=0.6
    GRAVITY_BASE=-0.5
    GRAVITY_RANDOM=0.0
    OPACITY_BASE=0.05
    OPACITY_RANDOM=0.02
    OPACITY_VELOCITY_BASE=-0.1
    OPACITY_VELOCITY_RANDOM=0.095
    SIZE_VELOCITY_BASE=1.8,1.6
    SIZE_VELOCITY_RANDOM=1.5,1.3
    VELOCITY_ROTATION_AXIS_RANDOM=0
    FREQUENCY_HZ=30

    [TRIGGERS]
    SLIP_LEVEL=0.002508

    Just change Sliplevel back to 0.25 again to return normal tyre smoke on dry asphalt.




    Car modifications:
    (3dsimed recommended) Search for the Material "EXT_Windscreen". Replace the windscreen texture. Change the Shader to kspixel or kspixelreflection.

    Animations:
    Duplicate the wiper.ksanim and rename light.ksanim in light_wing.ksanim if present, then rename the second wiper.ksanim in light.ksanim
    If you now press the light switch, the windshield wiper works, that's why the Glovepie script is there.


    Light:
    Copy any light entry from the lights.ini to the digital_instruments.ini and delete the entries in the lights.ini
    Now replace "[LIGHT_" with "[LED_",
    "NAME=" with "OBJECT_NAME=" and
    "COLOR=" with "EMISSIVE=".

    If you have now more then 2 brake entries in the lights.ini,
    make it similar for some of them.

    For the rest brake entries in the lights.ini set OFF_COLOR=0,0,0

    READY


    I did this stuff because i love it to drive on rainy days.
    2017-09-10 11-39-19 - IMG_20170910_113910.jpg Sept. 2017 in Caorle, Italy. Nice country, nice people and a lot of drifty roundabout traffics.
     
    Last edited: Mar 12, 2018
    Pixelchaser likes this.
  6. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    Real Rain Presentation:
     
    Last edited: Mar 12, 2018
    MLT likes this.
  7. luchian

    luchian Administrator ACM Club Driver ACM Racing Team

    Joined:
    Jun 3, 2014
    Likes Received:
    679
    I'm not the type of playing with this kind of "hacks", but I gotta appreciate the effort and creativity :D. It's more than I thought it will be possible.
     
  8. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    Thanks.
     
  9. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    Installation Guide and Download Links


    Here are a few wet versions I made, the tracks were all made public, and I do not want to dispute anyone's authorship here, I just changed a few shaders, as explained above.

    Just unpack to content / tracks
    or.
    content / cars,
    done.

    1. Autopolis WET:
    Screenshot_tnt_hv_nissan_sileighty_tourist_ks_nordschleife_13-2-118-17-52-2.jpg
    Autopolis (オートポリス Ōtoporisu) is an international racing circuit located near Kamitsue village in Ōita Prefecture, Japan (30 km Northeast of Kumamoto).


    2. Mount Akina 2017 Downhill and Uphill WET:
    Screenshot_ks_toyota_ae86_tourist_mount_akina_2017_9-3-118-11-48-57.jpg
    Mount Akina is a semi fictional road from the popular comic / anime, Initial D. The real road is named Mount Haruna and is located in Gunma, Japan.



    An awesome video example from StreetVersion:



    3. Myogi Wet
    Screenshot_ks_toyota_ae86_tourist_sost_myogi_10-3-118-17-55-27.jpg

    Yes, blue tarmac.
    Screenshot_ks_toyota_ae86_tourist_sost_myogi_10-3-118-17-50-13.jpg

    Mount Myōgi (妙義山 Myōgi-san) is one of the major mountains in the Gunma Prefecture, Japan, located west of Tomioka. It is well known for its rocks weathered into fantastic forms. This famous peak is ranked among Japan's three most noted places of rugged beauty. There are many hiking courses, and when the foliage changes color there are splendid views to be seen



    4. AE86 rain version
    For the driver you need to install this mod:

    5. GT86 Rain Version
    To verify, that you are a legitim owner of the original Kunos car pack,the self-extracting archive is password protected, the password is the exact name of the first car skin, e.g. for the Abarth 595ss "1_official". (Without quotation marks).
    Screenshot_ks_toyota_gt86_rain_sost_myogi_11-3-118-18-5-25.jpg

    6. AE86 Tuned HKS + Rain
    (230HP @ 9.5k RPM)
    Screenshot_ks_toyota_ae86_tuned_hks_rain_sost_myogi_12-3-118-13-48-15.jpg

    To use the windscreen wiper, press the button you have set for the headlights.
     
    Last edited: Mar 12, 2018
    MLT likes this.
  10. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    Advanced Basic Tutorial:
    Download my Rainmaker App:

    (my app is a modification of the VisorX app)
    Extract the rainmaker folder to "Assetto Corsa\apps\python".
    Dont forget to activate it in general settings.
    Hints for the App Installation Assetto Corsa
    Ingame installation:



    Weather
    : Use the heavy rain cold weather from here:


    Rain Sounds:This is my fav. source:


    Search for "ambient car rain" to get another vids in good quality.

    Ultimate Immersion Tutorial:
    (not necessary)

    Tyre Smoke
    Simply copy these settings into the Tire_Smoke.ini under Assetto Corsa \ system \ cfg.
    [SETTINGS]
    EMISSIVE_BLEND=0.0
    VELOCITY_BASE=0,-0.5,0
    VELOCITY_RANDOM=0.5,-0.7,0.5
    SIZE_BASE=0.1,0.4
    SIZE_RANDOM=0.2,0.45
    COLOR_BASE=0.49,0.51,0.55
    COLOR_RANDOM=0.1,0.1,0.1
    DRAG_BASE=0.7
    DRAG_RANDOM=0.6
    GRAVITY_BASE=-0.5
    GRAVITY_RANDOM=0.0
    OPACITY_BASE=0.05
    OPACITY_RANDOM=0.02
    OPACITY_VELOCITY_BASE=-0.1
    OPACITY_VELOCITY_RANDOM=0.095
    SIZE_VELOCITY_BASE=1.8,1.6
    SIZE_VELOCITY_RANDOM=1.5,1.3
    VELOCITY_ROTATION_AXIS_RANDOM=0
    FREQUENCY_HZ=30

    [TRIGGERS]
    SLIP_LEVEL=0.002508

    Just change Sliplevel back to 0.25 again to return normal tyre smoke on dry asphalt.

    Wiper Sound:
    Because i have problems with the key input via hooks in Unity (shutdowns noch und nöcher),to make my programs running and reacting in background,
    i decide to use Soundplant. You have to run it as ADMIN and activate background input.
    I set the wiper sound to L in Soundplant.

    Automatic Wipers:
    Glovepie + (PPJOY [not needed here but recommended for further GlovePie scripting]):
    Download and Installation:


    My updated version of my Glovepie script:
    Works now synchron over the system time with the rain animation and the wipersound.
    Code:
    pie.FrameRate=20Hz
    debug=    var.wimper
    
    
       if Released( joy4.Button4) || Released( Key.P) then
       var.wimper++
       end
    
       if Released( joy4.Button1) || Released( joy4.Button8) || Released( Key.O)  then
       var.wimper--
    
       if var.wimper==-1 then
       var.wa=1
       end
    
       end
    
    if var.wimper < 0 then
      var.wimper=0
      end
    
    if  var.wimper > 2 then
      var.wimper=2
      end
    
        var.tver=-0.1
    
      if var.wimper==1 then
    
      var.w2=int(((Timestamp + var.tver) mod 3) *10)
      if var.w2!=1 then
      var.w2=0
      end
      end
    
    
      if var.wimper==2 then
    
      var.w2= int(((Timestamp + var.tver) mod 1) *10)
      if var.w2!=1 then
      var.w2=0
      end
      end
    
    
      if var.w2==1 then
         var.wa=1
          var.w2=0
          end
    
    
        if var.wa==1 || var.wimper==0 then
    PPJOY.Digital10=  var.wa+  joy4.Button1
    Key.L=  var.wa+  joy4.Button1
    var.wa=0
    
    else
    Key.L=false
    PPJOY.Digital10=false
    end
    
    
    

    If you can not get PPjoy up and running or if it's too complicated for you, here are the links for Freepie and Vjoy.
    Freepie
    Vjoy


    vJoy[0].setButton(0,int(keyboard.getKeyDown(Key.L)))

    Just paste in Freepie and press F5 and then run the Glovepie Script.
    Press O and P to change the Wiper Mode, between Single, Slow and Fast.

    READY!

    (addition immersion):

    Car radio sfx with VLC media PLAYER:

    (ctrl+E)
    EQ: Full BASS

    Spatializer (for Reverb):
    Size:10
    Width:9
    Wet:9 more -> more Reverb
    Dry:7 more -> less Reverb
    Damp:4 more -> less Reverb

    Test it with vocals like a radio announcer, not with music, to get good results.

    Now i can hear radio streams over headphones with a nice reverb effect, which sounds like hearing radio in my real car.

    Radio streaming with VLC:

    Open the website of the livestream, Copy the media url with Video Download Helper, paste it in VLC, press enter.


    I did this stuff because i love it to drive on rainy days.
    View attachment 2466 Sept. 2017 in Caorle, Italy. Nice country, nice people and a lot of drifty roundabout traffics.
     
    Last edited: Mar 12, 2018
  11. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    Last edited: Mar 10, 2018
  12. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    Last edited: Apr 19, 2018
    Leonardo Ratafia likes this.
  13. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    .
     
  14. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    .
     
  15. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    .
     
  16. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    (i want to get Page 3, to make a better structure and add my new mods)
     
  17. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    .
     
  18. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    .
     
  19. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    How i make Conversions faster:
     
  20. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Likes Received:
    53
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    .
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice