FUEL
评价数不足
Custom Resolution & Shader Tweak
由 S.Victor 制作
Custom any resolution. Tweak shader, better bloom, shadow, luminance effects. Removing vignette effect...
   
奖励
收藏
已收藏
取消收藏
Custom Resolution
Note: if you want to use any non-std resolution, make sure to run the game in windowed mode (there are guides covering this). Using non-std resolution in fullscreen mode may cause display glitch such as black screen, please avoid doing so.

Custom any resolution:

1. Use the formula below:
Window Height * 65536 + Window Width
For example, if I want a resolution of 1900x900 (non-std resolution), the formula will be "900*65536+1900", and result "58984300".

2. Open "Registry Editor", you can open it either by press Win+R and type "regedit", or go to "C:\WINDOWS\" folder and run "regedit.exe".

3. In "Registry Editor", navigate to "HKEY_CURRENT_USER\Software\FUEL", find "VideoResolution" and double click it.

4. In "Edit DWORD Value" dialogue, find and select "Decimal" (this is important), then replace the value with the one we got from step 1 (in my case "58984300")

5. Click OK and close Registry Editor, now you can start game and enjoy new resolution.

Important Note: You have to start the game via "SecuLauncher.exe" in the game folder, since steam will run "GameSetup.exe" which will override any changes you made in Registry.
Same reason, if you messed up the values in Registry and want to restore them, just run the game via steam or run "GameSetup.exe".
Shader Tweak
Do you like the original FUEL looking?
Do you like a more natural looking FUEL, without exaggerated bloom/blur/luminance effect?
Then this guide can help you.

Before doing any changes, we need to backup the shader files first. The files are localed under the game's main folder (usually under "C:\Program Files (x86)\Steam\steamapps\common\FUEL"), named as "shaders".

You will need a text editor such as notepad or notepad++ to open and modify the shader files in the following guide.

NOTE: The following shader tweak only applies to the original FUEL shader files, may not use this guide for other shader mod.

NOTE2: Tundro Walker's RESHADED is a great shader mod, has lots commentaries, which I learned a lot stuff from his files (many thanks). However his shader mod has a very different color/art style direction comparing to the original FUEL, try it and see which one you may like.
Remove screen edge dirt
By default the game will keep build up dirt on screen edge while driving off road, only to wash off through water, this effect can cause visual bug with super wide screen resolution, but can be removed with following changes.

Remove edge dirt:

In shader folder, open file named "sfx.phl" with your text editor, go to line 54, change:
float4 color=tex2D(sDiffuse,float2(i.uv.x, i.uv.y)).rgba;
to
float4 color=tex2D(sDiffuse,float2(i.uv.x, i.uv.y)).rgba * 0;
and save.

Note: edge dirt is different from the dirt that splashed on to screen.
The above picture shows the default glitched edge dirt on super wide screen resolution.
Here is a possible workaround to the glitch if you want to keep edge dirt.

Fix edge dirt glitch:

Open file named "sfx.vhl", go to line 43, change:
position.x+=scale.x/aspectRatio;
to
position.x+=scale.x/(aspectRatio / 1.5);
and save.
Tweak bloom & luminance & motion blur & sun & shadow
Increase or decrease bloom effect:

Open "fx.phl", go to line 113, change:
vSample = (vSample * BLOOM_LUMSCALE * (0.3f/SCREENLUMINANCE) * tex2D(s1,float2(0.5f,0.5f)).x - BLOOM_BIAS)*BLOOM_SCALE;
to
vSample = (vSample * BLOOM_LUMSCALE * (0.3f/SCREENLUMINANCE) * tex2D(s1,float2(0.5f,0.5f)).x - BLOOM_BIAS)*BLOOM_SCALE * 0.5;
and save. This will half the amount bloom effect; increase or decrease the value (0.5) for more or less bloom.

Increase or decrease bloom glowing size:

Open "fx.phl", go to line 112, change:
vSample = 4*UnpackHDRSample( tex2D(s0, vScreenPosition) );
to
vSample = 8*UnpackHDRSample( tex2D(s0, vScreenPosition) );
and save. This will double the glowing size; increase or decrease the original value (4) to adjust different size. (Recommanded a value of 2 or less, as it removes some bloom artifacts that appear on certain objects, such as wire tower)

Increase or decrease overall luminance(eye adaptation effect) brightness:

