Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[FREE] Vegetation Studio Pro Extensions (Open Source, GitHub)

Discussion in 'Assets and Asset Store' started by Rowlan, Feb 25, 2019.

  1. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,824
    Foreword: This asset is independent of the Vegetation Studio Pro thread and unsupported by the publisher of Vegetation Studio Pro, these tools are my own which I created for my own purposes. I thought I'd share in case anyone has use for them.

    Most of you who know me probably figured out that Vegetation Studio Pro is one of the most amazing assets on the store for me and that everything I do basically evolves around it. I created several tools which I thought some of you might benefit from. So I thought I'd share. But in any case, if you have your own tools / extensions, please do feel free to contribute :)

    You can find the extensions on GitHub:

    http://bit.ly/VegetationStudioProExtensions

    VegetationStudioProExtensions

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

    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:

    1.png

    Example:

    2.gif

    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:

    3.png

    Example:

    4-2.gif

    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:

    5.png

    More to follow, but as I said please do feel free to add your own to this thread :)
     
  2. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,824
    When I checked out ProRoad I noticed it doesn't have Vegetation Studio Pro integration yet, so the roads were full of grass. However, it did provide marker points for the created road. I didn't want to wait for the integration and created this general purpose extension:

    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.png

    Inspector, container specified:

    vegetation-mask-line-filled.png

    Example:

    vegetation-mask-line-example.gif

    Edit: I added a "Closed Path" option in case anyone wants to connect the last position with the first position.
     
    Last edited: Feb 26, 2019
  3. Creative-Pudding

    Creative-Pudding

    Joined:
    Nov 7, 2014
    Posts:
    47
    A good tip for the markers here: There is a feature in ProRoad to export the active road's midline. This is a Prefab containing a set of GameObjects along the centre of the road placed in 4-meter steps. This GameObjects can be used as markers for your VegetationMask container. To export the data simply select ProRoad object -> Export -> Export midline. The midline will be saved under the root folder which can be set in Unity menu -> Tools/ProRoad/Preferences -> Output Folder.
     

    Attached Files: