Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Real Fog Water 2.0
Goto page 1, 2, 3, 4  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
GunMod



Joined: 30 Mar 2005
Posts: 104

PostPosted: Sat Apr 09, 2005 4:22 am    Post subject: Real Fog Water 2.0 Reply with quote

Now with different color ability and realistic density up close!







Grab it Here ->
http://www.gunmod.org/SH3-Mods/Real_Water_Fog2.rar

Real Atlantic Water Mod 2.0
Author: GunMod

Description
===========

After my first attempt I am ready to release my real atlantic water mod.
With Denser water, correct color with regard to distance, and the murkiness is now based on distance.

This mod uses the lower dense water than some of you may want.
If you want Denser water please read MAKING YOUR OWN Section



To Install:
===========

Make a Back-up of EnvColors_Atl.dat found in SilentHunterIII\data\Env

Extract the contents of this mod into your SilentHunterIII\data\Env folder allowing it to overwrite the orginals


To Uninstall:
============

Replace the modded EnvColors_Atl.dat with your orginal back-up



MAKE YOUR OWN
===============

In the UNMODDED file EnvColors_Atl.dat there are several lines of Hex Code

For the Up Water Color, which is the color you see as you get near an object Find the Following:

Code:
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 B8 A0 7A CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 B5 98 7D CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 B4 B1 7E CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 AF 93 78 CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 A0 96 81 CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 99 74 46 CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 35 2F 1E CD CC 4C 3E 1C


Change all of the above to read:

Code:
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 6A 96 01 10 10 10 10 1C


This will make the up water color have the same color as the bottom water but be almost clear (Which is what you want)

Now, decide on the color you water is going to have. Using PaintShop Pro find a color you want
and flip the RGB values (example 18 A2 87 would become 87 A2 18)

Now replace the 6A 96 01 above with the color you decided on (Example 87 A2 18)

So now all the Up water color Hex codes would read:

Code:
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 87 A2 18 10 10 10 10 1C



Now, you should decide on a Water Fog Color. Think of this as the far distance water color.
For the mod I use pure black because whatever color you decide on will mix with the Up and Down Water Colors.
Black gives a better depth feel to it.

So FInd the following Lines:

Code:
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 67 54 32
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 50 46 3C
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 4F 4A 3C
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 4F 49 3C
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 39 34 28
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 32 3E 43
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 2B 21 15
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 18 15 0C


And change them to one of these:

Code:
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 6A 96 01 <-- Good Green
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 0E 1A 30 <-- Muddy Brown
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 00 00 00 <--Good Deepness


Or make your own, the last 3 hex codes are the BGR colors.



Now finally the DownWater Color MUST match the same color as the UpWater Color above.
If you don't your water will flash and just look like crap.

So using my mod as an example change the following hex codes:

Code:
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 1E 0F 02 66 66 66 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 1E 0F 02 33 33 33 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 1E 0F 02 00 00 00 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 29 22 1D 66 66 66 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 14 0B 01 66 66 66 3F 1C


to read one to match:

Code:
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 6A 96 01 79 79 80 FF 1C Dense
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 6A 96 01 69 69 80 FF 1C Less Dense
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 6A 96 01 39 39 80 FF 1C Lesser Dense <-- Mod Settings)


Match the 6A 96 01 Section BGR to whatever you did for the Upcolor water BGR

The last 5 hex codes in the down water determine the denisty.
Looking at the example above you can see how the code changes to make the water denser


As a final example I will show code for making hot pink water (just so you can follow what Im saying)

