Skip to content

bLTilities

paxetgloria edited this page Jul 18, 2018 · 25 revisions

bLTilities is a set of handy utilities which are accessible at any time, in other words, user doesn't need to create a bLT project(or load existing one) to access and use them. The resulting files are saved to Output path defined in the addon's preferences. Currently available are:

Generate flat terrain

Generates a ESRI ASCII based on the following parameters:

  • Cell size(in meters) - distance between two neighboring terrain vertices
  • Grid resolution(in pixels) - width&height of the final raster
  • Default elevation(in meters) - default height of terrain

Generate empty surface mask

Generates an empty(RGB) surface mask in PNG format based on the following parameters:

  • Image resolution(in pixels) - width&height of the final raster
  • Default color - a color to fill the image

Check surface mask

Checks for errors in surface mask and generates two additional raster which are meant to be used as an overlay(eg. in Photoshop) for original surface mask. User has to provide paths to surface mask file and layer.cfg file and set the following parameters:

  • Cell size(in meters) - distance between two neighboring terrain vertices
  • Terrain grid resolution(in pixels) - count of terrain vertices in a row(column)
  • Tile size(in pixels) - width of a single terrain tile's texture

It's recommended to have Blender's System Console turn on(Window -> Toggle System Console) to see the progress as the processing may take some time depending on maps size and your HW.

Output rasters

surfacemask_check.png

This raster provides information on:

  • how many colors(Left number) from layers.cfg file is present on the current tile, if count <=6, number has a Green color, otherwise Red
  • how many pixels(Right number) have invalid color(not defined in layers.cfg), if count >0, number has a Red color, otherwise Green

It also provides a histogram of colors(defined in layers.cfg), it reveals surfaces which have very low occurrence and can be removed or replaced by other more important surfaces.

invalidRGBMask.png

This black/white mask raster helps to localize pixels with color not defined in layers.cfg(relates to Right number from surfacemask_check.png).

Note: This file is generated in case there's at least one invalid pixel.