About Store Forum Documentation Contact
Donations:
206$/mo



Post Reply 
Problem with water rendering
Author Message
mih Offline
Member

Post: #1
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 :
[Image: water.jpg]

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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
mih Offline
Member

Post: #3
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 smile
(This post was last modified: 02-11-2010 05:34 PM by mih.)
02-11-2010 05:33 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Problem with water rendering
yes please,
maybe the mip maps are just incorrectly generated
02-11-2010 06:08 PM
Find all posts by this user Quote this message in a reply
mih Offline
Member

Post: #5
RE: Problem with water rendering
(This post was last modified: 02-11-2010 07:02 PM by mih.)
02-11-2010 06:57 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
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
Find all posts by this user Quote this message in a reply
mih Offline
Member

Post: #7
RE: Problem with water rendering
Ok thanks smile hm but how to set it properly ? grin
02-11-2010 08:25 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
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
Find all posts by this user Quote this message in a reply
mih Offline
Member

Post: #9
RE: Problem with water rendering
by like bump map you mean to make it gray ?
02-11-2010 09:43 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #10
RE: Problem with water rendering
02-11-2010 10:07 PM
Find all posts by this user Quote this message in a reply
mih Offline
Member

Post: #11
RE: Problem with water rendering
Oh i got it now ;D thanks wink
02-11-2010 10:48 PM
Find all posts by this user Quote this message in a reply
mih Offline
Member

Post: #12
RE: Problem with water rendering
Hi, I would like to ask if that problem with water rendering will be fixed anytime soon wink ?

//EDIT: I just downloaded the latest version of engine, and now the whole water surface looks like behind fog :
[Image: waterr.jpg]
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #13
RE: Problem with water rendering
it should be working ok now,
you need to adjust water parameters (reflection, ...)
02-19-2010 06:13 PM
Find all posts by this user Quote this message in a reply
mih Offline
Member

Post: #14
RE: Problem with water rendering
hm ok I will check those parameters
//EDIT: It works fine thanks wink
(This post was last modified: 02-19-2010 06:28 PM by mih.)
02-19-2010 06:25 PM
Find all posts by this user Quote this message in a reply
Post Reply