Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF!

Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF!

Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by Toast King on Fri May 5th 2006 at 7:32pm
Toast King
139 posts
Posted 2006-05-05 7:32pm
139 posts 83 snarkmarks Registered: Mar 20th 2006 Location: South Africa
Ive been mapping for some time, but I still am confused by water. First off, I cant understand what water.lod.control does? The tutorial in Valve editing communty had very little detail, so please explain the whole transition thing. But I dont get it, my water seems to transform automaticly anyway? And the diffrent water materials seem to do diffrent things. I want a big open field of water, but in the distance it starts going brown and ugly (Like in de_aztec) and it looks crap. I want to be able to control the lod with that entity, but it doesnt seem to make a diffrence.
Also, fog. I dont get it either, it doesnt seem to fog in with the skybox, thus everything (Buildings and mountains) appear 100% white against the sky, which isnt affected at all by the fog, and thus it looks awful. Please help, how do I do fog properly? And do I need cubemaps for water? And lastly, when I made my water join onto a large field of water in the skybox (3D) by scaling the skybox water to 0.0650 or something, so it looked quite seamless. Is this right, considering the scale of the texure is 0.25 by default, so shouldnt I devide 0.25 by 16 to get the correct scale? And how come the mountains in my skybox wasnt reflected by the water in the skybox (Or maybe only not reflected when seen from the 'real world', but it may have been reflected if I went into the skybox.

HELP!
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by ReNo on Fri May 5th 2006 at 7:52pm
ReNo
5457 posts
Posted 2006-05-05 7:52pm
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Don't bulk questions together like this - one topic per question is the way this system likes things done. We'll let you off this time around though :smile:

I've yet to use water LODs or fog (god, I don't exactly experiment much do I!?), but I think you need a seperate fog controller for the skybox in order to get fog in there too. I've seen people talking about matching the level fog and skybox fog, hence that belief.

You should be using cubemaps for all your map, not just for water. Cubemaps are used by a lot of materials, so dot them around liberally. There are tips in tutorials and things on how to place them effectively.
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by rs6 on Fri May 5th 2006 at 8:00pm
rs6
640 posts
Posted 2006-05-05 8:00pm
rs6
member
640 posts 94 snarkmarks Registered: Dec 31st 2004 Occupation: koledge Location: New Jersey, USA
The water LOD thing pretty much tells the computer how from how far away the water should be a pretty looking.
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by Toast King on Fri May 5th 2006 at 8:12pm
Toast King
139 posts
Posted 2006-05-05 8:12pm
139 posts 83 snarkmarks Registered: Mar 20th 2006 Location: South Africa
But even using it, it doesnt seem to make a difference. It justs automaticly transitions :sad:
Hahaha! Im using the INTERNET!
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by reaper47 on Fri May 5th 2006 at 8:26pm
reaper47
2827 posts
Posted 2006-05-05 8:26pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
Only one (expensive) water shader is rendered at the same time. If there are 2 water brushes visible from one spot of the map (even if it's behind a wall and only drawn because of bad or incomplete VIS compiling) then one of the water brushes will look like an ugly grey something or disappear completely.

Water is mostly controlled by the texture you choose. I didn't even put any water_lod_controls in my map which is probably not very elegant but the default settings work best.
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by Toast King on Fri May 5th 2006 at 8:37pm
Toast King
139 posts
Posted 2006-05-05 8:37pm
139 posts 83 snarkmarks Registered: Mar 20th 2006 Location: South Africa
But when you enter the distance for it to start becoming cheap, is it supposed to be the distance from the player? Im still a bit confused, do you mean the ENTIRE water brush looks cheap?
Hahaha! Im using the INTERNET!
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by Toast King on Fri May 5th 2006 at 9:41pm
Toast King
139 posts
Posted 2006-05-05 9:41pm
139 posts 83 snarkmarks Registered: Mar 20th 2006 Location: South Africa
I dont know if it is my graphics card or something, but I dont seem to have 'cheap' water ever. Everything I try, every map I test with waterm every setting in the water LOD thing, but my water always stays expensive, with full reflections? What does cheap water look like, and at what distance does it become cheap?
Hahaha! Im using the INTERNET!
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by Captain P on Fri May 5th 2006 at 9:56pm
Captain P
1370 posts
Posted 2006-05-05 9:56pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
Distance from your point of view, sounds obvious to me. Why don't you take a look at the Valve wiki for some more info?
Create-ivity - a game development blog
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by Toast King on Fri May 5th 2006 at 10:05pm
Toast King
139 posts
Posted 2006-05-05 10:05pm
139 posts 83 snarkmarks Registered: Mar 20th 2006 Location: South Africa
The only problem that now remains is that my water never transforms into cheap water :sad: Cant understand why!
Hahaha! Im using the INTERNET!
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by reaper47 on Sat May 6th 2006 at 6:39pm
reaper47
2827 posts
Posted 2006-05-06 6:39pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
The only problem that now remains is that my water never transforms into cheap water :sad: Cant understand why!
Hmmm I've never seen this in any map. Doesn't sound that logical also. If you have expensive water it doesn't really matter if it becomes cheap 100 meters away, it would reflect half of the map in the 5 meters in front of you anyway, it would look odd to see the transition. Better use one cheap texture for the whole thing if you think it's to costly and forget about the transition. A screenshot with an example would be nice.

Also the more I read your initial post the more I think you mean the fog inside the water. This, again, is controlled by the textures themselves, I'm sure there is one that does what you want. If you'd like to control this with an entity I'd search for "fog distance".
Re: Water, Water, Water... Oh, and fog. VERY IMPORTANT STUFF! Posted by Toast King on Sat May 6th 2006 at 6:56pm
Toast King
139 posts
Posted 2006-05-06 6:56pm
139 posts 83 snarkmarks Registered: Mar 20th 2006 Location: South Africa
The fog doesnt matter, cause I figured out just to match the for color with the bottom half of the skybox color. About the water, yeah, if it is a big area I use cheap water material and for small areas (With less detail) I use the highest expensive.
Hahaha! Im using the INTERNET!