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 |

Green Atlantic
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
Schleichfart



Joined: 29 Mar 2005
Posts: 9

PostPosted: Tue Mar 29, 2005 8:19 pm    Post subject: Green Atlantic Reply with quote

Ok I did it, my ocean is greener than green! :sunny:

It's almost neon green now (a bit like in "Das Boot"!), but this can be tweaked easily, just to show you the effect! Thumbs Up

In case this has been posted before just ignore it! It seems that at least some of the colors are just simple RGB values, which is great news!

I take no responsibility what so ever! If your computer explodes and kills your cat don't blame me!!! MAKE A BACKUP!!!!!

Ok so what I did is this: I opened the EnvColors_Atl.dat (there are 3 ocean color files, one for arctic, one for med, and one for atlantic, so you can give every ocean a different color, the DEVs are so cool!) with a hex editor (I used xvi32) and there you see lots of parameters in plain text followed by numbers. I edited UnderwaterFog because I wanted green water. Ok so its written there UnderwaterFog followed by this byte sequence: 00 00 XX XX XX XX 00 00 00 where the XX represent the values. As I understand it so far the first 3 values represent Red, Green, Blue, I didn't find out about the fourth one. To experiment I set the second byte (Green) to max value of FF and voila, a neon green ocean! Tweak the color to your own pleasure! As I said
I don't know about the fourth byte, I set it to 00 and FF and it had no effect.

BUT!! In this file you will see "UnderwaterFog" (and the other variables like "WaterDarkColor") a couple of times, followed by sometimes the same, sometimes a different byte sequence! Make sure you take the first "UnderwaterFog" sequence and change all other sequences which have the same value! With my hex editor I could replace the byte sequence automatically: I only had to give in the original sequence (for example: 23 23 10 1A) and then the one I wanted to replace it with (For example: 23 FF 10 1A) and it replaced 6 sequences. Save the file and finished!

It may sound complicated, but it really isn't!

The dat files can be edited easily, which is great news! There is lot of other colors, and values! For example there is a "scene.dat" which has a "MaxWaveHeight" in it, I wonder what happens when we change it...

Note that not all colors in the dat file seem to have this simple RGB 4 byte sequence, some have 8 bytes, and I didn't find out yet how to change them... For a perfect underwater ocean we probably need to find out how to change UnderWaterDownColor and UnderWaterUpColor....


Last edited by Schleichfart on Tue Mar 29, 2005 8:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
flyingdane



Joined: 28 Nov 2004
Posts: 95

PostPosted: Tue Mar 29, 2005 8:28 pm    Post subject: Reply with quote

Can we see a pic of it? :hmm:
Back to top
View user's profile Send private message
Schleichfart



Joined: 29 Mar 2005
Posts: 9

PostPosted: Tue Mar 29, 2005 8:42 pm    Post subject: Reply with quote

Lol sorry I only have internet access at work and can't put screenshots up! But the colors can really be tweaked from pink to yellow, no limits! The first thing I did for experimenting I just copied the color values of WaterDarkColor to UnderwaterFog, and it did look good, dark green-blueish, so if you don't like neon green for a start you could do that...

Then I found out about the RGB, and now it shouldn't be difficult to mix any color you want. In fact the first one I ended up with was purple, looked quite psychedelic... Surprised

As I said there are lot's of other variables, from SunHalo to ShipWakeColor, no limits!! Thumbs Up

But yes be careful, I don't know if there are any bad sideeffects! :huh:
Back to top
View user's profile Send private message
Letum



Joined: 04 Feb 2005
Posts: 735
Location: United Kingdom Of Great Briton

PostPosted: Tue Mar 29, 2005 8:48 pm    Post subject: Reply with quote

Thanks for the wisdom mate!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Schleichfart



Joined: 29 Mar 2005
Posts: 9

PostPosted: Tue Mar 29, 2005 8:56 pm    Post subject: Reply with quote

Np! Thumbs Up But remember, be careful, this is the first mod I did in my life, so don't blame me in case something goes wrong! :8Cool

In the german forum marc_schreck just told me that in DirectX the 4th value means intensity... :hmm:
Back to top
View user's profile Send private message
Sulikate