First in Paint SHop pro (Or any Paint Program that has Hex/HTML color codes listed) I decide that the RGB colors of
c004c2 makes a good pink color. No I must reverse this for BGR so it would become C2 04 C0 (Just flip the first and last hex double digits


Now, first lets set the Up water color.
So I change all the following:

Code:
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 B8 A0 7A CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 B5 98 7D CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 B4 B1 7E CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 AF 93 78 CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 A0 96 81 CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 99 74 46 CD CC 4C 3E 1C
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 35 2F 1E CD CC 4C 3E 1C


I change them all to:

Code:
55 6E 64 65 72 77 61 74 65 72 55 70 43 6F 6C 6F 72 00 00 C2 04 C0 CD CC 4C 3E 1C


Next lets make the Waterfog pink too

SO we change all of the following:

Code:
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 67 54 32
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 50 46 3C
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 4F 4A 3C
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 4F 49 3C
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 39 34 28
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 32 3E 43
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 2B 21 15
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 18 15 0C


Change them all to read:

Code:
55 6E 64 65 72 77 61 74 65 72 46 6F 67 43 6F 6C 6F 72 00 00 C2 04 C0


Lastly we change the Down Water which is the code the will determine the overall density.

Now remember the down water BGR MUST match the Up Water color

So change all of the following:

Code:
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 1E 0F 02 66 66 66 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 1E 0F 02 33 33 33 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 1E 0F 02 00 00 00 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 29 22 1D 66 66 66 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 14 0B 01 66 66 66 3F 1C


Change them all to read:

Code:
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 C2 04 C0 66 66 66 3F 1C


We are not done yet, No we need to change the last 5 hex sets in this line above to match the density to want.

SO using this chart:

Code:
79 79 80 FF 1C Dense
69 69 80 FF 1C Less Dense
39 39 80 FF 1C Lesser Dense <-- Mod Settings)


WE see that by changing the last digits to higher equal numbers we get denser water.

Here is how Hex goes from small number to larger (Clearer to Denser)

00 <-- Perfectly Clear
01
02
03
04
05
06
07
08
09
10 up to 99
then A0 up to A9
then A9 to AA
AB
AC
AD
AE
AF
B0 up to B9
B9 to BA
BB
BC etc, until we get to the highest Hex you can input which is FF


So if you chose FF FF FF 3F 1C you would have EXTREMELY dense water
If you chose 00 00 00 3F 1C you would have perfectly clear water

Lets say we want semi thick water
So lets decide on AA as our density

To finish our "pink" water you would change all the:

Code:
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 1E 0F 02 66 66 66 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 1E 0F 02 33 33 33 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 1E 0F 02 00 00 00 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 29 22 1D 66 66 66 3F 1C
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 14 0B 01 66 66 66 3F 1C


to read:

Code:
55 6E 64 65 72 77 61 74 65 72 44 6F 77 6E 43 6F 6C 6F 72 00 00 C2 04 C0 AA AA AA 3F 1C


Now get modding some cool water :)


ADVANCED MODDING
=================

You can if you understand the first section, mod your water to change color and density for different times of day.

What you will need to do is look at the orginal code and see when the colors for each variable we have modded are brighter or darker.
So you would then change the modded code to be darker or lighter for certain times of day.
I'm not going to go into detail because if you get the first section you should be able to figure this out.

Just remember: If you make different colors at different times make SURE the up color and down colors BGR for that time frame MATCH
Back to top
View user's profile Send private message Send e-mail
GunMod



Joined: 30 Mar 2005
Posts: 104

PostPosted: Sat Apr 09, 2005 4:34 am    Post subject: Reply with quote

Before I work on my next mod, please let me know of any problems or complaints you might have with this, so I'll know if I need to improve the mod.
Back to top
View user's profile Send private message Send e-mail
flyingdane



Joined: 28 Nov 2004
Posts: 95

PostPosted: Sat Apr 09, 2005 8:42 am    Post subject: Reply with quote

Very nice".....But how do you learn all this s**t (man to many numbers) if you know what I mean. =
Back to top
View user's profile Send private message
Jungman



Joined: 03 Apr 2005
Posts: 724
Location: Iowa, USA

PostPosted: Sat Apr 09, 2005 8:49 am    Post subject: Reply with quote

That is a really cool Mod, and thanks for the lesson on modding! Thumbs Up I will try it out.
Back to top
View user's profile Send private message
von Khan



