Kamino White Water Bugs + Fix Tutorial

Started by Phobos, May 16, 2011, 04:12:07 PM

Previous topic - Next topic
May 16, 2011, 04:12:07 PM Last Edit: November 10, 2011, 08:08:58 PM by Inactive
You can see I am building kamino twilight city right now
http://www.xfire.com/video/46d563/

In this video you see water bugs. After many tests I found out the cause of the water turning white. It is easier than it seems.

The cause of this problem is actually in the sky file for the map you are editing. In the world1 folder find kamino1.sky here are the stock settings
   Texture("SKY_kam1.tga");
   Angle(-90.000000);
   Ambient(255.000000, 255.000000, 255.000000);
   Filter(1);
   Threshold(50);   
   Intensity(50);

   Softness(1);
   SoftnessParam(60);
   TerrainEnable(0);


When you look in other sky files such as Citadel you see it is very similar but missing terrainenable. I suspect this allows the sky dome to wrap it's texture under the map as you see with most stock maps, and so the default setting is probably TerrainEnable(1);. This means that for editing stock and/or modded maps, if you have a lot of water and want it to stay transparent without the sky messing it up, you have to add this code underneath softnessparam
   TerrainEnable(0);

Before


After