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. Dismiss Notice

[WIP] Leaf System Pro

Discussion in 'Assets and Asset Store' started by JohnRossitter, Mar 8, 2016.

  1. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Leaf System Pro is a scriptable "Smarticle" system which generates, maintains and emulates the effect of leaves blowing in your scene. I started working on this system over a year ago and just let it sit for the last 9 months. Now I have revived it, and improved it and aimed my sights at Gaia with it.​

    The Features
    1) Custom physics simulation
    2) PBR Dual sided leaves
    3) Frustum view based Occlusion Culling
    4) Custom Object Pooling system
    5) Run hundreds of leaves/debris in your scene with little to no performance impact
    6) Integrated sounds
    7) Zone based
    8) Works with Zone Controller
    9) Designed for Gaia

    Here is quick demo video with Gaia


    Here is how you can set it up in Gaia:


    I will be launching a closed beta for those who would wish to participate...please contact me.
     

    Attached Files:

    Last edited: Mar 19, 2016
  2. SerdeeneilNakpilMerin

    SerdeeneilNakpilMerin

    Joined:
    Feb 17, 2016
    Posts:
    36
    Hope you release it soon. Or we can test it out to see if there are bugs in it. :D
     
    JohnRossitter likes this.
  3. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    I will start beta testing soon, please send me a PM and I will discuss it with you.
     
    BackwoodsGaming likes this.
  4. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    The beta is almost ready:
    Here is a new video...
     
  5. mensch-mueller

    mensch-mueller

    Joined:
    Nov 25, 2014
    Posts:
    156
    Hi John
    Is it possible that the zones recognize what kind of tree variety is near, to spread the fitting leafs for the trees, so if there is a birch, there are birch leaves, for a oak tree...

    Cheers
    Michael
     
    JohnRossitter likes this.
  6. RonnyDance

    RonnyDance

    Joined:
    Aug 17, 2015
    Posts:
    557
    This looks fantastic. I am pretty sure this asset will give terrains more realism. Good job!
    I did not wath the second video but do leaves also fly aways or move a little if the character is near? So not only the wind does make them fly aways, also the player movement?

    Does your asset also work with Scion and SSAA Posteffects?
     
    JohnRossitter likes this.
  7. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    I'm working on that today :)
     
    BackwoodsGaming likes this.
  8. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    For the sake of the video, I setup zone triggers that would activate the WindZone in the scene...That is why is seems like its's player driven.

    This video is show with Scion and SSAO Pro, and post processing is a non issue.

    Thanks,
    john
     
    BackwoodsGaming likes this.
  9. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Here are some screenshots of the UI:
    Screen Shot 2016-03-11 at 8.34.42 AM.png
    This script stack lives at the top of the chain and controls the overall scene level simulation.
    Wind Volume will control the sound of wind gusts when the velocity of the wind changes.
    The Master Mixer will allow you to fine tune adjust performance settings.
     
    BackwoodsGaming likes this.
  10. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Screen Shot 2016-03-11 at 8.35.11 AM.png
    This is a Leaf Zone controller, which specifies a region of the map that controls the lifespan of a group of leaves.
     
    BackwoodsGaming likes this.
  11. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Screen Shot 2016-03-11 at 8.35.22 AM.png
    This script allows you to attach to a Unity WindZone as a source of Wind Velocity and Direction
     
    BackwoodsGaming likes this.
  12. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Screen Shot 2016-03-11 at 8.35.41 AM.png
    In each Leaf Zone, an emitter is responsible for managing the pool and instantiating various leaves
     
    BackwoodsGaming likes this.
  13. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Screen Shot 2016-03-11 at 8.35.51 AM.png
    You can specify per zone what you want the Wind Settings to be applied at
     
    BackwoodsGaming likes this.
  14. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Screen Shot 2016-03-11 at 8.36.47 AM.png
    Here are the properties of each individual leaf instance
     
    BackwoodsGaming and Bagnol like this.
  15. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    This is finished, btw
     
  16. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    I have the beta of Leaf System Pro ready.
    If anyone would like to check it out, please send me a PM.
     
    BackwoodsGaming likes this.
  17. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,114
    Looking great John, love the Gaia integration that automatically adds it to all trees. Brill.
    Another great addition to your zone system.
     
  18. paulojsam

    paulojsam

    Joined:
    Jul 2, 2012
    Posts:
    569
    id love to test it in my project john!
     
    JohnRossitter likes this.
  19. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Just send me a PM :)
     
  20. iamsam

    iamsam

    Joined:
    Dec 22, 2013
    Posts:
    233
    Hey John,

    Would this work with other terrain creations systems like Map Magic and World Creator. I do have Zone controller pro so would to try the beta. Is there a video demonstrating its setup?
     
    JohnRossitter likes this.
  21. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Yes,
    It works completely on it's own.
    I wrote some Gaia specific setup scripts, but the tool itself works in an empty scene with just a plane :)

    I do have this quick video showing how to set it up got Gaia:


    The normal setup is almost identical, you will just go to Window->Leaf System Pro->Scene Integrator and that will launch a tool window that assists you in setting the Leaf Zones up.

    Send me a PM with your contact info and I will get you setup in the beta.

    Thanks,
    John
     
    BackwoodsGaming and iamsam like this.
  22. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    So, development is coming along nicely.

    Presently the only outstanding items are to finish the documentation/tutorials and add the rest of the leaf content.
    I am happy to announce that following the lead of what I did with Zone Controller, I will be releasing a FREE version as well as a PRO version.

    The FREE version will operate identical to the PRO version with the following exceptions:
    -Only 10 leaves allowed per Zone
    -Only 100 Leaves per Scene
    -No Source Code
    -Only 3 leaf models will be included
    -No Tree Matching tool to sync the Leaf Zones to Speed Trees in those Zones
    -Only 1 Active Leaf Zone allowed per scene at Runtime. (you can setup as many as you like, but only 1 can be active)
     
    BackwoodsGaming likes this.
  23. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Those of you participating in the beta, there is a new build I put up this morning in the Google Drive.
    New massive performance increase on scene startup and new tool in the scene integrator that will match clusters of trees into a single Leaf Zone.
     
    ScottSummers and BackwoodsGaming like this.