Changing the water color
Moderators: Lone Wolf, Snake Man
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Changing the water color
For example not all upcoming islands are built on the tropical setting where you get that nice turqoise water, but it might be more dark blue or so, maybe brown like in Vietnam rivers for example.
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- Newbie
- Posts: 6
- Joined: 2006-07-09 08:17:05
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- Newbie
- Posts: 10
- Joined: 2007-05-26 08:35:10
-
- Recruit
- Posts: 29
- Joined: 2005-01-03 16:45:00
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC

IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- Newbie
- Posts: 10
- Joined: 2007-05-26 08:35:10
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Code: Select all
waterTexture = "#(argb,8,8,3)color(0.35,0.47,0.66,1)";
Code: Select all
class CfgMaterials
{
class Water
{
PixelShaderID = "Water";
VertexShaderID = "Water";
ambient[] = {0.016, 0.0264, 0.04, 0.4};
diffuse[] = {0.032, 0.128, 0.128, 1.0};
forcedDiffuse[] = {0, 0, 0, 0};
specular[] = {1, 1, 1, 0};
specularPower = 4;
emmisive[] = {0, 0, 0, 0};
class Stage1
{
texture = "#(rgb,8,8,3)color(0.5,0.5,1.0,1)";
uvSource = "texWaterAnim";
class uvTransform
{
aside[] = {0, 4, 0};
up[] = {4, 0, 0};
dir[] = {0, 0, 4};
pos[] = {0.2, 0.5, 0};
};
};
class Stage3
{
texture = "#(ai,16,64,1)waterirradiance(16)";
uvSource = "none";
};
class Stage4
{
texture = "#(argb,8,8,3)color(0.5,0.5,0.5,1)";
uvSource = "none";
};
class Stage5
{
texture = "#(argb,8,8,3)color(0.5,0.5,0.5,1)";
uvSource = "none";
};
};
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- Major
- Posts: 241
- Joined: 2007-09-28 11:38:55
- Location: Down Under
water.color .27/.18/.09
water.deepcolor 0.15/0.09/0.05
this came from the init.con from the map/mission Operation Game Warden in the Game Battlefield Vietnam.
-
- Major
- Posts: 241
- Joined: 2007-09-28 11:38:55
- Location: Down Under
ambient[] = {0.016, 0.0264, 0.04, 0.4};
diffuse[] = {0.032, 0.128, 0.128, 1.0};
there sre also three parts to the water
first you have classWater then classShore and finally class ShoreFoam.
All three of thes will set the color for the water.
The class water does the further out part of the sea.
the class Shore will do about 5m from the waters very edge .
and the class ShoreFoam just does the the foam covering of the waters edge.
i hav replaced all three of the ambient and diffuse parameters and achieved success.i will post a screenshot for you to a have a look at .
The values i used are as follows
ambient[] = {0.15,0.09,0.05,1};
diffuse[] = {0.15,0.09,0.05,1};
this should work. hope this helps get Brown Water into VTE .
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- Major
- Posts: 241
- Joined: 2007-09-28 11:38:55
- Location: Down Under
- class water
- class shore
- class shorefoam
replace
ambient[] = {0.016, 0.0264, 0.04, 0.4};
diffuse[] = {0.032, 0.128, 0.128, 1.0};
with -
ambient[] = {0.15,0.09,0.05,1};
diffuse[] = {0.15,0.09,0.05,1};
these values will give you a brown water.
i hav different colors to also i havnt tried but i have seen in game in BFV.These settings are for the deep water color. the light color looked good but i thought u would prefer the deeper darker brown.Also is it possible to have different color water for different islands..I am running this as a dta folder with the bin.pbo inside the VTEMod folder ,is this the recomended way to do it 4 now?
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
We can discuss the individual VTE settings on the VTE Brown Water topic, lets keep this general editing for water color, may it be black, brown or green water

IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Good looking colors, could you post the RGB values before the images, you can press the "Edit" button on the post you want to edit, just add the RGB values before the img line for each image.
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- FreeFalcon
- Posts: 848
- Joined: 2001-03-04 23:01:01
- Location: here
-
- Major
- Posts: 241
- Joined: 2007-09-28 11:38:55
- Location: Down Under
ambient[] = {0.03,0.03,0.15, 0.4};
diffuse[] = {0.03,0.03,0.15, 1.0};

ambient[] = {0.109804,0.054902,0.000000, 0.4};
diffuse[] = {0.109804,0.054902,0.000000, 1.0};

ambient[] = {0.000000,0.078431,0.039216, 0.4};
diffuse[] = {0.000000,0.078431,0.039216, 1.0};

ambient[] = {0.25,0.25,0.25, 0.6};
diffuse[] = {0.25,0.25,0.25, 1.0};

ambient[] = {0.15,0.09,0.05,1};
diffuse[] = {0.15,0.09,0.05,1};

ambient[] = {0.27,0.18,0.09,0.8};
diffuse[] = {0.27,0.18,0.09, 1.0};

ambient[] = {0.25,0.05,0, 0.4};
diffuse[] = {0.25,0.05,0, 1};

ambient[] = {0.05,0.03,0, 0.6};
diffuse[] = {0.05,0.03,0, 1.0};

ambient[] = {0.1,0.2,0.05, 0.9};
diffuse[] = {0.1,0.2,0.05, 1.0};

ambient[] = {0.016, 0.0264, 0.04, 0.4};
diffuse[] = {0.016, 0.0264, 0.04, 1.0};

ambient[] = {0.032, 0.128, 0.128, 0.4};
diffuse[] = {0.032, 0.128, 0.128, 1.0};

-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".