Gravel

File information

Last updated

Original upload

Created by

thrive4

Uploaded by

thrive4

Virus scan

Safe to use

About this mod

many shadertweaks with 3dmigoto
plus tone mapping, sharpening and some bump mapping

Permissions and credits
- description

Gravel a bit of a mix up of dirt 2 and a number
of cross country point to point racers, similar
to say those in forza horzion and others, how
ever not so polished as the aforementioned games.

Basically the mod attempts to balance the light
dynamics (day, night and weather) plus adds a
little bumpmap in the mix as reduces a number of
effects plus some heavy tonemapping,
see screenshots for an impression.

If you do not like specific tweaks please see 'further tweaking'
for disabling specific shader tweaks.

3dmigoto shader tweaks:
- reduce specular and tint water surface
- remove lens flare
- global illumination tweaks
- reduce lens dirt
- increase transparency and add green tint to windshield car
- reduce density fog haze
- reduce flare bokha effect
- reduce intensity car headlight (more glass visible)
- partial fix snow tracks layer in cockpit and on driver
- partial fix gravel layer outback red layer on driver
- reduce fogged windscreen front in cockpit with rainy weather
- reduce presence watersplash fx

Note(s):
The  package has a customized shader 'upscale.hlsl' which
does some fullscreen tweaks as bump mapping and color modification
see 'further tweaking' if you want to disable it.

Also upscale.hlsl adds a slight curve to the screen.

- install

Copy the contents of the zip file to the install folder of
gravel, the folder which contains
gravel-Win64-Shipping.exe
<drive>:\gravel\gravel\Binaries\Win64\

- optional install

The following instructions are only needed
if you do not like using unverified dll's you can:

