![]() |
Water Clarity
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. :-? |
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.
|
|
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! |
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: http://i14.photobucket.com/albums/a3...175933_203.jpg http://i14.photobucket.com/albums/a3...180025_437.jpg And 2: http://i14.photobucket.com/albums/a3...181212_000.jpg http://i14.photobucket.com/albums/a3...181334_562.jpg 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. |
Quote:
Throw it in a Mod folder and fiddle away.:woot: Peabody |
Quote:
(Cool! I've finally reached an age where I have my own special 'victim' status!) Quote:
D'OH! :damn: :D |
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. |
Quote:
Peabody |
Well, I've just spent two hours experimenting and testing, and I like it!
@ Peabody: Thanks for the suggestion on JSGME. I'm going to relable what I've done and make several folders, one for Atlantic, Med and who knows what. @ Zel: Special thanks for telling me what I needed to know. There is one thing though - it's the opposite of what you thought. The smaller number is more clear, larger is less. I don't know why, but there it is. Here's what I found: .02 http://i14.photobucket.com/albums/a3...074405_156.jpg http://i14.photobucket.com/albums/a3...074627_578.jpg .05 http://i14.photobucket.com/albums/a3...073551_125.jpg http://i14.photobucket.com/albums/a3...080202_406.jpg 1 http://i14.photobucket.com/albums/a3...075936_343.jpg http://i14.photobucket.com/albums/a3...080202_406.jpg 2 http://i14.photobucket.com/albums/a3...080656_765.jpg http://i14.photobucket.com/albums/a3...080929_187.jpg 5 http://i14.photobucket.com/albums/a3...081348_718.jpg http://i14.photobucket.com/albums/a3...073300_312.jpg Any darker than 5 and you really start to lose the boat at periscope depth. I'm thinking I'll experiment with 20 meters and see how that looks, as that's about as deep as a plane should be able to spot you. Maybe 30, so the top of the conning tower will be at about 20. We'll see how it goes. |
Hi there,
I was looking into the same issue some time ago and wanted to reduce the water clarity (when viewed from the surface). I was quite happy with the result and wanted to make a little release out of it. But because of a lack of time I stopped tweaking it further - and playing too. Here is what I got up until that point: http://img717.imageshack.us/img717/1213/ul1.png Also in this thread: http://www.subsim.com/radioroom/showthread.php?t=162424 The change done was to edit the last lines of the main function in the data/shaders/waterTranspPS.fx file like this: (IIRC, can't test right now) Code:
float maxDist = WaterParams.w; |
That's interesting. I know so little about the files and what they do that I've never considered trying anything at all, much less the fancy stuff. I keep hoping to learn but I have so many other things I'm doing that I just keep putting it off.
|
Hmmm, I fixed the white jaggies around the sub in PE4 - are they back again in Real Environment Ichso?
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 05:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.