Joined: 29 May 2004
Posts: 610
Location: Goiania, Brazil

PostPosted: Tue Mar 29, 2005 9:23 pm    Post subject: Reply with quote

nice mod men, hope it works with me :huh:
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
vonBimmell



Joined: 27 Mar 2002
Posts: 145
Location: canada

PostPosted: Tue Mar 29, 2005 9:35 pm    Post subject: Reply with quote

Why do you want a green Atlantic Ocean? I have sailed a lot of ocean in a real submarine, and the only colour I remember the Atlantic being is slate gray in bad weather, and a deep cobalt blue on sunny days. I have never seen any shade of green. The Carribean is a turquoise blue away from shore. I think SHIII models the colour quite well as is.
Back to top
View user's profile Send private message Send e-mail
Schleichfart



Joined: 29 Mar 2005
Posts: 9

PostPosted: Tue Mar 29, 2005 9:40 pm    Post subject: Reply with quote

Yes you are right, I should have mentioned it's the underwater color! And I think at least at some places the Atlantic is green underwater...
Back to top
View user's profile Send private message
akdavis



Joined: 24 Mar 2005
Posts: 171
Location: Fort Worth, Texas

PostPosted: Tue Mar 29, 2005 11:47 pm    Post subject: Reply with quote

This could also be used to realistically limit the viewing distance underwater, no?

Does "underwater fog" have separate horizontal and vertical values? (ideally down and horizontal would be equal, but up would be much greater)
Back to top
View user's profile Send private message
akdavis



Joined: 24 Mar 2005
Posts: 171
Location: Fort Worth, Texas

PostPosted: Tue Mar 29, 2005 11:55 pm    Post subject: Reply with quote

Schleichfart wrote:
Yes you are right, I should have mentioned it's the underwater color! And I think at least at some places the Atlantic is green underwater...


Quote:
Water Color
Clearer, deep water is very transparent to the blue portion of the light spectrum and less transparent to the green, yellow, red, and violet portions. In coastal waters usually heavy with sediment which is often stirred up, green and yellow light is able to reach greater depths than blue light.


http://www.diveinstruct.org.uk/terms11.html
Back to top
View user's profile Send private message
Schleichfart



Joined: 29 Mar 2005
Posts: 9

PostPosted: Wed Mar 30, 2005 12:05 am    Post subject: Reply with quote

There are the variables "UnderwaterDownColor" and "UnderwaterUpColor", which is probably the dark blue (if you look down)/lightblue(if you look straight) in the game now.
But I don't know yet how to change them efficiently. UnderwaterFog is just that, a fog, but if changed enough it affects the other colors because it's transparent. Maybe there are parameters for visibility or density of the fog, I don't know.... :hmm:

Regarding the color of water don't forget the algae and stuff, there are a lot of particles floating around, exactly the "UnderwaterFog"....

It bugged me that the atlantic looked like the caribbean underwater, but that can be changed now.... I probably will have it a dark green/blue....
Back to top
View user's profile Send private message
Sulikate



Joined: 29 May 2004
Posts: 610
Location: Goiania, Brazil

PostPosted: Wed Mar 30, 2005 12:16 am    Post subject: Reply with quote

youre right, a stronger underwater fog would be realistic, but I don't know how we could inplement it...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Polak



Joined: 01 Mar 2005
Posts: 443
Location: Poland/Sweden

PostPosted: Wed Mar 30, 2005 3:34 pm    Post subject: Reply with quote

You guys should release a wather color mod, I'm first in line to download it Thumbs Up
Back to top
View user's profile Send private message MSN Messenger
GunMod



Joined: 30 Mar 2005
Posts: 104

PostPosted: Wed Mar 30, 2005 4:22 pm    Post subject: Reply with quote

The fourth XX more than likely represents alpha/transparency

The higher the XX the higher the fog or just the opposite

Rotfl
Back to top
View user's profile Send private message Send e-mail
LuisCamoes



Joined: 24 Mar 2005
Posts: 299

PostPosted: Thu Mar 31, 2005 2:22 am    Post subject: Reply with quote

hey thanx for the info im divin in pea soup ala Das boot, I like it way better this way Thumbs Up
Back to top
View user's profile Send private message
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