![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#16 |
Lucky Jack
![]() |
![]()
kriller2 speaks truth!
![]()
__________________
“You're painfully alive in a drugged and dying culture.” ― Richard Yates, Revolutionary Road |
![]() |
![]() |
![]() |
#17 |
Pacific Aces Dev Team
![]() |
![]()
SH5 does not use any more textures for the sky, neither external or embedded textures in the DAT/GR2 files. The gradations of the sky and the colors are calculated by the Sky_Shader. The input colors come from the CFG's in /data/env. There are the colors for different regions and daytime. You have SkyTopColor and SkyBottomColor and the shader now interpolates the colors and transitions between them. To get rid of the sky gradient bandings you must define a better and smoother algorithm within the shader.
__________________
-- Vapor-ware is always easier to sell because there's no limit what it can do! |
![]() |
![]() |
![]() |
#18 | |
Chief
![]() Join Date: Mar 2010
Posts: 325
Downloads: 42
Uploads: 0
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#19 |
Ace of the Deep
![]() Join Date: Jan 2007
Location: at periscope depth
Posts: 1,204
Downloads: 97
Uploads: 0
|
![]()
Sorry to say but i didn`t see it in sh3 and sh4.
I have now a nvidia 260GTX and see also the banding in the sky so maybe it`s videocard related.
__________________
![]() |
![]() |
![]() |
![]() |
#20 | |
Pacific Aces Dev Team
![]() |
![]() Quote:
and EnvColors_xxx.cfg's (\Silent Hunter 5\data\Env\) Code:
// 1. base gradient, from top to bottom float heightRatio = pow(In.eyeDir.w / 992.0, g_skyBottomColor.w); color = lerp(g_skyBottomColor.rgb, g_skyTopColor.rgb, heightRatio); Now in the above pixel shader code for each pixel the virtual camera eye is directed on, the color value will be calculated with a linear interpolation (x*(1-s) + y*s) between top- and bottom-color. This is done by the HLSL lerp() function. You can now implement a different algorithm for example with smoothstep() functions which calculate a smoother intepolation based on the Hermite Interpolation instead of linear interpolation but this can cause lower framerates if alot of smoothstep's are used.
__________________
-- Vapor-ware is always easier to sell because there's no limit what it can do! |
|
![]() |
![]() |
![]() |
#21 | |
Chief
![]() Join Date: Mar 2010
Posts: 325
Downloads: 42
Uploads: 0
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#22 | |
Ace of the deep .
|
![]() Quote:
Last edited by THE_MASK; 10-30-10 at 12:02 AM. |
|
![]() |
![]() |
![]() |
#23 |
Planesman
![]() Join Date: Jan 2010
Location: Greece
Posts: 188
Downloads: 115
Uploads: 0
|
![]() |
![]() |
![]() |
![]() |
#24 |
Eternal Patrol
![]() |
![]()
I see it in SH4, and not in SH3. I have no idea about anything involved with this, I'm just sayin'.
__________________
“Never do anything you can't take back.” —Rocky Russo |
![]() |
![]() |
![]() |
#25 |
Bosun
![]() Join Date: Oct 2010
Location: UK
Posts: 65
Downloads: 56
Uploads: 0
|
![]()
I get the banding in sh5 didn't notice it so much in 3 and 4.
I have an i7 quad core so i guess it's not something cpu related. My cards are 2 x NVIDIA GTX 470 in SLI althought i read somewhere SLI does not work in game ? 4gb RAM Windows 7 64 bit Screen is a Samsung Syncmaster P2450 My res in game is 1900x1080 i think (not got it running at moment ) and have maxed most graphics options in game. I personally think the latest nvidia cards accenctuate the banding maybe? TDW uses a Nvidia GTX480 do you get the banding TDW? Which enviroment MOD available at the moment best deals with this issue? I don't really want to mess with stock files and I'm guessing i could reduce the banding by tweaking my personal settings. Any ideas to reduce or eliminate it would be most welcome.
__________________
Don't dive, ram . |
![]() |
![]() |
![]() |
#26 |
Admiral
![]() Join Date: Jun 2010
Location: Canada
Posts: 2,272
Downloads: 58
Uploads: 0
|
![]()
the best explanation is that it is the video card
just like how games designed for nvidia cards are horrible on ati cards Ubisoft optimizes for ATI, so that is probably why |
![]() |
![]() |
![]() |
#27 | |
Grey Wolf
![]() Join Date: Jan 2002
Location: Holland
Posts: 785
Downloads: 122
Uploads: 0
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#28 |
Ace of the deep .
|
![]()
I can get rid of the banding completely by deleting the gradiant but it deletes the sun as well .
|
![]() |
![]() |
![]() |
#29 | |
Pacific Aces Dev Team
![]() |
![]() Quote:
change from: Code:
// 1. base gradient, from top to bottom float heightRatio = pow(In.eyeDir.w / 992.0, g_skyBottomColor.w); color = lerp(g_skyBottomColor.rgb, g_skyTopColor.rgb, heightRatio); Code:
// 1. base gradient, from top to bottom // float heightRatio = pow(In.eyeDir.w / 992.0, g_skyBottomColor.w); color = lerp(g_skyBottomColor.rgb, g_skyTopColor.rgb, 1 /*heightRatio*/);
__________________
-- Vapor-ware is always easier to sell because there's no limit what it can do! |
|
![]() |
![]() |
![]() |
#30 |
Ace of the deep .
|
![]()
How it looks in game . The pic was auto enhanced so the banding is easier seen . Doesnt look quite so bad ingame . Thanks seeadler .
![]() ![]() Last edited by THE_MASK; 11-01-10 at 02:55 PM. |
![]() |
![]() |
![]() |
|
|