Arma 3 Scripting

Terrain Processor: Area: Low-density Cluster (circle)

Topic · Markdown · JSON · original wiki page

Task details

Task name : Area: Low-density Cluster (circle)

Dll plugin name : BITasksPlugin.dll

Geometry type : Polygon, PolygonM, PolygonZ

Heightmap : No

Description

Algorithm used for populating low-density areas. Objects are organized in circle clusters.

Task parameters

Object prototype parameters

Usage

Use this algorithm for placing small object clusters in open areas. Suitable for "peeppering" the landscape with occasional small group of bushes with occassional tree in it, or clusters of small stones with bigger ones closer to the cluster centers.

Algorithm

For each shape (areal) do :

  1. clusters_count = HECTARES * CDENSHA
  2. For clusters_count :
    1. Get random prototypes group.
    2. Find position inside shape = cluster_center.
    3. For each object prototype do :
      1. prototypes_count = random MINCOUNT - MAXCOUNT
      2. For prototypes_count :
        1. Get random direction_vector with random length (0 - MAXCRADIUS) from cluster_center.
        2. If position = cluster_center + direction_vector id inside shape and condition MINDIST[n] is ok, then 3. else 1.
        3. Create new instance for object prototype in position.

Sample