download 3dmigoto from:
https://github.com/bo3b/3Dmigoto/releases
download version 1.3.16 and place the following dlls in the install dir of
gravel:
d3d11.dll (64bits)
d3dcompiler_46.dll
then copy `d3dx.ini, ShaderCache and ShaderFixes from the zip file to the same dir aka folder.

note: if you choose to use the d3dx.ini contained in the github package
make sure to set (line 248):
hunting=0
the default setting is:
hunting=1
which sets 3dmigoto to a debug mode.

- verify

After running the game the folder ShaderFixes should
gradually (scene and level dependent) contain the .bin versions:

083142d277605711-ps_replace.bin
0a7c3d62ad708cf9-vs_replace.bin
134d9c8c426915ff-ps_replace.bin
2b147e5ca0b9a1df-vs_replace.bin
3c49432c0549fbec-ps_replace.bin
3e1eb618807ccba7-ps_replace.bin
453fe8aab687b2ff-ps_replace.bin
468efe41a1067ed3-ps_replace.bin
487b7ee4e3266edf-ps_replace.bin
7df6ac8e5cba2cfa-ps_replace.bin
80d4ddaea99341c0-ps_replace.bin
8b4984ae14bfc963-ps_replace.bin
90044237979044fa-ps_replace.bin
b1c6dbe9476c7487-ps_replace.bin
bb2189abc2f519a1-ps_replace.bin
c79b073fb291f156-ps_replace.bin
cae502002039c30e-ps_replace.bin
d58358f6dec67108-ps_replace.bin
db8e877fa4f727ff-ps_replace.bin
e17df990e5ddae19-ps_replace.bin
e185fa21b77c4199-ps_replace.bin
ed8617451684616f-ps_replace.bin
edb839816a7e382a-ps_replace.bin
f381c893a2e4c320-ps_replace.bin
f5cca9f0120613bf-ps_replace.bin
fdc801029fe76761-ps_replace.bin
fdceeb9538ef2524-ps_replace.bin
upscale.hlsl
upscale.ini

of

083142d277605711-ps_replace.txt
0a7c3d62ad708cf9-vs_replace.txt
134d9c8c426915ff-ps_replace.txt
2b147e5ca0b9a1df-vs_replace.txt
3c49432c0549fbec-ps_replace.txt
3e1eb618807ccba7-ps_replace.txt
453fe8aab687b2ff-ps_replace.txt
468efe41a1067ed3-ps_replace.txt
487b7ee4e3266edf-ps_replace.txt
7df6ac8e5cba2cfa-ps_replace.txt
80d4ddaea99341c0-ps_replace.txt
8b4984ae14bfc963-ps_replace.txt
90044237979044fa-ps_replace.txt
b1c6dbe9476c7487-ps_replace.txt
bb2189abc2f519a1-ps_replace.txt
c79b073fb291f156-ps_replace.txt
cae502002039c30e-ps_replace.txt
d58358f6dec67108-ps_replace.txt
db8e877fa4f727ff-ps_replace.txt
e17df990e5ddae19-ps_replace.txt
e185fa21b77c4199-ps_replace.txt
ed8617451684616f-ps_replace.txt
edb839816a7e382a-ps_replace.txt
f381c893a2e4c320-ps_replace.txt
f5cca9f0120613bf-ps_replace.txt
fdc801029fe76761-ps_replace.txt
fdceeb9538ef2524-ps_replace.txt
upscale.hlsl
upscale.ini


This means that the file(s) .txt have been compiled by 3dmigoto (d3d11.dll)

- tested

Tested with file version 4.17.2.0 of gravel
on win 10 / nvidia 1050gtx ti
See screenshot for settings game.

- performance

3dmigoto gpu usage 1080p@ ~60fps
without - clock 1746 Mhz gpu usage ~90%
with    - clock 1746 Mhz gpu usage ~90%
no measurable difference on (1050gtx ti on win 7 / win 10)
max gpu: 1772Mhz gpu usage 100%
*) Game capped at 61fps plus fast sync through nvidia inspector

- further tweaking

If you like you can compare the modified shader, ShaderCache contains
the original shader, to alter values.

To disable specific tweaks open the shader from
the folder 'shaderfixes' with a text editor example:
2b147e5ca0b9a1df-vs_replace.TXT

Has a remark on the top line:
// remove lens flare

So if you do not want that to happen
remove the shader from the folder 'shaderfixes'

2b147e5ca0b9a1df-vs_replace.TXT

and if compiled remove:

2b147e5ca0b9a1df-vs_replace.BIN

then restart the game.

All shaders <shadernumber>ps_replace.txt have
a similar descriptive remark. (see shader list)

to disable the effects in upscale.hlsl open
d3dx.ini and goto line 19 alter it from:
include = ShaderFixes\upscale.ini
to:
;include = ShaderFixes\upscale.ini
save and close d3dx.ini then launch the game.

- tips

https://www.pcgamingwiki.com/wiki/Gravel

- shader list

---------- 083142D277605711-PS_REPLACE.TXT
// water surface B
// ---- Created with 3Dmigoto v1.3.16 on Wed Oct 19 12:53:08 2022
  // reduce specular and tint

---------- 0A7C3D62AD708CF9-VS_REPLACE.TXT
// lens dirt persistent used in menu and far distance background
// ---- Created with 3Dmigoto v1.3.16 on Sun Oct 09 19:46:35 2022
  // more articulated rock mountains
  // reduce persisten lens dirt lower mountain foliage

---------- 134D9C8C426915FF-PS_REPLACE.TXT
// reduce specular and tint water surface
// ---- Created with 3Dmigoto v1.3.16 on Tue Oct 18 11:40:26 2022
  // reduce specular and tint

---------- 2B147E5CA0B9A1DF-VS_REPLACE.TXT
// remove lens flare

---------- 3C49432C0549FBEC-PS_REPLACE.TXT
// global illumination usable
// ---- Created with 3Dmigoto v1.3.16 on Fri Oct 07 22:57:35 2022
  // chrome and reflections
  //r0.xyz = r0.xyz * 0.8f;
    // reduce blue and green a bit
    //r2.z = r2.z * 0.96f;
    // reduce brightness and de saturates
    // reduce darkness back light specifically for cockpit view
    //r0.xyz = r0.xyz * (1.0f - r2.x) * v0.y * (1.0f + (1.0f - r2.x)) * 2.0f;
  // set to bt709

---------- 3E1EB618807CCBA7-PS_REPLACE.TXT
// lens dirt C
// ---- Created with 3Dmigoto v1.3.16 on Mon Oct 10 12:12:19 2022
  // add yellow

---------- 453FE8AAB687B2FF-PS_REPLACE.TXT
// increase transparency and add green tint to windshield car long angle slope B
// ---- Created with 3Dmigoto v1.3.16 on Tue Oct 18 10:22:22 2022
  // reduce range depth used for glass transparency
  // override glass tint also nullifies effects and flashing

---------- 468EFE41A1067ED3-PS_REPLACE.TXT
// fog haze dawn
// ---- Created with 3Dmigoto v1.3.16 on Sat Oct 15 12:24:20 2022
  // reduce density fog haze

---------- 487B7EE4E3266EDF-PS_REPLACE.TXT
// increase transparency and add green tint to windshield car B
// ---- Created with 3Dmigoto v1.3.16 on Sun Oct 16 13:33:45 2022
  // reduce range depth used for glass transparency
  // override glass tint also nullifies effects and flashing

---------- 7DF6AC8E5CBA2CFA-PS_REPLACE.TXT
// bokha effect billboards
// ---- Created with 3Dmigoto v1.3.16 on Sun Oct 09 20:31:06 2022
  // emissive light
  // reduce flare bokha effect

---------- 80D4DDAEA99341C0-PS_REPLACE.TXT
// reduce fog density

---------- 8B4984AE14BFC963-PS_REPLACE.TXT
// increase transparency and add green tint to windshield car C
// ---- Created with 3Dmigoto v1.3.16 on Wed Oct 19 11:32:28 2022
  // reduce range depth used for glass transparency
  // override glass tint also nullifies effects and flashing

---------- 90044237979044FA-PS_REPLACE.TXT
// autoexposure night and day?
// ---- Created with 3Dmigoto v1.3.16 on Fri Oct 07 23:30:29 2022
  // reduce darkening needs tweaking

---------- B1C6DBE9476C7487-PS_REPLACE.TXT
// car headlight D center inner
// ---- Created with 3Dmigoto v1.3.16 on Wed Oct 12 10:41:55 2022
  // redcue intensity light

---------- BB2189ABC2F519A1-PS_REPLACE.TXT
// reduce lens dirt and sun glare
// ---- Created with 3Dmigoto v1.3.16 on Fri Oct 07 22:52:14 2022
  // reduce lensdirt

---------- C79B073FB291F156-PS_REPLACE.TXT
// partial fix snow tracks layer in cockpit
// ---- Created with 3Dmigoto v1.3.16 on Thu Oct 20 10:34:00 2022

---------- CAE502002039C30E-PS_REPLACE.TXT
// car head light B haze
// ---- Created with 3Dmigoto v1.3.16 on Tue Oct 11 20:13:41 2022
  // reduce haze

---------- D58358F6DEC67108-PS_REPLACE.TXT
// increase transparency and add green tint to windshield car long angle slope
// ---- Created with 3Dmigoto v1.3.16 on Fri Oct 14 10:33:28 2022
      // increase reflections windshield
  // reduce range depth used for glass transparency
  // override glass tint also nullifies effects and flashing

---------- DB8E877FA4F727FF-PS_REPLACE.TXT
// reduce fogged windscreen front in cockpit with rainy weather
    // reduce fog front windscreen


---------- E17DF990E5DDAE19-PS_REPLACE.TXT
// close proximity fog or haze
// ---- Created with 3Dmigoto v1.3.16 on Fri Oct 14 11:01:34 2022
  // reduce density haze fog

---------- E185FA21B77C4199-PS_REPLACE.TXT
// reduce presence watersplash fx
// ---- Created with 3Dmigoto v1.3.16 on Mon Oct 17 12:38:38 2022
  // reduce presence water

---------- ED8617451684616F-PS_REPLACE.TXT
// gravel layer outback partial fix red layer on driver
// ---- Created with 3Dmigoto v1.3.16 on Mon Oct 17 12:24:52 2022
  // force layer to lower location not working well
  //r0.y = r0.y * 0.5f;
  // remove car tracks layer
  o3.w = 0;//r0.x;

---------- EDB839816A7E382A-PS_REPLACE.TXT
// increase transparency and add green tint to windshield car long angle slope C
// ---- Created with 3Dmigoto v1.3.16 on Wed Oct 19 12:48:44 2022
  // reduce range depth used for glass transparency
  // override glass tint also nullifies effects and flashing

---------- F381C893A2E4C320-PS_REPLACE.TXT
// sun orb
// ---- Created with 3Dmigoto v1.3.16 on Mon Oct 10 12:02:33 2022
  // add yellow

---------- F5CCA9F0120613BF-PS_REPLACE.TXT
// skybox night and day most races
// ---- Created with 3Dmigoto v1.3.16 on Mon Oct 10 10:27:32 2022
  // regulates emissive light sky
  // reduce darkness bottom screen and in cockpit view
  // more presence clouds
  // brighten during night reduce on snow tracks
  // reduce blue
  //r0.xyz = log2(r0.xyz);
  //r0.xyz = gamma * r0.xyz;
  //r0.xyz = exp2(r0.xyz);
  // decrease brightness
  //o0.xyz = (0.6f + v1.y) * exposure * r0.xyz;

---------- FDC801029FE76761-PS_REPLACE.TXT
// rear view mirror in car baked in to interior
// ---- Created with 3Dmigoto v1.3.16 on Mon Oct 17 13:22:43 2022
  // dampen brightness chrome and mirror
  // effects relief also light
  // edge light and ambient

---------- FDCEEB9538EF2524-PS_REPLACE.TXT
// lens dirt B
// ---- Created with 3Dmigoto v1.3.16 on Sat Oct 08 00:11:31 2022
  // reduce lens dirt odd does not work well

---------- SHADERS.TXT