Sign in to follow this  
rhumbaflappy

WaterClass Creation

Recommended Posts

Hi all.Waterclass may be changed just like Landclass. It requires a RAW sourcefile, and uses value #254 as transparent. My LandCalc programs will give the coordinates and other INF info for a 257x257 sourcefile.The values for water are found in the "Terrain Texture Naming Convention" document of the FS2002 Terrain SDKs.If you look at in the scenedbtexture folder, you'll see some BMPs named like the land textures, but they have a 'w' in the name. These are the water textures, and the first 3 numbers of the name ID that texture for a WaterClass BGL.The SDK also tells you the depth associated with a Waterclass assignment. Waterclass vertex assignments blend into the surrounding 4 directions, just like LandClass, so the watertiles are built at runtime, and are derived by the 4 surounding verticies that corner each watertile.Here's a sample INF:; PearlWater.inf; 257x257 source[Destination]DestDir = "."DestBaseFileName = "PearlWater"UseSourceDimensions = 1[source]Type = WaterClassU8SourceDir ="."SourceFile = "PearlWater.raw"Lon = -161.25Lat = 22.5NumOfCellsPerLine = 257NumOfLines = 257CellXdimensionDeg=0.0146484375CellYdimensionDeg=0.010986328125You can use this code as a template with a 257x257 sourcefile. Change the names, and the LON and LAT. The cell dimensions will stay the same for 257x257.Dick

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

I question to you about this thread in the thread named LANDCLASS Question. Thanks you for the explain.Jose

Share this post


Link to post
Share on other sites

That sounds great but this wil change the water color aspect and will not reshape the coast right?Michel

Share this post


Link to post
Share on other sites

Hi Michel.This may change the color, but more importantly, it will change the depth.The color of water may be changed with VTP polygons, with a Layer value of 0-3. VTPs are interesting, as they will allow 8-bit with Alpha transparency. So you should be able to get some unusual coloring effects by laying down up to 4 layers of transparent-texure colored polygons over water areas if desired, and that will not change the depth.Dick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this