UBOAT
zaft-zerg Jan 11, 2021 @ 7:02am
about the the underwater brightness.
We want to adjust the underwater brightness.
We know it's dark under the water, but we still see what it looks like when the submarine is completely submerged.
< >
Showing 1-10 of 10 comments
Dewgle Jan 11, 2021 @ 12:06pm 
Somebody made a mod for that in the Uboat discord. I hope they'll publish it to the workshop.
Davinci Jan 13, 2021 @ 6:50pm 
Originally posted by zaft-zerg:
We want to adjust the underwater brightness.
We know it's dark under the water, but we still see what it looks like when the submarine is completely submerged.
Only two ways that I am aware of....

Data Sheets \ General \ BackgroundTask \ Line 25

But, this sort of causes the boat too glow in the dark.

The other way is with a Program called DnSpy

Open the com.uboat.game.dll
Search for UBoat.Game.Scene.Effects
Scroll down until you see the UnderwaterLightEffectTask

If you decide to change this file, remember to save a backup copy on the Desktop.
zaft-zerg Mar 12, 2021 @ 6:50am 
Originally posted by Davinci:
Originally posted by zaft-zerg:
We want to adjust the underwater brightness.
We know it's dark under the water, but we still see what it looks like when the submarine is completely submerged.
Only two ways that I am aware of....

Data Sheets \ General \ BackgroundTask \ Line 25

But, this sort of causes the boat too glow in the dark.

The other way is with a Program called DnSpy

Open the com.uboat.game.dll
Search for UBoat.Game.Scene.Effects
Scroll down until you see the UnderwaterLightEffectTask

If you decide to change this file, remember to save a backup copy on the Desktop.
:steamthumbsup:
thank you very much for your help
I followed your instructions to modify its dll file
private void DoUpdate()
{
float num = -3f -UnderwaterLightEffectTask.mainCamera.transform.position.y;
if (num> 0f)
{
this.lightEffect.enabled = true;
float num2 = this.lightIntensity;
num *= 0.12f;
if (num> 1f)
{
num = 1f;
}
this.lightEffect.intensity = num * num2 * this.intensityMultiplier * 0.1f;
return;
}
this.lightEffect.enabled = false;
}
I reduced the impact of "this.lightEffect.intensity" by 1/10.
But there is no change in the game.

I feel that because there is no light underwater, we modified this.lightEffect.intensity and it has no effect.

So I would like to ask, where should I look for a light that shines underwater?
Davinci Mar 12, 2021 @ 5:47pm 
I tried this months and months ago, but never could get the right lighting effect.

But, now that you asked, maybe this is the wrong approach, perhaps the answer is changing the color of the water in the ocean to resemble the color of the water around the docks.

I'll post back if I can find out any new information.
zaft-zerg Mar 13, 2021 @ 8:56am 
I solved this problem last night.
I found that the function of this code is to trigger a light attached to the lens after the submarine dives 3 meters with the lens.
As the depth of the dive is deeper, the light will be brighter.
Last time I reduced its light to 1/10, so it did not produce the correct effect.
The better approach here is to multiply it by 60 times the effect.
Davinci Mar 13, 2021 @ 9:12am 
Originally posted by zaft-zerg:
I solved this problem last night.
I found that the function of this code is to trigger a light attached to the lens after the submarine dives 3 meters with the lens.
As the depth of the dive is deeper, the light will be brighter.
Last time I reduced its light to 1/10, so it did not produce the correct effect.
The better approach here is to multiply it by 60 times the effect.
Can you post a picture where the boat is approximately 50-100 meters depth?
Davinci Mar 14, 2021 @ 2:08pm 
Well, your boat shows up better than anything that I have managed to edit.

Have you been able to determine what settings control the darker water when the boat goes deeper?

I messed up somewhere with that file, and now no matter how much noise I make, the destroyers are not able to locate me. So, after a hundred different edits, I just now re-downloaded that file to start all over.

This time I plan on documenting any changes for future references , especially after B 129 comes out, and over-writes this file.
Originally posted by zaft-zerg:
https://steamcommunity.com/profiles/76561198039526207/screenshots/?appid=494840
I try it`````
Just tried editing the values according to your setting. Thank you for that, personally I really like the result...I think I will keep this from now on. Maybe you can wrap up a mod, I think people would be interested
uncleseano May 2, 2022 @ 12:58pm 
Can you post your UnderwaterLightEffects or just the code snippet from the doUpdate()?
< >
Showing 1-10 of 10 comments
Per page: 1530 50