Game Development Community

Need Help w/ Waterblock

by T. John Laird · in Technical Issues · 10/18/2007 (4:10 pm) · 2 replies

So far I've implemented a waterblock but it's so blue that it dosen't look natrual with the surrounding terrain. See here:

http://img.photobucket.com/albums/v50/blackdwarf/waterblockhelpss.jpg

Is there any way that I could make the color softer or less blue? I've looked at the documentation and tried lowering the surface opacity down to 0.2, but that only seemed to help a little bit. Here are the specs, I'd really appreciate any help in making it look better:

new WaterBlock(Water) {
canSaveDynamicFields = "1";
position = "-1024 -1024 -160";
rotation = "1 0 0 0";
scale = "2048 2048 200";
UseDepthMask = "1";
surfaceTexture = "~/data/water/water.png";
ShoreTexture = "~/data/water/wateredge.jpg";
envMapOverTexture = "~/data/skies/day_0007";
envMapUnderTexture = "~/data/terrains/grassland/sand";
specularMaskTex = "~/data/water/specmask.png";
liquidType = "OceanWater";
density = "1";
viscosity = "15";
waveMagnitude = "1";
surfaceOpacity = "0.2";
envMapIntensity = "0.2";
TessSurface = "20";
TessShore = "30";
SurfaceParallax = "0.2";
FlowAngle = "240";
FlowRate = "0.05";
DistortGridScale = "0.1";
DistortMag = "0.02";
DistortTime = "0.8";
ShoreDepth = "6";
DepthGradient = "1";
MinAlpha = "0.1";
MaxAlpha = "1";
tile = "1";
removeWetEdges = "0";
specularColor = "0 0.1 0.2 1";
specularPower = "20";
envMapTexture = "~/data/skies/day_0007";
};

#1
10/18/2007 (4:58 pm)
Try playing around with specularColor. The values are RGB with a max
setting in each of 1.0. Bring your B value down from 0.2 to 0.15 and
see what happens.
#2
10/30/2007 (11:18 am)
Thanks. I played around with the specular color and the top water texture and both approaches worked.