Page 1 of 2

How to change water colour?

Posted: August 31st, 2010, 2:08 am
by Lemon
I thought it would be rational to change water colour the same way you change fog colour. But I found out I can't do it that way. So, what can be done to make colored water? ;)

Re: How to change water colour?

Posted: August 31st, 2010, 4:41 am
by owenisred
Yea its slightly different. Just type in watercolour R G B and change the letters to the amount of red green and blue you want the coulour to be. (default is 20 80 80)

If this didnt work for you before, did you physically get into the water? Depending on your water spec and water fog values the surface may appear the same, but when you enter, it will be the colour you want. If you only want the top of the water a different colour, try reducing water spec.

The next bit is quoted from the mapping command reference:
fog N
Sets fog distance to N (default: 160). You can do this for tweaking the visual effect of the fog, or if you are on a slow machine, setting the fog to a low value can also be a very effective way to increase fps (if you are geometry limited). Try out different values on big maps or maps which give you low fps.

fogcolour N
The colour of the fog, which may be represetned as a decimal integer from 0..16777215, or a hexidecimal value from 0x000000..0xFFFFFF (note the "0x") in "0xRRGGBB" format, where R is red, G is green, and B is blue values (default: 8427955 (0x8099B3)).

waterspec N
This sets the percentage of light water shows as specularity (default: 150).

waterfog N
Sets the distance beneath the surface of water at which it fogs, from 1..10000 (default: 150).

watercolour R G B
Sets the the colour of fog inside the water to the specified R G B value from 0..255 (default: 20 80 80). Used to give water some colour.

waterfallcolour R G B
Sets the the colour used for waterfall turbulence to the specified R G B value from 0..255 (default: 0 0 0). If the default of 0 0 0 is specified, waterfalls will use the colour supplied via "watercolour" instead.
Hope I helped!
Owen.

Re: How to change water colour?

Posted: August 31st, 2010, 6:41 am
by RonnieNeeley
Wow Owen, that's neat! I had no clue about that, thanks Lemon for posting the question and Owen for answering, this will come very much in handy :)

Re: How to change water colour?

Posted: August 31st, 2010, 7:20 am
by owenisred
Glad to be of service :)

Re: How to change water colour?

Posted: August 31st, 2010, 7:41 am
by owenisred
Hmm,

Do you know about, yawsky, spinsky and writeobj? I printed off, read and annotated the entire mapping reference (took a while), and they were some of the coolest things in it.
spinsky SPIN
a floating point value that specifies, in degrees per second, the rate at which to spin/yaw the skybox. NOTE: You must place this in your map's .cfg file for it to save!

yawsky YAW
specifies in degrees a constant yaw rotation to apply to the skybox. NOTE: You must place this in your map's .cfg file for it to save!
writeobj N
Writes out the current map as N.obj, so you could use Platinum Arts Sandbox as a generic modeller with any program/engine that uses meshes. The meshes aren't very optimal and don't have texture/lighting information.

Re: How to change water colour?

Posted: August 31st, 2010, 8:45 am
by Lemon
Owen, thank you so much! I really didn't enter the water before and didn't notice 'waterspec N' function in documentation.
It's kind of you to show me the right way! :)

RonnieNeeley, 8-)

Re: How to change water colour?

Posted: August 31st, 2010, 8:47 am
by owenisred
No problem :)

Re: How to change water colour?

Posted: August 31st, 2010, 12:59 pm
by klimyriad
Got to this before me heck good job Owen.

Re: How to change water colour?

Posted: August 31st, 2010, 1:12 pm
by owenisred
thanks man :)

Re: How to change water colour?

Posted: August 31st, 2010, 1:20 pm
by klimyriad
Your welcome