Skip to content

shadowwzw/VegetationStudioProExtensions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VegetationStudioProExtensions

This repository contains custom extensions for Vegetation Studio Pro. Feel free to use in your own projects.

Requirements

Installation

  • Install Vegetation Studio Pro
  • Copy the contents of this repository to your Assets folder

Mask Extensions

Center / Grow / Shrink Vegetation and Biome Masks

Vegetation Mask Area

Adding the VegetationMaskAreaExtension.cs script to your Vegetation Mask Area will give you options to center the gameobject handle, grow the mask and shrink the mask.

Inspector:

vegetation-mask-modifier

Example:

vegetation-mask-example

Biome Mask Area

Adding the BiomeMaskAreaExtension.cs script to Biome Mask Area will give you options to center the gameobject handle, grow the mask and shrink the mask.

Inspector:

biome-mask-modifier

Example:

biome-mask-example


Mask Creation Menu

Custom menu in hierarchy for the creation of Biome and Vegetation Mask Area gameobjects. These will also add the VegetationMaskAreaExtension.cs or BiomeMaskAreaExtension.cs scripts:

hierarchy-mask-menu


Additional Functions

Additional functions for Vegetation Mask Area and Biome Mask Area

more-functions

  • Circle

    Get the bounds of the mask and create a circular shape using the existing nodes

  • Hexagon

    Get the bounds of the mask and create a Hexagon

  • Convex Hull

    Get all the nodes of the mask and create a Convex Hull using the node positons

  • Subdivide

    Adds new nodes between the existing nodes

  • Unsubdivide

    Removes every second node


Automatic creation of a Vegetation Mask Line

With the VegetationMaskLineExtension.cs extension attached to a gameobject you can have a Vegetation Mask Line automatically generated. All you have to do is provide it a container (parent gameobject). The transforms of the children of this container will be used to create a Vegetation Mask Line.

Inspector, empty:

vegetation-mask-line-empty

Inspector, container specified:

vegetation-mask-line-filled

Example:

vegetation-mask-line-example

Batch Functions

Custom Functions for use with Vegetation Studio Pro.

  • Runtime Spawn

    Enable or Disable "run-time spawn" of all of the Vegetation Items of the selected Biome. Note: No Undo available!

batch-functions

Biome Mask Spawner

Please backup your project if you use Biome Mask Spawner. It is in active development and bound to get non-backwards-compatible changes depending on requirements and feedback. A documentation will follow later, here's a quick overview video of what it can do:

Vegetation Studio Pro Extensions for Unity - Biome Mask Spawner

Here are some of the features:

  • Create random Biome Masks in various shapes

    • Voronoi
    • Rectangular
    • Hexagon
  • Random shape modifier allows to create randomly convex and concave masks

  • Multi-Tile-Terrain (naturally because Vegetation Studio Pro supports it)

  • Shape bounds variation

    The bounds used for the shapes can be of the following:

    • Combined Terrains

      Bounds of all terrains of your Vegetation System

    • Individual Terrains

      All terrains of your Vegetation System are processed individually

    • Biome

      Another Biome Mask Area defines the bounds in which the shapes are created

More procedural spawners like Lake creation will follow in a future update.

Credits

About

Custom tools for use with Vegetation Studio Pro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%