Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Released] Vegetation Studio Pro

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

  1. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Do you mind messaging me on the Discord server. Easier to explain with a text chat.
    Link in my signature.

    Lennart
     
  2. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Hi. I am now working on updates for both Vegetation Studio and Pro to make a common export format. I also have some Utility components and importers to port to Vegetation Stuido Pro. After those updates I plan to expand the documentatipn with some guides that explan example use of spawning rules and biome mask areas a bit better.

    I have no fixed ETA as new smaller issues that should get into the updates are likely to surface.

    Lennart
     
    manarito likes this.
  3. holdingjason

    holdingjason

    Joined:
    Nov 14, 2012
    Posts:
    135
    Let us know if you have something to test for the export format between standard and pro. We have a project that we are upgrading from standard to pro on shortly and would be happy to give it a shot if you need someone to look at it in beta. If its going to be awhile no big thing we will just go ahead and port everything manually.

    Thanks
     
  4. brettj

    brettj

    Joined:
    Feb 9, 2015
    Posts:
    43
    Is there a good way to globally change switch between Instanced and Instanced Indirect? On my computer VS performs better if everything is set to Instanced, but I realize on most modern hardware Instanced Indirect should be faster. So I'd like to be able to add an option in my game settings to switch it on/off.
     
  5. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    I am having good progress on it. It wil be a separate module included in both Vegetation Studio and Vegetation Studio pro. You create a ExportStorage scriptable object and drag/drop VegetationSystem components to that on the import tab. This will store the common rules of VS and VS Pro and all the instances stored in the persistent storage.

    This will then be possible to import in VS Pro.

    I will add a per platform setting on this where you can disable indirect and fallback to instanced.

    Lennart
     
    brettj and llJIMBOBll like this.
  6. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Development update

    Hi. I finished an update on the texture mask system today. There is now a repeat setting in additonal to the worldspace area of each texture. This will allow you to repeat the texture within the area. For custom noise or repeating patterns.

    Here you can see a 4x4 repeat on a texture used to include trees on 4 terrains.

    Lennart

    Image 918.png Image 919.png
     
    llJIMBOBll likes this.
  7. whidzee

    whidzee

    Joined:
    Nov 20, 2012
    Posts:
    166
    Would this texture repeat feature work with placing biomes on a splatmap generated from worldmachine? so you could assign a biome to a particular colour, not just a single tree.
     
  8. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    No. But I am looking at that. I did a post earlier on this thread about the format. On my phone, hard to search for the post.

    Lennart
     
  9. Baraff

    Baraff

    Joined:
    Aug 16, 2014
    Posts:
    255
    Any idea what would cause this? I had just changed target to Android.

    Assets\AwesomeTechnologies\VegetationStudioPro\Runtime\VegetationSystemPro\Biomes\Masks\PolygonBiomeMask.cs(2,22): error CS0234: The type or namespace name 'Remoting' does not exist in the namespace 'System.Runtime' (are you missing an assembly reference?)

    Assets\AwesomeTechnologies\VegetationStudioPro\Runtime\VegetationSystemPro\VegetationStudioCamera.cs(3,22): error CS0234: The type or namespace name 'Remoting' does not exist in the namespace 'System.Runtime' (are you missing an assembly reference?)
     
  10. kepesh

    kepesh

    Joined:
    Dec 29, 2017
    Posts:
    92
    Any ETA when we will be able to export vegetation packages from VS to VS Pro?
     
  11. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    It will be in the next update. I almost have it running now. It will not be a complete transfer but most of the rules will transfer. Some things are different in Pro.

    Lennart
     
  12. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    What .Net API version have you set? On the player settings.

    Lennart
     
  13. holdingjason

    holdingjason

    Joined:
    Nov 14, 2012
    Posts:
    135
    Is there away to have Veg Studio auto place everything using masking and what not and then be able to save that out to persistent storage for tweaking manually. Would be a great feature to get us like 80% and then just tweak.
     
  14. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Yes. There is an option on the persistent storage to bake all.

    Lennart
     
  15. kepesh

    kepesh

    Joined:
    Dec 29, 2017
    Posts:
    92
    Is there a way to make vegetation studio auto select the camera with the main camera tag? I use a multi-scene setup where the main camera is in a different scene.
     
  16. llJIMBOBll

    llJIMBOBll

    Joined:
    Aug 23, 2014
    Posts:
    578
    I'm using same setup and it auto finds the camera no problem, should be tagged with MainCamera
     
  17. kepesh

    kepesh

    Joined:
    Dec 29, 2017
    Posts:
    92
    Huh weird, as soon as I hit play it doesn't render to the main camera anymore. I have to drag it to the camera slot.
     
  18. mkgame

    mkgame

    Joined:
    Feb 24, 2014
    Posts:
    592
    The non pro version is well optimized, what is the real performance improvement, then you have your own culling system behind, especially for a top down game? Net 4.x would break the script inspector asset, is that really necessary? Are there finally any grass shaking animations available?
     
  19. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    4,200
    Some more fun with VS Pro & Easy Roads :)

    er vspro 2.jpg
    er vspro 1.jpg
    er vspro 3.jpg
     
    Print3d, osss, IsDon and 3 others like this.
  20. brettj

    brettj

    Joined:
    Feb 9, 2015
    Posts:
    43
    Is it possible to get LOD crossfading on the grass?

    Also, I noticed the shrink culling has been commented out in the grass shader. Will it be returning?
     
    Lars-Steenhoff likes this.
  21. Baraff

    Baraff

    Joined:
    Aug 16, 2014
    Posts:
    255
    Yep that was it. I then started running in to other messages which I did not save unfortunately but I vaguely recall something that made em think it was a shader model issue. I have since checked and I did have OpenGl 3 selected and GL3.1 and 3.1+AEP selected. Is that all I needed? I ended up removing Veg Studio Pro and just pulled in the standard Veg Studio which seems to be working without problems for now.
     
  22. dan_wipf

    dan_wipf

    Joined:
    Jan 30, 2017
    Posts:
    314
    hi, i’ve searched on the world wide web, but couldnt find it realy, what is the diffrence between vs and vs pro? is vs sort of light version? or is vs based on the old job system? i’ve got right now the normal vegetaion studio, and can’t decide to upgrade ir stay. might some enlightens me..
     
  23. gecko

    gecko

    Joined:
    Aug 10, 2006
    Posts:
    2,240
    The first post in this thread is a good place to start: https://forum.unity.com/threads/released-vegetation-studio-pro.538451/
     
  24. dan_wipf

    dan_wipf

    Joined:
    Jan 30, 2017
    Posts:
    314
  25. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    4,200
    I make this short: If you have Standard and like Standard, you want Pro. Definitely worth it. Get it while it's currently on sale. For me the most impressive main features are:

    * Performance: huge vegetation areas thanks to Burst
    * Biomes: create masks, duplicate them, drag them around, resize them, drag them over each other and blend them, terrain texturing, etc.

    Maybe skip through my vid here how I use it in combination with WC2. Might give you a little help:



    Of course there are a lot more features, but for me those 2 are what make me happy and they alone are worth the upgrade :D
     
    sparkwd, ftejada, Print3d and 2 others like this.
  26. holdingjason

    holdingjason

    Joined:
    Nov 14, 2012
    Posts:
    135
    Update : Wait a second on this. Looks like one of our LOD objects has an empty Lambert shader on it that appears to be the culprit. Not sure why it would show this as a magic floating portal box but I think if we fix that then this will go away.

    Getting a strange artifact showing up. This only happened after we spawned everything. We baked all vegetation items from ruleset. Then modified some things painted etc via persistent storage and now getting this weird artifact. We verified this is somehow from veg studio pro since we can get rid of it by disabling veg system while running. Pausing the game also causes it to go away since veg studio is paused.

    It disappears at certain angles so not sure what this is.

    upload_2018-12-17_17-25-25.png

    upload_2018-12-17_17-26-5.png
     
    Last edited: Dec 18, 2018
  27. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    4,200
    I thought I'd try something different in the Meadow Environment with Vegetation Studio Pro :)

    ent 04.jpg
    ent 02.jpg
    ent 03.jpg
     
    ftejada, daisySa, Print3d and 2 others like this.
  28. holdingjason

    holdingjason

    Joined:
    Nov 14, 2012
    Posts:
    135
    Seeing two issues with the vegetation studio mask area.

    1. The setup is the mask is on a hole game object that I grab from a pool, place into the world and activate. The grass disappears like I would expect. When I fill in the hole I disable the object including the mask script. At this point I get a flicker of all the visible vegetation. It disappears and the reappears.

    2. Doing this same action with grass that has been baked to persistent storage does not work at all. The mask is ignored and the grass does not disappear.

    Any thoughts on either one? BTW if you need a video I can provide one.

    Trying various things right now like just disabling the mask script and that does not work.

    Tried the following and the flicker happens at the update point AND again at the setactive(false).

    if (_mask != null)
    {
    _mask.RemoveGrass = false;
    _mask.UpdateVegetationMask();
    }

    yield return new WaitForSeconds(1);

    gameObject.SetActive(false);

    Interestingly I can place the hole. Pause the game in the editor. Disable the Mask Area script manually, rerun and the grass is now gone and when I deactivate the object the flicker does not happen.

    UPDATE: Actually just calling _mask.UpdateVegetationMask(); at any point will cause the flicker.
     
    Last edited: Dec 19, 2018
  29. Retrokat

    Retrokat

    Joined:
    Apr 23, 2015
    Posts:
    12
    I'm running into a couple of issues due to the fact that I'm doing small, closeup scenes (for interactive installation) rather than a large open-world.

    The first is the grass-tufting angle doesn't seem to be adjustable, and when you are close or when the grass is not very dense, it turns side-on to the camera and looks like an X rather than the image facing toward the camera. I tried every rotation option and even tried on completely flat terrain, but had the same issue. It didn't seem to be as much as a problem before I upgraded to Pro, but maybe I'm just imagining that :D

    Secondly, ambient occlusion on post-processing causes the shadows of items behind the grass to show through - see edges of rocks in the image showing through my sea-grass. VJzooVegStudioProGrassProblemsR.jpg
    I know it might not be worth the effort adding parameters for these issues as very few customers would probably be doing static camera, closeup scenes but thought it worth an ask!
     
  30. Print3d

    Print3d

    Joined:
    Oct 22, 2017
    Posts:
    35
  31. Print3d

    Print3d

    Joined:
    Oct 22, 2017
    Posts:
    35
    I read somewhere some VS features are not available in VS PRO (at least for now): is that true? i may look for that post if you are interested...
     
  32. Print3d

    Print3d

    Joined:
    Oct 22, 2017
    Posts:
    35
  33. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Hi.

    1. I will try to recreate the flickering. I think it is related to when the update is done. It should be done early in update. Before the vegetation studio does its culling. Or late in LateUpdate after rendering is done (it will then be affected for the next frame) If done between this it will clear the affected cells before rendering and only respawn the next frame.

    If you could join the discord server and message me we could debug together.

    2. Baked vegetation are not affected by masks, but I have on my todo list to add an option for this. It could be usefull in some cases.

    Lennart
     
  34. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    There is some things done differently in pro and not all settings and rules works the same way. There is also a few of the utility components and minor features not ported yet. Collider baking for navmesh was one of these, that is finished and will be in the next update. The SceneVegetationBaker and BackgroundMask Creator is also done.

    Still on the list is the terrain tree and scene object importer and the microsplat grass mask and tree shadow mask creator.

    Lennart
     
    Print3d likes this.
  35. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Hi. The grass patches are created of multiple grass planes, not billboards that auto orient against the camera.
    This is done by design to get grass that does not behave strange in VR

    You can make custom patches with the GrassPatchGenerator where you have more control.

    The "transparent" AO is an effect of instanced rendering on some AO effects. I think there is a few AO components that work good with this but not all.

    Lennart
     
    Retrokat likes this.
  36. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    if it follows the camera it is most likely something a vegetation item that is set to indirect with a shader that does not support it. If the box is just there it could be run-time prefab spawner object with a missing prefab?

    Lennart
     
  37. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Hi. a general crossfade is something I am working on but not happy with the results yet. In the prototype stage.

    The shrink culling was earlier implemented in shaders. That was a bit limited since each shader has to support it.
    With the jobs/burst and compute shader prepass I can scale objects with no shader support. Idea is to try to move this to the last job/compute shader and support all shaders. Just update the Matrix4x4 as needed. No ETA but on the nice to have feature list.

    Lennart
     
  38. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    The performance increase on Pro is mostly on the CPU side, faster spawning and renderlist creation. Culling is also re-done with a job based culling system.

    .Net 4.x is a requirement. This is needed to use jobs/burst with Unity. From 2018.3+ this is also default. Most assets will have to support it fast.

    Lennart
     
  39. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    There is a cameraLoader component you can add to a camera. This will auto add and remove the camera as it is enabled/disabled

    Image 926.png

    Lennart
     
  40. holdingjason

    holdingjason

    Joined:
    Nov 14, 2012
    Posts:
    135
    #1. Ok yep that does it. So I was using a coroutine to turn back on the grass and despawn the pooled object containing the mask. This obviously was happening at who knows what point in the update cycle but not early or late for sure.

    #2. Is there some other way to clear out baked veg? If not until you get to your todo its not a big deal since we really did not want to bake the grass anyway, just kind of got pulled along for the ride with trees etc. However would be nice to have the option. Does baking also effect the ability to remove things like trees (ie think cutting them down) without some mask option. I thought that was done differently but need to go back and re-read the docs on that.

    Back to #1. More details.
    So I changed that code to set a bool value that I would then check for in the update which in turn would turn back on the grass and despawn the object. This worked. Here is my hack. My guess is that you can repro this fairly easily by triggering the update to the mask via a coroutine as I did. If not I will jump on discord with you as suggested if your looking for a "better" fix. This change does appear to work for us (unless its a timing issue and could come back to bite us at random times so please let us know, obviously want a fix that always works). Thanks.

    IEnumerator FillHole(Character character)
    {
    character.TriggerAnimation("Dig_FillHole");

    yield return new WaitForSeconds(1.2f);

    _killGrass = true;

    yield return true;
    }

    private void Update()
    {
    if (_killGrass)
    {
    if (_mask != null)
    {
    _mask.RemoveGrass = false;
    _mask.UpdateVegetationMask();

    _killGrass = false;

    OnFinish();
    }
    }

    }
     
  41. Print3d

    Print3d

    Joined:
    Oct 22, 2017
    Posts:
    35
    So you mean that i should actually buy VS PRO and all the features will be on par eventually? What if i'd like to use it on older Unity versions? Maybe the older version could be included in the new one for a small price? Just asking... :)
     
  42. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    4,200
    Thank you. I might in the future. I'm still exploring assets and which way to go.
     
  43. mkgame

    mkgame

    Joined:
    Feb 24, 2014
    Posts:
    592
    Does Vegetation Studio Pro work on 2018.3? I get a lot of errors, eg. NativeList<> could not be found? 2018.3 is an awesome update, everybody should move as fast as possible to that version, because of the nested Prefab feature and because of the terrain changes.
     
  44. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Hi. It should work good, but you do need to make sure you have the packages installed as in the setup guide. NativeList is in the collections package.

    Lennart
     
  45. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Hi. All features not replaced by a different workflow will show up in Vegetation Studio Pro. There is an upgrade path from Vegetation Studio to Vegetation Studio Pro if you want access to Vegetation Studio and then upgrade.

    Lennart
     
  46. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Not on my dev computer today but I will look at your code and questions as soon as I have time.

    Lennart
     
  47. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    4,200
    Animated looks better :D

     
    Print3d, ftejada and hopeful like this.
  48. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    Something must be wrong with the Asset store.
    Says Vegetation studio pro was updated on December 17 to version 1.01
    The asset store shows i already have this version.

    pretty sure i never downloaded the update and imported it.
    is there a file in the Awesome Technoogies folder that shows my current version?
     
  49. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    4,200
    Probably only some meta information got updated. I noticed that with other assets as well. Really confusing.
     
  50. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    Thanks Rowlan. not sure how im gonna fix it lol.

    Anyways so I'm back to working on getting grass trail to appear. I got it working just fine.
    It wasn't the effect I was wanting though. It removes the grass completely.
    I'm wanting the grass to bend down instead of being removed.

    I notice on the demo you have the boat set to have the grass bend down using the touch react collider component.
    so i guess thats what im wanting but for the bending down to last much longer.

    so idk is that possible with vegetation studio?
     
    hopeful likes this.