Open "fx.phl", go to line 80, change:
currentLum = 1.5*exp(currentLum)/SCREENLUMINANCE;
to
currentLum = 1.2*exp(currentLum)/SCREENLUMINANCE;
and save. This will increase overall luminance brightness by quite a lot. The lower the original value (1.5), the brighter the overall brightness.

Increase or decrease overall brightness (on top of luminance and bloom):

Open "fx.phl", go to line 169, change:
float3 vx=vSample.rgb;
to
float3 vx=vSample.rgb*1.5;
and save. Higher value makes brighter.

Remove luminance effect (not recommanded):

Open "fx.phl",
go to line 60, change:
return float4(fLumSum.xxx, 1.0f);
to
return 0;
go to line 73, change:
return float4(vSample,vSample,vSample,1);
to
return 0;
and save. Removing luminance effect will cause some area too bright, not recommanded.

Reduce motion blur:

Open "fx_blur.phl", go to line 30, change:
half velocityAmp = length( velocity );
to
half velocityAmp = length( velocity * 0.5);
and save. This will half the amount motion blur.

Reduce sun brightness

Open "scattering.h", go to line 110, add the following line after line 110:
tweenf *= 0.5;
and save. This will half the sun brightness.

Reduce shadow darkness

Open "hlsl_shadow.h", go to line 249,
return (sourcevals[0]+sourcevals[1]+sourcevals[3]+sourcevals[4])*0.25f;
to
return (sourcevals[0]+sourcevals[1]+sourcevals[3]+sourcevals[4])*0.1f;
and save. This will greatly reduced darkness of shadow, also it will reduce the overall contrast/brightness. If to use this tweak, it's recommanded to also adjust the overall brightness of bloom and luminance for compensation.
Adjust UI opacity & vignette effect
By default Fuel uses a texture to create the vignette effect that makes screen borders dark, and there's no known way to modify texture file directly, makes removing it almost impossible :(

Again thanks to Tundro Walker's RESHADED mod, one of his commentary pointed out a solution.

Adjust global UI opacity:
Open "base.vhl", go to line 40, change:
color.a = i.color.a*tex2D(sDiffuse,i.diffuse).a;
to
color.a = i.color.a*tex2D(sDiffuse,i.diffuse).a * 0.5;
and save. This will reduce opacity of all UI (except GPS bar and radar map) & vignette effect to half.


To completely hide UI and vignette effect, just change "0.5" to "0".
(Note, this will make every UI text invisible, after game start, you have to blindly press "Enter" key a few times, then wait the yellowish scene to appear, then press ESC to go free ride)
I find a value of 0.3 or 0.4 is good enough to make vignette effect almost invisible, while UI still noticable.

To hide GPS bar, just use the corresponding key you set in game.

To hide radar map at the left bottom corner, you can use any one of the following methods:

1. Use FUEL: REFUELED mod and activate one of those "Disable GPS" mod.

2. Activate the debug menu, two methods as well:
(1) Activate "Enable Debug Tools" mod from FUEL: REFUELED.
(2) Or, go to FUEL main folder and open "usergame.tsc" file with text editor, find line with "//adhud" and change it to "adhud" and save.
Then start game, go to free ride mode, Press "T" to bring up debug menu, navigate to "HIDE HUDS", press "Left" or "Right" key multiple times until all HUDs disappear.
Example Result
Here is an example of my shader settings:

The picture below applied the shadow value (0.1f),
with overall luminance brightness (1.3*exp),
and with overall brightness (vSample.rgb*1.5),
and the (0.5) bloom effect with glowing size value (2).
And finally the almost invisible UI/Vignette effect (0.3).



That's all, will update if new things found.
If there's any error in this guide, please correct me.
Thanks to everything the community and mod creators have provided.
Extra tweak
Here is a tweak that will improve dynamic luminance, giving a more natural feeling between dark and light area (for example, scene won't look too dark when under the noon sunshine. Or when in a dark area such as forest or inside a shanty, the luminance won't become too bright).

Open "fx.phl", find line 57, and change:
fLumSum /= 4;
to
fLumSum /= 6;

a few more screenshots:
2 条留言
AlexVS 2024 年 6 月 4 日 下午 1:03 
Ох, спасибо. Наконец-то я смог разрешение нормальное поставить (через родную утилиту вообще не понял как он работает, появляется картинка и никаких кнопок, по ESC закрывается все и не сохраняется ничего).
🗿 s1ngle 2017 年 10 月 25 日 上午 4:50 
спасибо за руководство ,долго искал похожее