Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

[Released] Vegetation Studio Pro

Discussion in 'Assets and Asset Store' started by LennartJohansen, Jun 29, 2018.

  1. NikhilUnity

    NikhilUnity

    Joined:
    Dec 28, 2015
    Posts:
    122
    One last question, so grass will work on mesh terrain including its bending in Vegetation Studio Pro
     
  2. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    533
    I've learned that NatureManufacture created the roads of the awesome and free asset Windridge City with EasyRoads3D Pro. I thought I'd give that a try as well, it's on sale currently. By the way, in case anyone buys it, you probably want the HD Roads Add-On as well.

    Long story short: There are a few things to consider when you want to use EasyRoads with Vegetation Studio Pro. Here's a little quick start write up of mine, I hope it helps to get started in case you want to try it:

    Precondition:
    * requires version 3.1.2; don't install the demo after the main asset, demo still has 3.1.1. if you do, re-install main asset

    Activate Vegetation Studio Pro Masking:
    * Road Network -> General Settings -> Terrain Management -> Vegetation Studio -> select Active

    Add Roads:
    * GameObject -> 3D Object -> EasyRoads3D -> New Road Network
    * Add a crossing
    * Spawn roads from the crossing by clicking the green sphere and drag it out of the crossing

    Hint: use ctrl + movehandle Y to snap to terrain

    The VS Pro masks are on the roads themselves. There is a quirk though currently: The min value is > max value of the VS Pro mask. And the value of the VS settings in Easy Roads isn't considered at all. So if you want the grass as close to the road as possible, change it manually. I set it all to 1 for min/max in grass, plants, etc. setting. I already contact the dev @raoul about it, hope this gets sorted soon, so that one doesn't have to apply this workaround :)

    Also, don't click on a road while you are in play mode. It would show all mask handles in the editor and that slows down performance.

    Anyway, the asset is awesome, Super easy and quick road creation. Plus it allows you to re-edit the terrain, even after you modified it with the roads. Vegetation Studio Pro + Biomes + Easy Roads 3D looks like a powerful combination to me :D


    easy roads 01.jpg
    easy roads 02.jpg
    easy roads 03.jpg
    easy roads 04.jpg
    easy roads 05.jpg
     
  3. RonnyDance

    RonnyDance

    Joined:
    Aug 17, 2015
    Posts:
    496
    Looks awesome @Rowlan
    Good to know that there are some things to consider when working with VSPro + EasyRoads.
    I was planing to use EasyRoads for Pathways. Meaning some mud pathways cause I am working on a Fantasy 18th century game. Also creating some hill / cliff ways up to some hills is on a todo list for me. Gonna try it with some mud terrains from CTS / NatureManufactor in the future.
     
    Rowlan likes this.
  4. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Yes. The internal difference is only that the virtual MeshTerrain is used for sampling height and normal/steepness.

    Lennart
     
  5. growling_egg

    growling_egg

    Joined:
    Sep 2, 2012
    Posts:
    15
    Hello, hoping to find out if there's a way to programmatically adjust the snow level in the Vegetation Studios Pro Environments settings at runtime? My game has a time travel mechanism and I'd like to be able to dynamically generate vegetation and cover it in snow or remove the snow.
     
  6. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Hi.

    all evironment settings are stored in an instance of the EnvironmentSettings class.

    Code (csharp):
    1.  
    2. namespace AwesomeTechnologies.VegetationSystem
    3. {
    4.     [Serializable]
    5.     public class EnvironmentSettings
    6.     {
    7.         public float SnowAmount = 0;
    8.         public float SnowMinHeight = 0;
    9.         public float RainAmount = 0;
    10.         public Color SnowColor = new Color(0.75f,0.75f,0.75f,1);
    11.         public float SnowBlendFactor = 2.75f;
    12.         public float SnowBrightness = 1;
    13.     }
    14.  
    You can access this from the VegetationSystemPro component.

    To set a new snow amount you need to get a reference to the VegetatoionSystemPro component and call

    Code (csharp):
    1.  
    2. vegetationSystemPro.EnvironmentSettings.SnowAmount = 0.5f;
    3. vegetationSystemPro.RefreshMaterials();
    4.  
    When the materials are refreshed all ShaderControllers will get the UpdateMaterial event where the controler maps the environment settings to the material/shaders own settings. This last part you only need if you are making your own shader controller class for a shader that supports snow.

    Code (csharp):
    1.  
    2. public void UpdateMaterial(Material material, EnvironmentSettings environmentSettings)
    3. {
    4.     material.SetFloat("_Snow_Amount", environmentSettings.SnowAmount);
    5. }
    6.  
    look a the included NMTreeSnowShaderControler.cs file for an example. That is a shader controller for the NatureManufacture snow tree shader.

    Lennart
     
  7. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    533
  8. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    965
    Wow Vegetation Studio runs so much nicer now using the Pro version. So awesome.
    Its so smooth in editor mode with super thick vegetation and Runtime gave a massive boost in performance.

    One thing that is a huge issue though is when you change settings in Vegetation Studio.
    Like density of plants for example. The slider lags doesn't slide to the location until after the Vegetation Update. It should let you slide to the number and then when you release it updates the map.

    I use the same vegetation package on two scenes. I changed the grass height on one scene and it effected the other scene too? Shouldn't the controls be scene independent? I don't know why the package would matter anyways.
     
    Last edited: Dec 1, 2018
  9. RonnyDance

    RonnyDance

    Joined:
    Aug 17, 2015
    Posts:
    496
    Sounds good and makes sense in my opinion.
    Why? VS is based on Vegatation Packages. Different options like density means different package. If you have 10 scenes and all are loading the same package it's totally normal that all scenes get the change if you change an option in this package. So create different density packages for different scenes. That's the intended approach
     
  10. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Hi. The grass scale, height etc is stored in the package not the scene. This is done to allow you to re-use packages between scenes and projects. If you need a scene with some changed. duplicate the Vegetation Package and use the new in that scene.

    Updating a package and getting the results on all scenes it is used in is by design.

    Lennart
     
  11. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    965
    Ya i guess now that I think of it I guess it is best to have it store on the package.
     
  12. SickaGamer

    SickaGamer

    Joined:
    Jan 15, 2018
    Posts:
    274
    When is an ETA on the biome packages? A Month, two months, second quarter of 2019???
     
  13. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    On hold for now. We want to release more than one at the same time. Since they are designed to work together. I will post here when I have an update.

    Lennart
     
  14. TCROC

    TCROC

    Joined:
    Aug 15, 2015
    Posts:
    98
    Bug / Fix

    @LennartJohansen I believe I found a bug. When I lock the same texture in both the first and third biomes, a black line appears around the textures. If I don't lock it in the third biome, everything behaves just fine. Here are some pics showing what I mean. The texture is currently in the first (default) biome so I wouldn't expect it to be affected by the third biome, but it is:

    Edit: Upon further investigation, I found that this effect occurs in the third biome no matter what. It does effect the first texture in the first biome as well, but only if the same texture is locked in the third biome. The second biome is never affected and always behaves correctly.

    Edit / Fix: I found a quick fix for anyone else that encounters the issue. What I did was go to the biome scriptable object, change the number of textures to "no textures", and then change it back to 16 textures. It reset the textures and all I had to do was change the settings back to what they were in the Vegetation Studio Pro script (which can get tedious if this occurs a lot but hopefully it doesn't). I tried to recreate this bug, but can't seem to. I go back in my git history to the broken stage and prepare a package for you if you want.

    Good:
    Good Locked Texture.PNG


    Bad:
    Bad Locked Texture.PNG

    (I was struggling to get the pics to upload, so if you can't see them, just let me know.)
     
    Last edited: Dec 3, 2018
  15. Boz_1

    Boz_1

    Joined:
    Dec 20, 2014
    Posts:
    26

    Hey @Darthlatte, yes it's very tedious the shear number of colours stop area selection tools from working efficiently.
    If you have photoshop try using the cutout filter to pre-process the image, set Number of Levels to 8, Edge Simplicity to 6 and Edge Fidelity to 3.

    Satellite image before pre-processing

    Before.JPG


    Satellite image with Cutout filter applied.

    after.JPG

    Makes vegetation selection a breeze.
     
  16. Darthlatte

    Darthlatte

    Joined:
    Jan 28, 2017
    Posts:
    19
    Thanks! I'll give it a try
     
  17. anpd03

    anpd03

    Joined:
    Aug 7, 2013
    Posts:
    35
    Hi, I need to temporary remove vegetation while placing buildings and then remove permanently once I have decided where to place it. See this video of Anno for what I mean. I use the persistent storage to store the vegetation, are there any examples of how to use the api for this? I don't use gameobjects so don't want to use masks only handle it through code.

     
  18. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    965
    Why don't use game objects? I just find that odd.
    I know there are some people that are a bit confused about game objects thats why I ask.
    Like a lot of people think you need to use instantiate to use game objects.
    I only use Instantiate when im dealing with prefabs. Prefabs are very handy. Idk why you would avoid those.
    For dynamic coding when not using coding you can just do
    Code (csharp):
    1.  new GameObject();
    I read a lot of forum posts where a ton of people don't realize that.
    when you do "new GameObject" it automatically creates a game object in the Hierarchy
    Then you can do what ever you want with it. Add components etc..
    or do it all in one line.
    Code (csharp):
    1. GameObject(string name, params Type[] components);
    This is from someone that does an extreme amount of dynamic coding for the infrastructure of my games.
     
  19. anpd03

    anpd03

    Joined:
    Aug 7, 2013
    Posts:
    35
    Use the new ECS, also creating dynamic roads which is just points and a generated mesh.
     
  20. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    493
    I'm new to Vegetation Studio/pro, just purchased it. There's one thing that caught my eye. When i open the included demo scene and move the camera around, a circle of thicker grass is moving around with it. It took me a while to find that this seems to be controlled by the LOD Control slider.
    But i don't like the visual popping. Turning it up to 5 pushes the distance out so that it's way better, but the description says that it's like a global multiplier (which sounds like something i wouldn't want to max out).
    0 is also completely fine, and it feels right to use this value, but i'm a bit confused about the meaning of this number. Is 0 (which somehow cannot be set, only 0.1) the base density, where the rules as set are what's visible and a higher lod just 'adds' extra vegetation? Or does 0 (0.1) represent a reduced version and the popping lod circle actually increases it up to the base density?
    If 0 is the base, could it be possible to set it to 0 to not have any extra popping items?
    Or am i just misunderstanding this setting and there's a slider somewhere else that controls this distance more fine grained?
     
    Last edited: Dec 4, 2018
  21. mons00n

    mons00n

    Joined:
    Sep 18, 2013
    Posts:
    212
    Look for draw distance for the different vegetation types I believe on the render tab.
     
  22. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    493
    In the Vegetation tab there are distance sliders, but they only control the maximum distance, just like the render distance factor slider in the edit biome tab. Some types seem to have an additional LOD settings subpanel. I can set it to 0.15 (again not 0?) where it behaves as if i had set the LOD control slider to 0.1. clicking 'Disable LODs', which incidentally sounds exactly like what i want unfortunately does nothing, atleast visually and the manual doesn't mention it to explain what it's supposed to do.
    Setting all LOD sliders to near 0 makes it a lot more stable (almost no items popping in)
    So it would be good to know whether the near 0 value represents the base density or a reduced value.
     
    Last edited: Dec 4, 2018
  23. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Hi. with the persistent storage you can manually add and remove instances but there is another option.
    The VegetationMask Components are actually MonoBehaviour wrappers for an internal API that uses c# objects with NativeArrays that holds the mask areas. You can use this without any GameObjects but you need to have some management code and add/remove masks yourself.

    Look in the VegetationMaskArea component to see how they are created.

    if you joing the Discord server and message me there I can explain a bit more. Easier with a text chat.

    Lennart
     
  24. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Hi. Do you mind joining the Discord server and message me there. I can explain. Easier with a text chat. LODs and density is not connected. One decides how many instances are created, the other at what distance you switch between the different LOD meshe in an item. The initial value is based on the LODGroup component and what you adjust is a distyance factor of this. Like the LODBias setting in Quality settings.

    Link to the discord in my signature.

    Lennart
     
  25. sparkwd

    sparkwd

    Joined:
    Aug 12, 2018
    Posts:
    5
    Hi @LennartJohansen,

    Your asset is awesome. I purchased it last week and it seems really powerful so far.

    I'm running into a snag with the MapMagic infinite terrain integration. I see in the docs (https://www.awesometech.no/index.php/map-magic-infinite-terrain/ & https://www.awesometech.no/index.php/set-up-with-map-magic-infinite-terrain/) that Vegetation Studio supports MapMagic for infinite terrains but I'm not sure if Vegetation Studio Pro has the same capability yet (which would explain my problem).

    Everything works great when setting the Total Area in the Vegetation System Pro > Terrains tab, but then the terrain is obviously limited to those constraints when MapMagic generates terrains exceeding those bounds. Am I overlooking something... possibly a different method for integrating when using VS Pro? Or is this feature not yet available with VS Pro? Should I just crank up the terrain Total Area to cover any possible player travel or is that resource expensive?

    Thanks for your help,
     
  26. mhhj

    mhhj

    Joined:
    Jul 30, 2014
    Posts:
    13
    Hello! I’m curious to know if there’s an ETA or timeframe for being able to use baked vegetation packaged from the older vegetation studio for Pro?

    Just curious since I’d really love to do some more work with it, but can’t since my old vegetation packages aren’t available to work with via pro.
     
  27. iovergard

    iovergard

    Joined:
    Nov 21, 2014
    Posts:
    6
    Just wondering, is there a trick to getting this to work in a standalone build? (ie, outside the editor). In play mode everything works fine, but as soon as I build a standalone exe I just get nothing. Tried with and without persistent vegetation storage and it didn't seem to have any effect
     
  28. AndyNeoman

    AndyNeoman

    Joined:
    Sep 28, 2014
    Posts:
    778
    You may well need runtimes for c++. Check the docs you will see what needs to be installed.
     
  29. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,135
    Yeah I found the demo scene for this really pretty bad tbh, and what you just mentioned was one of the issues, even the lighting/shadows is off, like this a Pro asset.. it really doesn't showcase the asset at all with settings, frankly its awful.

    Anyway I haven't got around to playing with Vegetation studio at all let alone the new Pro one to really know what the issue was myself, I just got it before the upgrade price got jacked up. Kinda held up waiting for a Sectr update before I start working with terrain.
     
  30. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    That is not needed for Vegetation Studio Pro. For standard Vegetation Studio I managed to make a static linked dll that does not require any run-times installed. after some more testing I will replace the old.
     
  31. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    There is a couple of requirements in the setup guide. Windows 10 SDK ++, xcode for OSX. Also unity has a AOT compilation issue with burst and IL2CPP. If you could join the discord server and message me there we can look at it.

    A log file would be nice.

    Link to the discord in my signature.

    Lennart
     
  32. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Hi. Plan is to have that in the next update. I am working on that, baking of colliders for navmesh generation and a list of smaller changes.

    Lennart
     
    mons00n likes this.
  33. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Vegetation Studio Pro needs a defined world area. This is done to optimize terrain loading and unloading. The internal structure is already in place. To handle infinite worlds you probably need a setup with multiple vegetation systems and your own logic to move them around. Adding a larger area is not expensive for run-time speed but it does allocate some extra memory for the cell structure.

    Lennart
     
    sparkwd likes this.
  34. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Development update

    Hi. I just finished the Collider baking feature of the Collider system. It can be used to add colliders to the scene temporary for Navmesh baking or any other use you would need.

    There is an option to create the colliders as meshes.

    Image 899.png

    If you do not want a configured collider to be part of the bake you can disable this on each vegetation item.

    Image 900.png

    Example on how it looks in the scene as meshes and colliders.

    This will be in the next update.

    Lennart

    Image 897.png Image 898.png
     
  35. ckriger

    ckriger

    Joined:
    Aug 27, 2018
    Posts:
    1
    Hi @LennartJohansen,

    I've run into a small issue with the "Texture mask rules" section of "Edit Biomes" in VS Pro. I first created a texture mask group from an RGBA texture, then added a new rule to one of my trees in the Biome by choosing that mask group.

    For the first couple of trees I did this with, I had a dropdown option "Select channel" from which I chose the "R Channel", and set appropriate values, and it worked great to mask out veg based on a base map texture colors.

    However, now (several weeks, maybe months later), I am trying to add a few more trees and use the same technique, but that "Select channel" dropdown no longer appears to let me choose the "R Channel". The checkbox for Invert is also now missing (I don't actually need that one, but figured I'd mention it because it's presumably related).

    The weird part is those controls DO still appear for the two trees I had originally set up that way.

    FWIW, I originally created this scene and used this technique with regular VS, then went through the Pro beta, and now Pro final, so I'm wondering if maybe Pro just has a small bug and doesn't create that dropdown and checkbox (but will show them if it finds a value that was set in a previous version)?

    Or maybe I'm just forgetting a step or missing some other obscure connection somewhere. Appreciate you checking into this feature, and please let me know what you find on your end...

    Thanks,
    Carey
     
  36. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Thanks. I will have a look. It might be some serialization bug somewhere. The properties are added dynamic based on the Mask type (currently only one) and serialized in the vegetation package. I will verify and see if I find any issue.

    Lennart
     
  37. StevanJay

    StevanJay

    Joined:
    Feb 5, 2014
    Posts:
    42
    Threw together a quick Autumnal forest using VSPro, with Gaia and Enviro, and additional assets from SpeedTree and NatureManufacture... Looking nice and running smooth, here`s a screenshot taken in the heart of the wood... :)

    47573232_10156914842179224_3853074049538195456_o.jpg
     
    IsDon, Kilra, ftejada and 3 others like this.
  38. AngelBeatsZzz

    AngelBeatsZzz

    Joined:
    Nov 24, 2017
    Posts:
    107
    Hi, I just bought Pro, I have a problem.
    In VegetationStudio I used the following code to harvest the tree:

    Code (CSharp):
    1. OnVegetationCreateCollider(Collider collider)
    2. {
    3. RuntimeObjectInfo info = collider.GetComponent<RuntimeObjectInfo>();
    4.  
    5. If (info!=null)
    6.  {
    7.      If (info.VegetationItemInfo.Name.Contains("Tree"))
    8.       {
    9.           collider.gameObject.tag = "Tree";
    10.            collider.gameObject.AddComponent<TreeHealth>();
    11.       }
    12. }
    13.  
    14. //TreeHealth.cs
    15.  
    16. Public float health=2f;
    17.  
    18. If (health<=0)
    19. {
    20.     //Mask Tree
    21. }
    My weapon will attack the tree and lower the health of the tree. Everything works fine in VegetationStudio.

    In Pro I changed OnVegetationCreateCollider(Collider collider) to OnVegetationCreateCollider(GameObject obj), and the other code did not change. There is no collision body on my tree prefab, only the collision body dynamically added by Pro, Basically all settings are the same as VegetationStudio.

    In Pro, when I attack the tree, my computer becomes very slow. When I cut down a tree, the health of the other trees becomes less than 0. It seems that all trees share a TreeHealth.cs. But every tree in VegetationStudio has its own TreeHealth.cs, so there is no such problem in VegetationStudio.
     
    Last edited: Dec 6, 2018
  39. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Hi. There is a change. All the tree colliders are re-used from a pool. You need to remove the script from the object in the OnBeforeDestroyCollider event. I will add this to the documentation.

    If you have any more problems with that message me on the discord server. Easier to debug with a text chat.
    Discord link in my signature.

    Lennart
     
  40. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Development update.

    Hi. I just finished the SceneVegetationBaker component. It can be used if you for some reason want your spawned vegetation in the scene as GameBbjects. Lightmap baking or some other reasons.

    Add it to the same GameObject as the VegetationSystemPro component, select your item and press the button.

    Lennart

    Image 903.png
     
  41. whidzee

    whidzee

    Joined:
    Nov 20, 2012
    Posts:
    3
    I'm interested in getting VegetationSystemPro for a project I am about to start (just evaluating my options at the moment) I've seen the meadow demo which looks absolutely stunning. Do you have a bunch of preset biomes that can just be painted in a scene? or do all the individual biomes need to be created by us and then populated on our levels?
     
  42. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Hi. Vegetation Studio Pro does include any vegetation except for some grass and the free speedtrees in a demo scene you can download.

    The meadow package from NatureManufacture includes the pre made biomes packages used in the demo scene/video and these you can modify and use in your project.

    I expect more vegetation assets will start to include pre made biome packages but that is up to the individual asset developer to add.

    Lennart
     
  43. SickaGamer

    SickaGamer

    Joined:
    Jan 15, 2018
    Posts:
    274
    Do you know if @NatureManufacture plans to create biomes for each of their Dynamic Mountain Trees, Advance Foil package, RAM ect..?
     
    Lars-Steenhoff likes this.
  44. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Ask on the NatureManufacture forum or discord.

    Lennart
     
  45. NikhilUnity

    NikhilUnity

    Joined:
    Dec 28, 2015
    Posts:
    122
    I bought both, Vegetation and Vegetation Studio Pro
     
  46. DirtyHippy

    DirtyHippy

    Joined:
    Jul 17, 2012
    Posts:
    195
    Is there a possibility VegetationItemInfo could be added to

    BaseMaskArea::Contains(Vector3 point, VegetationType vegetationType, bool useAdditionalDistance, bool useExcludeFilter)

    so that it could be optionally used by masks? I assume using just a broad culling category is fast, but sometimes you might want to mask out a specific instance and replace it with a different one - which would not be possible right now if they are the same vegetation type (I assume - I haven't bothered to try since it doesn't seem like it would work).
     
  47. SickaGamer

    SickaGamer

    Joined:
    Jan 15, 2018
    Posts:
    274
    Basic question, if i wanted to do multiple biomes, they all would belong to thw same vegetation package correct as there is only one?
     
  48. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    No. On Vegetation Studio Pro you can have multiple vegetation packages/biomes. Just make multiple packages. set one as the default biome and select a biome type on the others. The same type you select on biome masks to get the biome on that area.

    Lennatt
     
  49. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    1,898
    Hi. There is a VegetationItemMask component that does that.

    Lennart
     
  50. DirtyHippy

    DirtyHippy

    Joined:
    Jul 17, 2012
    Posts:
    195
    I implemented my own pooled masking without using gameobjects based off CircleMaskArea because Gameobjects and VegetationItemMasks are way too heavy for most most purposes.

    Your underlying masking implementation uses BaseMaskArea and this method:

    BaseMaskArea::Contains(Vector3 point, VegetationType vegetationType, bool useAdditionalDistance, bool useExcludeFilter)

    This method only passes in a vegetation type (which is essentially a category) and not the vegetation item template. So there is no way of excluding only a certain template - only the category.

    There is a method in BaseMaskArea that does contain the vegetation template (via the index):

    public virtual bool ContainsMask(Vector3 point, VegetationType vegetationType, VegetationTypeIndex vegetationTypeIndex, ref float size, ref float density)

    But I believe from skimming the code this is used for something different - perhaps determining where something _is_ spawned rather than not. So I'm not sure this is useful for what I want.