Joined: 29 Mar 2005
Posts: 194

PostPosted: Sat Apr 09, 2005 9:16 am    Post subject: Reply with quote

Looks good, but perhaps a tad too green?
Back to top
View user's profile Send private message
flyingdane



Joined: 28 Nov 2004
Posts: 95

PostPosted: Sat Apr 09, 2005 9:23 am    Post subject: Reply with quote

Were those pic's taken at night ? and if so what's it look like during the day? :hmm:
Back to top
View user's profile Send private message
flyingdane



Joined: 28 Nov 2004
Posts: 95

PostPosted: Sat Apr 09, 2005 9:58 am    Post subject: Reply with quote

Oooh and while i'm here just look at this mug! hehe, to think I had to post 40+ times to get this, "I loves it sweet pea"
Better than what I realy look like lol.
Back to top
View user's profile Send private message
timetraveller



Joined: 23 Dec 2004
Posts: 967
Location: Atlantic Shipping Lanes

PostPosted: Sat Apr 09, 2005 3:07 pm    Post subject: Reply with quote

Most excellent work, GunMod! Thanks.

-timetraveller
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shockwave74



Joined: 30 Mar 2005
Posts: 229

PostPosted: Sat Apr 09, 2005 3:30 pm    Post subject: Reply with quote

timetraveller wrote:
Most excellent work, GunMod! Thanks.

-timetraveller


Yes the guy is a bomb Thumbs Up

Not only he releases quality stuff but he also teaches how to for the benefit of the whole community!

Cheers! Neutral\
Back to top
View user's profile Send private message MSN Messenger
Capn Tucker



Joined: 20 Mar 2005
Posts: 748
Location: DB56

PostPosted: Sat Apr 09, 2005 4:44 pm    Post subject: Reply with quote

Shockwave74 wrote:
timetraveller wrote:
Most excellent work, GunMod! Thanks.

-timetraveller


Yes the guy is a bomb Thumbs Up

Not only he releases quality stuff but he also teaches how to for the benefit of the whole community!

Cheers! Neutral\


Too bad my ears and eyes began to bleed after trying to comprehend all those numbers... Razz But thank God for people that can do this stuff..
Back to top
View user's profile Send private message
myros



Joined: 05 Apr 2005
Posts: 17

PostPosted: Sat Apr 09, 2005 5:40 pm    Post subject: Reply with quote

Looking great!
The first attempt with neon green made me wonder about modding these but I see its made a ton of progress since then. Good work.

M
Back to top
View user's profile Send private message
product



Joined: 06 Mar 2005
Posts: 100

PostPosted: Sun Apr 10, 2005 2:46 am    Post subject: Reply with quote

Does this affect surface water color at all?
Back to top
View user's profile Send private message
GunMod



Joined: 30 Mar 2005
Posts: 104

PostPosted: Sun Apr 10, 2005 2:51 am    Post subject: Reply with quote

Nope. That would require modifying....















something that I CANT FREAKING FIND (Crys like a baby)
Back to top
View user's profile Send private message Send e-mail
CCIP



Joined: 17 Apr 2005
Posts: 3224
Location: Ottawa, Canada [Grid BA7311]

PostPosted: Mon Apr 18, 2005 12:12 pm    Post subject: Reply with quote

Much-needed bump!
Thumbs Up
Back to top
View user's profile Send private message
Beery



Joined: 09 Nov 2004
Posts: 2817
Location: Boston, MA, USA

PostPosted: Mon Apr 18, 2005 1:09 pm    Post subject: Reply with quote

To be honest, I don't see any difference in the opacity of the water. Seems to me you can see just as far. It just seems darker (and greener) to me. Those images show that you can still see for over 1000 yards, whereas in real Atlantic water visibility is around 100 yards.

I realise I might be being overly critical, because I recognise that exploring the colour variations and darkness of the water has value in itself and may well show us the way forward on this, but I'm just not seeing an increased fog effect from this at this point.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop All times are GMT - 5 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group