Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
MapMagic World Generator
MapMagic World Generator
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 157
    • Issues 157
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards
  • Denis Pahunov
  • MapMagic World GeneratorMapMagic World Generator
  • Wiki
    • Objectsgenerators
  • Trees

Last edited by Denis Pahunov Sep 21, 2020
Page history

Trees

Trees

Places the Unity terrain-based trees at input positions.

Trees Output can output a single type of tree, as well as different trees from the list at random. The mode is switched by enabling/disabling Multi-Prefab toggle in Properties.

Main Properties:

  • Tree prefab slot (Multi-Prefab disabled): the prefab that will be used as a tree object.
  • Tree prefab layers (Multi-Prefab enabled): different prefabs that should be used at random.

Properties:

  • Color: tints output tree objects with selected color
  • Bend Factor: sets the trees bend factor that defines how trees react to Wind Zones
  • Multi-Prefab: toggles between single output or several objects (each will be selected at random).
  • Biome Blend: defines the way trees are placed on biome transition.

Height:

  • Relative Height: places the object on the ground level. Useful when creating a graph without a Floor. For custom objects height placement it's recommended to use Floor node instead.
    Effect1
  • Object Height: takes into account an object height that was set via Adjust or other node.

Rotation:

Note that Unity internally uses different types of trees: SpeedTree, Tree Editor tree, LOD tree, billboard (impostor) tree. Billboard trees could not be rotated and always face the same direction.

  • Use Rotation: uses object rotation that was set via Adjust or other node.
  • Terrain Normal: forces the object to be rotated along the terrain surface so that it's Y axis looks along the terrain normal vector.
  • Rotate Y only: rotates object along it's Y axis only.
  • Regards Prefab Rotation: will apply additional rotation stored in prefab. So if prefab has rotation 90 degrees Z axis (most common cases for 3DS Max objects) will rotate it properly when applying to terrain.

Scale:

Note that Unity internally uses different types of trees: SpeedTree, Tree Editor tree, LOD tree, billboard (impostor) tree. Billboard trees do not scale the main object, but scale only the billboard.

  • Use Scale: uses object scale that was set via Adjust or other node.
  • Scale Y only: scales object along the Y axis only.
  • Regards Prefab Scale: will apply additional scale stored in prefab. So if prefab has a scale 10, and scale 2 set via Adjust node, it will have a resulting scale 20.
Clone repository
  • Batch
    • Biomes
    • Combined
    • Objects
    • Splines
    • temp
    • temp1
  • BiomesGenerators
    • BiomesSet
    • Description
    • Function
    • Whittaker
  • Brush
    • Resolution
  • Combine
    • Combined
    • temp
    • temp1
  • MM1
    • Creating a custom generator
View All Pages