Ecosystems

Ecosystems

Ecosystems, in LumenRT, are a collection of plants that are arranged in a random fashion. They are a very powerful construct for creating things like forests, parklands and wild gardens.

Plant Collections: With ecosystems, you specify a type of plant collection to be populated instead of a single individual plant. Plant Collections as the name implies are simply a list of plants. There are numerous pre-defined plant collections available which allow you to create many different kinds of ecosystems. For example, there is a plant collection called :BROADLEAF” which will randomly select a plant among a list of broadleaf tree species:

LumenRT.Ecosystem(“LumenRT.BROADLEAF”, 10,10,20)

You can also create custom Plant Collections by using the CityEngine string list constructor. For example:

LumenRT.Ecosystem(“Sagurao Cactus;Yucca”, rand(40,80),2,4)

Listed below are the enumerated pre-defined Plant Collections:
  • TREE
  • SHRUB
  • FOREST
  • BROADLEAF
  • PINE
  • OLDGROWTH
  • TROPICAL
  • BORDER
  • TROPICALSHRUBS
  • GARDEN
  • DESERT
  • FLOWER
  • BUSH
  • RANDOMPLANT
  • SEASONAL
  • SEASONALSMALL
  • SEASONALTALL
  • DEADTREE
  • STUMP
There are 4 different ecosystem methods available:
  • Ecosystem(CollectionName, Numberof Plants) – basic ecosystem creation at scale of 1.0
  • Ecosystem(CollectionName, NumberOfPlants, HeightMin, Height-Max) – basic ecosystem creation with plant height between min/max
  • Ecosystem(CollectionName, NumberOfPlants, ScaleDeviation) – a basic ecosystem where all plants are sized plants are scaled to a +- ScaleDeviation from their base asset height.
  • EcosystemObstacle(CollectionName, NumberOfPlants, ScaleDeviation) – identical to the basic ecosystem except this adds obstacle checking to omit plants that touch any asset or extruded shape within the initial shape area. Useful for populating plants around houses or ponds.
  • string CollectionName: The name of the pre-defined LumenRT Plant Collection or string list of plant names.
  • float NumberOfPlants: The number of plant instances to create
  • float HeightMin: The minimum plant lower height in meters.
  • float HeighMax: The maximum plant upper height in meters.
  • float ScaleDeviation: The scale deviation from the base asset scale in decimal percent.

Examples:

LumenRT.Ecosystem(LumenRT.PINE, LumenRT.SPARSE, 10.0,20.0) – creates a sparsely populated pine tree ecosystem in the height range of 10 to 20 meters.

LumenRT.Ecosystem(LumenRT.GARDEN, LumenRT.MODERATE,1,1) – creates a moderate density garden ecosystem with a target height of exactly 1 meter.

LumenRT.EcosystemObstacle(“Acer;Ash;Cypress”, 10,0.5) – creates a custom ecosystem of 10 Acer, Ash and Cypress trees with a scale range of 0.5 to 1.5 and populates around any obstacles in the shape boundary.

LumenRT中的生态系统是以随机方式排列的植物集合。它们是一个非常强大的构造,用于创建森林,公园和野生花园。
植物集合:使用生态系统,您可以指定要填充的植物集合类型,而不是单个植物。顾名思义,植物集合只是植物清单。有许多预定义的植物收集可用于创建许多不同类型的生态系统。例如,有一个名为“BROADLEAF”的植物集合,它将在阔叶树种的列表中随机选择一种植物:
LumenRT.Ecosystem(“LumenRT.BROADLEAF”,10,10,20)
您还可以使用CityEngine字符串列表构造函数创建自定义工厂集合。例如:
LumenRT.Ecosystem(“Sagurao Cactus; Yucca”,rand(40,80),2,4)
下面列出的是列举的预定义植物集合:

灌木
森林
阔叶
松树
OLDGROWTH
热带
边界
TROPICALSHRUBS
花园
沙漠

衬套
RANDOMPLANT
季节
SEASONALSMALL
SEASONALTALL
DEADTREE
STUMP
有4种不同的生态系统方法可用:
生态系统(CollectionName,Numberof Plants) – 基于1.0的基本生态系统创造
生态系统(CollectionName,NumberOfPlants,HeightMin,Height-Max) – 基本生态系统创建,植物高度在最小/最大之间
生态系统(CollectionName,NumberOfPlants,ScaleDeviation) – 一个基本生态系统,其中所有植物都是大小的植物,从它们的基础资产高度缩放到+ – ScaleDeviation。
EcosystemObstacle(CollectionName,NumberOfPlants,ScaleDeviation) – 与基本生态系统相同,除此之外添加障碍物检查以省略在初始形状区域内接触任何资产或挤压形状的植物。适用于在房屋或池塘周围种植植物。
string CollectionName:预定义的LumenRT Plant Collection的名称或工厂名称的字符串列表。
float NumberOfPlants:要创建的工厂实例数
float HeightMin:最小植物较低的高度,以米为单位。
float HeighMax:最大植物上部高度,以米为单位。
float ScaleDeviation:基本资产规模的比例偏差,以十进制百分比表示。
例子:
LumenRT.Ecosystem(LumenRT.PINE,LumenRT.SPARSE,10.0,20.0) – 创建了一个人口稀少的松树生态系统,高度范围为10到20米。
LumenRT.Ecosystem(LumenRT.GARDEN,LumenRT.MODERATE,1,1) – 创建一个中等密度的花园生态系统,目标高度恰好为1米。
LumenRT.EcosystemObstacle(“Acer; Ash; Cypress”,10,0.5) – 创建了一个由10个Acer,Ash和Cypress树组成的定制生态系统,其范围为0.5到1.5,并在形状边界的任何障碍物周围填充。

Was this article helpful?

Related Articles