SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   horizon bug in GWX (https://www.subsim.com/radioroom/showthread.php?t=103782)

WernerSobe 01-15-07 11:33 AM

horizon bug in GWX
 
hi. ive discovered a bug with the horizon in gwx.

the skycolors do not mach to the horizon they are flipped sides.

ive no screenshots so ill try to explain. Ive noticed a sharp color diference just above the horizon. Ive assumed it was just an issue with the fog color and tried to fix it. But then ive noticed that the fog becomes dark blue towards the sun during sunset and red on the other side... so its flipped and the contrast causes that line over the horizon.

Ive figured out that the bug is in scene.dat. Ive replaced the scene.dat with my old one from the environment mod and the line was gone. The skycolors match the horizon.

ive installed 16 km optional mod together with gwx so im not sure if it occurs in 8km standard atmosphere.

AVGWarhawk 01-15-07 12:10 PM

I have not seen this phenomenon. What type of video card do you have?

_Gabriel_ 01-15-07 12:14 PM

Hi,

well i dont seen that phenomenon too.
the only **** i have is some artefacts but that is a driver problem from nvidia when you have a 8800 GPU.


Greetings

Gabriel

geralt 01-15-07 12:30 PM

I know what you mean. This is known bug of the 16km visibility mod... there's a small gap between sky and ocean textures. Not completely perfect cure is to increase the EarthRadius value in scene.dat file (eg 3000000) to make the world more flat the gap appears to be smaller but still there.

It would be nice if anubody finds solution to get rig of this.

I guess the problem is the distant area around your sub is not covered by an ocean texture but only a 'color' (use the free camera, get high and you'll see) so the possible solution could be to extend the area coverd by ocean texture (could be fps killer)

please correct me if I'm wrong

and one more thing: when you put back the scene.dat which removes the gap I'm not sure you still have the 16km visibility you can compare the two scene.dat files

and it's not GWX specific all 16km mods I've tried suffered the same way BUT anyway for me the 16km mod is a must

small example
it's hard to see the gap with no zoom
http://img162.imageshack.us/img162/3...0071840bz4.jpg

but through binoculars (8x zoom)
http://img464.imageshack.us/img464/3...0071839zy7.jpg

_Gabriel_ 01-15-07 01:08 PM

[QUOTE=geralt]
*delete the quote* to keep it clean*
[QUOTE]

Hi,

now i know what you both mean yes i have that also.


Greetings

Gabriel

WernerSobe 01-15-07 01:46 PM

hm yea i have 16km visibility and i have no gap.

Ive already explained why it happens. The Horizon gradient is flipped side to the sky texture.

try this:

1. put your boat somewhere in the middle of the ocean and set the time to evening about sunset.

2. choose spectator camera and climb about 500 meters over surface

3. now take a look at the sky. The side towards the sun fades to red while the opposite fades dark blue.

4. now take a look at the fog at the horizon. It fades blue towards the sun and red on the other side.


When i use my old scene.dat the problem is gone but many features from gwx too. scene.dat from gwx is much larger i assume the modders have added a lot of content to it so i cannot realy compare them to find where the bug accurs. But maybe it can help the author of the gwx scene.dat.

geralt 01-15-07 03:39 PM

Quote:

Originally Posted by WernerSobe
....
When i use my old scene.dat the problem is gone but many features from gwx too. scene.dat from gwx is much larger i assume the modders have added a lot of content to it so i cannot realy compare them to find where the bug accurs. But maybe it can help the author of the gwx scene.dat.

you can view any *.dat file using TT's minitweaker
if you are interested I'd like to know what value is in your 'old' scene.dat
category: general enviromental data
item: dymanicoceangridsize (the 5th from top)

WernerSobe 01-15-07 04:23 PM

yea i have compared it with minitweaker and played around with values. There is almost no difference, at least with nothing that could cause that bug.

Btw.. my old scene.dat was actualy based on someone elses 16km mod. ive just changed some colors for my own. I dont remember where ive it from its a while back now.

I assume there is just some texture flipped. It has happened to me when i was moding sky colors too. Ive accidently flipped the skytexture once by converting it to another format and the sun raised in the west :sunny: maybe this is just as simple...

edit: and the value in my scene.dat
DynamicOceanGridSize = 60
EarthRadius = 800000

hornetsting 01-15-07 04:51 PM

Using also the 16km mod and yes indeed when i see this subject i
have also this bug. Thought that it was my videcard setting.

geralt 01-15-07 05:08 PM

Quote:

Originally Posted by WernerSobe
...Btw.. my old scene.dat was actualy based on someone elses 16km mod. ive just changed some colors for my own. I dont remember where ive it from its a while back now....

interseting... would you mind sending this old "bugless" scene.dat to me? I'd like to look at it myself 'cos as I wrote above I've found the 'gap bug' in all 16km mods I've tried.

_Gabriel_ 01-18-07 12:54 AM

Hi,

to fix that problem use SH3-Mini Tweaker load the scene.dat go to item "Other Fog Distances" and change the value for "FogDistances from 24 to 25 or greater" greater value than "25" seems not to change anything, but the horizon bug is gone with "25".
Will only work for clear sight and weather, when you have still some fog its there again, start the time when you have low fog but thats the way it should be when you have fog ;)

You will see it when you start a learn mission like the navigate one, there you have clear sight when you start a campaign you most time have little fog, but when you get clear sight at campaign then you will see its gone.

Greetings

Gabriel

geralt 01-18-07 05:29 AM

Quote:

Originally Posted by _Gabriel_
Hi,

to fix that problem use SH3-Mini Tweaker load the scene.dat go to item "Other Fog Distances" and change the value for "FogDistances from 24 to 25 or greater" greater value than "25" seems not to change anything, but the horizon bug is gone with "25".
Will only work for clear sight and weather, when you have still some fog its there again, start the time when you have low fog but thats the way it should be when you have fog ;)

You will see it when you start a learn mission like the navigate one, there you have clear sight when you start a campaign you most time have little fog, but when you get clear sight at campaign then you will see its gone.

Greetings

Gabriel

good tip:up: LOT of thanks

WernerSobe 01-19-07 12:05 PM

this method just kills the fog. So you actualy dont fix the bug by flipping the colors youre just removing the fog.

geralt 01-19-07 01:05 PM

Quote:

Originally Posted by WernerSobe
this method just kills the fog. So you actualy dont fix the bug by flipping the colors youre just removing the fog.

Ok, I have to test it more in bad weather, I've just tried some naval training when there's no fog.
But in your scene.dat you sent me I've found these values:
category:
Other fog distances
FogDistances=303
FogDistances=153 <--- default bug value is 24, _Gabriel_ suggested 25 as a solution

I'm gonna do some tests will edit this post later

/edit/ don't have much this evening
only 2 screenshots from GWX mission PQ17
original GWX scene.dat tweaked a bit (e.g. earthradius=3000000) FogDistance=25

I think the light fog is where it should be

http://img441.imageshack.us/img441/1...2131xk2.th.jpg

http://img104.imageshack.us/img104/8...1890ri9.th.jpg

my plan for tomorrow is to try this mission with light fog using different scene.dat settings and take more screenshots

WernerSobe 01-19-07 04:28 PM

yes i know. This is how it was originaly designed and it also kills the fog. Ive changed it to 24 in my version to get the fog back and it still does not cause that bug.

I think the author of that file wanted to get rid of fog because there is no good way to extend the sea fog without having grafical issues. The original sea fog is only about 5 km range. It looks silly when you can see ships at about 16km range but the waves only at 5km.


All times are GMT -5. The time now is 05:18 PM.

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.