mih
Member
|
Problem with water rendering
Hi, I have a strange problem with water. I have very large viewport range, and there is a fog, but the water renders normal only very close to the camera(the red ellipse) and after that border there is something like a fog, and after that far far away is the normal fog. Anyone noticed something similar ? my water code looks like this :
Code:
Water.images(Images("gfx/water/water3.gfx"),Images("gfx/water/water3.n.gfx"),Images("gfx/fx/water3.s.gfx"));
Water.wave_scale=0.7;
Water.scale_diffuse = 150;
Water.plane += Vec(0,-3,0);
Water.specular=0.35;
Water.reflect = 0.9;
Water.density=0.3;
Water.draw = true;
here is the screen :
so is there a way to get rid of that 'middle fog' ? so I can see the whole, let say ocean ?
|
|
02-11-2010 04:30 PM |
|
Esenthel
Administrator
|
RE: Problem with water rendering
do you have enabled Fog or Sky. density exponent, frac?
do you have this problem with default textures?
do you have any ground surface under water?
|
|
02-11-2010 04:46 PM |
|
mih
Member
|
RE: Problem with water rendering
Yes there is a sky enabled, but the exponent and fraction values are default, but i was trying to change the exponent value to a very high number and It did nothing.
I checked the problem with the default texture and It looks ok, that strange fog shows up only with my custom textures, I can send you them if you want to check It
(This post was last modified: 02-11-2010 05:34 PM by mih.)
|
|
02-11-2010 05:33 PM |
|
Esenthel
Administrator
|
RE: Problem with water rendering
yes please,
maybe the mip maps are just incorrectly generated
|
|
02-11-2010 06:08 PM |
|
mih
Member
|
RE: Problem with water rendering
(This post was last modified: 02-11-2010 07:02 PM by mih.)
|
|
02-11-2010 06:57 PM |
|
Esenthel
Administrator
|
RE: Problem with water rendering
I've made a small adjustment, it should be ok in the next release.
however you should set your alpha channel of the normal map properly, so you can see the wave bump effect
|
|
02-11-2010 07:38 PM |
|
mih
Member
|
RE: Problem with water rendering
Ok thanks hm but how to set it properly ?
|
|
02-11-2010 08:25 PM |
|
Esenthel
Administrator
|
RE: Problem with water rendering
instead of flat white, you can set it to be like a bump map
|
|
02-11-2010 09:14 PM |
|
mih
Member
|
RE: Problem with water rendering
by like bump map you mean to make it gray ?
|
|
02-11-2010 09:43 PM |
|
Esenthel
Administrator
|
RE: Problem with water rendering
|
|
02-11-2010 10:07 PM |
|
mih
Member
|
RE: Problem with water rendering
Oh i got it now ;D thanks
|
|
02-11-2010 10:48 PM |
|
mih
Member
|
RE: Problem with water rendering
Hi, I would like to ask if that problem with water rendering will be fixed anytime soon ?
//EDIT: I just downloaded the latest version of engine, and now the whole water surface looks like behind fog :
to compare, please look at the screenshot in the first post
(This post was last modified: 02-19-2010 06:08 PM by mih.)
|
|
02-19-2010 05:53 PM |
|
Esenthel
Administrator
|
RE: Problem with water rendering
it should be working ok now,
you need to adjust water parameters (reflection, ...)
|
|
02-19-2010 06:13 PM |
|
mih
Member
|
RE: Problem with water rendering
hm ok I will check those parameters
//EDIT: It works fine thanks
(This post was last modified: 02-19-2010 06:28 PM by mih.)
|
|
02-19-2010 06:25 PM |
|