![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Eternal Patrol
![]() |
![]()
How do I change the clarity of the water in SH4? In SH3 it's easy because it's covered by Commander.
I've checked the Scene.dat file with S3D, and couldn't find anything relevant to it, even though I've been told it's there. ![]()
__________________
“Never do anything you can't take back.” —Rocky Russo |
![]() |
![]() |
![]() |
#2 |
Ocean Warrior
![]() Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
|
![]()
I think it's called 'Underwater Fog' but it's been a long time since I looked in those files. Someone who knows what they are talking about will hopefully be along soon.
__________________
-------------------------------- This space left intentionally blank. |
![]() |
![]() |
![]() |
#3 |
Watch Officer
![]() Join Date: Mar 2010
Location: Yuba/Sutter, CA
Posts: 347
Downloads: 171
Uploads: 0
|
![]()
__________________
![]() |
![]() |
![]() |
![]() |
#4 |
Sailor man
![]() Join Date: Jun 2009
Posts: 45
Downloads: 8
Uploads: 0
|
![]()
If you mean water clarity when the camera is above the water surface, go to data\shaders\water , and edit "watertransPS.fx" or "watertransp64PS.fx". can't remember which one. You can edit them with the notepad, search for DepthLength or MaxDist.
If you're talking about clarity for underwater view, open scene.dat with S3d Node - sky -> EnvData -> EnvData -> Underwater -> Fog -> ZMax I'm not sure how much is one unit of ZMax, though. Hope that helps! |
![]() |
![]() |
![]() |
#5 |
Eternal Patrol
![]() |
![]()
It did help, Zel, and thank you. I did mean the underwater view. As I said, I had read 'Scene.dat' but I went in and couldn't find any files that said "Water". Your directions took me right there. The 'Zmax' seems to be the same as the files in SH3. I set it for 3, and then for 2, and I'm happy with the results.
3: ![]() ![]() And 2: ![]() ![]() Though it's certainly not to everyone's taste, I like the murky feeling. I hadn't thought about the transparency as seen from above, but now that you mention it I might try to shorted that a bit as well. Problem is I looked at the files you mentioned, and I found the word "Depthlength", but I'm not sure what the numbers mean and was afraid to fiddle with it. Anyway, I'll figure it out sometime (probably not without more help). Thanks again.
__________________
“Never do anything you can't take back.” —Rocky Russo |
![]() |
![]() |
![]() |
#6 | |
Admiral
![]() Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
|
![]() Quote:
![]() ![]() Throw it in a Mod folder and fiddle away. ![]() Peabody
__________________
System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2. |
|
![]() |
![]() |
![]() |
#7 | ||
Eternal Patrol
![]() |
![]() Quote:
(Cool! I've finally reached an age where I have my own special 'victim' status!) Quote:
D'OH! ![]() ![]()
__________________
“Never do anything you can't take back.” —Rocky Russo |
||
![]() |
![]() |
![]() |
#8 | |
Admiral
![]() Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
|
![]() Quote:
![]() Peabody
__________________
System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2. |
|
![]() |
![]() |
![]() |
#9 |
Sailor man
![]() Join Date: Jun 2009
Posts: 45
Downloads: 8
Uploads: 0
|
![]()
In the shader files, find this:
depthlength = saturate(depthlength/maxDist); in the other file: depthlength = saturate(depthlength/maxDist + shallowfactor); Replace maxDist with (maxdist * X) example: depthlength = saturate(depthlength/(maxDist*0.5)); X>1 should increase clarity X<1 should decrease it Mod both watertranspPS.fx and watertransp64PS.fx because i'm not sure which one the game will use. |
![]() |
![]() |
![]() |
|
|