Fandom

武装突袭 Wiki

Terrain Processor: Area: Random

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

Task details

Task name : Area: Random

Dll plugin name : BITasksPlugin.dll

Geometry type : Polygon, PolygonM, PolygonZ

Heightmap : No

Description

Random placement of multiple objects inside the polygons specified in the given shapefile. Very easy, random positions only two conditions - probability and minimal distance from another objects.

Task parameters

  • RANDOM SEED - number used to initialize pseudorandom number generator.
  • DENSHA - The density of the filling in number of objects for hectare. For example 100 objects for hectare means an average distance of about 10 meters between objects.

Object prototype parameters

  • OBJECT - Object's prototype name
  • PROB - Object's probability
  • MINHEIGHT - Minimal size in %
  • MAXHEIGHT - Maximal size in %
  • MINDIST - Minimal distance in meters

Usage

This algorithm is very simple, it generates random positions in area with given density. You can use it for forests with clustering or stones in open terrain.

Algorithm

For each shape (areal) do :

  1. instances_count = HECTARES * DENSHA
  2. For instances_count try to find position :
    1. Random position in bounding box.
    2. If position is inside shape, continue to c. else a.
    3. Test with objects if minimal distance is ok then add new random prototype instance in output and a else a.

If this loop a <-> c has no new output for last 100 attempts, area is full and iteration of this shape will end.



更多维基

随机维基