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. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

[RELEASED] Advanced Dynamic Shaders - GPU wind shaders

Discussion in 'Assets and Asset Store' started by BOXOPHOBIC, May 16, 2018.

  1. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    IMPORTANT: Due to numerous internal changes made for further development, Advanced Dynamic Shaders 2.0 is not compatible with previous versions. By upgrading you will need to delete the old Advanced Dynamic Shaders folder, import version 2.0 and reassign the shaders. Please backup your project before upgrading. Sorry for the inconvenience!

    Advanced GPU wind shaders built with AMPLIFY SHADER EDITOR for consoles and mobile with global wind, noise, grass tinting and grass size support. Version 2.0 comes with more features, improved wind and new shader functions for one click integration with any shader created with Amplify Shader Editor. Set your world in motion!

    Works with ANY MESH, no pre-preparation needed. Compatible with POLYBRUSH for wind mask painting (Vertex Color Red) in Unity 2017.1 or higher. Please check the features and limitations below and read the documentation for more info. Also make sure you follow the HOW TO steps for a smooth experience! If you have any questions or issues please do not hesitate to contact me.


    FEATURES 2.0

    VEGETATION STUDIO Instancing Indirect support!
    AMPLIFY SHADER EDITOR (v1.5.5) support!
    AMPLIFY SHADER FUNCTIONS for wind, noise, etc. included
    • Highly customizable Generic, Cloth and Grass shaders included
    • Highly optimized GPU vertex animation
    • Console, Mobile and VR optimized shaders
    • Standard PBR and Mobile Specular lighting models
    • All Unity lighting setting supported (Lightmaps, Realtime GI, Fog, etc)
    • Instacing and Batching support to minimize drawcalls
    • Perspective and Orthographic, 3D and 2D camera support
    • Standard and Mobile demo scenes included​

    • Global Wind support
    • Global Wind Noise (Turbulence) support
    • Global Grass Tinting support
    • Global Grass Size support
    • Global Debug Modes support

    • Opaque, Cutout, Fade and Transparent blend modes support
    • Front, Back and Double Sided cull modes support
    • Accurate lighting on model backface​

    LIMITATIONS

    • Only SM3+ hardware is supported
    • Only Metallic Smoothness shaders included
    • Forward Rendering + SSAO will cause visual artifacts on dynamic objects (Unity limitation)
    • The dynamic objects are distorted when using extreme wind settings
    • Models using Polybrush can not be set to Static (Unity limitation)
    • SRP not yet supported​
     
    Last edited: Aug 24, 2018
  2. Neviah

    Neviah

    Joined:
    Dec 1, 2016
    Posts:
    190
    I can't get the link to the asset store to work.
    Do you have any more example videos? It's beautiful to look at.
     
  3. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Hi,
    I'm glad that you like it! No other videos for now, I will probably do a features+tutorial video in the near future.
    Fixed the link, btw :D
     
    Neviah likes this.
  4. NikhilUnity

    NikhilUnity

    Joined:
    Dec 28, 2015
    Posts:
    123
    Only SM3 hardware is supported? Did you mean SM3+ hardware? Because this is vertex shader, can you bend grass down, and control the direction of bend using this asset?
     
  5. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Hi. I'm trying to avoid building SM2 shaders, it is quite limited and if I want to add some new features it will become harder and harder to support it. The majority of today's phones support SM3 shaders.

    Bending and avoidance is not supported but this is definitely something I would like to add in the future.
     
  6. NikhilUnity

    NikhilUnity

    Joined:
    Dec 28, 2015
    Posts:
    123
    Ok, so how does this differ from other assets from the store. Avoidance in a vertex? The thing is I am new to 3D shaders. So can the grass bend down. Because if I do it through a script it will be CPU right
     
  7. NikhilUnity

    NikhilUnity

    Joined:
    Dec 28, 2015
    Posts:
    123
    And this will support Shader Model 5 cards, etc That is what I meant. The reason is because you said it is limited to SM3 only. It's a stupid question to ask from me, but I want to be sure.
     
  8. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    I understand :), It supports SM3 cards and above.
     
  9. Quatum1000

    Quatum1000

    Joined:
    Oct 5, 2014
    Posts:
    629
    Hi

    1) is there a change to have a more complex grass moving or moving on any objects anyway? The movement looks very poor on grass because it's a simple same loop without a dynamic variation.

    2) Does the vertex movement speed depends on the distance to the center of the object?
    Btw is there any example tutorial how to spread vertex colors over an Mesh to get specified results?

    3) Is there a possibility to delete not used Shader variants?

    4) Does the Shader works with simple grass quad meshes using alpha masking?

    Thank you.

    "Only SM3 hardware is supported" implements for old ugly mobile phones only. :p
     
  10. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Hi,

    1. The movement is quite basic right now indeed. I want to implement a global turburence but time is not on my side right now. But this is something that I definitely want to add.

    2. No it doesn't. Did you see this happening? The animation is done in world space. For vertex and vertex alpha paining you can use Polybrush if you want to use Unity for it. There are tutorials on youtube. Here is one of them:


    3. I'm not sure if shader variants can be stripped from shaders. If you own Amplify Shader Editor, then you can take out different variants. Even there are a lot of variants, only the used ones are included in the build.

    .4 Yes, alpha masking is supported.

    The shaders can work with SM2, but I'm trying to avoid it. It is quite limited.

    Thanks!
     
  11. nixtwiz

    nixtwiz

    Joined:
    Jul 2, 2012
    Posts:
    18
    Just got this and love it! Your ASE layout was so neat and organized I ended up reorganizing some of mine to be cleaner.

    That said, there is one thing I thing this could benefit from - make all the wind parts of the shader a Shader Function so it can easily be dropped in on any shader in ASE. I already did it myself and it only took a few minutes (just had to rename everything because unless I'm doing something wrong, it's not pasting the names), but it would be awesome for new customers to already have it when they purchase the asset!
     
  12. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Thanks! I'm glad that you like it!
    The wind shader functions are already in work plus some other common functions. I hope I'll finish them asap.
    I'm also planning to add Vegetation Studio support and create separate shader for props, grass, flags to reduce the shader static switches / compilation time.

    upload_2018-6-26_7-22-50.png

    I also added Global turbulence and a new debug mode for mask and global noise.
    upload_2018-6-26_7-44-33.png

    More coming soon!
    Thanks :)
     
    nixtwiz likes this.
  13. Gray_Master

    Gray_Master

    Joined:
    Jun 20, 2010
    Posts:
    148
    This is support wind with trees (obj or fbx format) maked with 3d party soft such as Evolved TreeIt ?
     
  14. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Hi, TreeIt is already on my roadmap, it shouldn't be too hard to implement.
     
  15. Gray_Master

    Gray_Master

    Joined:
    Jun 20, 2010
    Posts:
    148
    This is... good news (c) Star Wars )
    then i must trade it (as i see this is very intresting & must be fast tool)
    one question - treeit in near-ring or far-ring in you roadmap ?
     
  16. Gray_Master

    Gray_Master

    Joined:
    Jun 20, 2010
    Posts:
    148
    Hm. I find bug in demos - if i open mobile shader demo then it work on gpu (as write in desciption) (guu - 20 - 30%) & fps is good. after open standard shaders demo gpu working onliy on 4-6% of power (i have gtx 750ti) and have big lags
     
    Last edited: Aug 25, 2018
  17. metteigel

    metteigel

    Joined:
    Aug 6, 2012
    Posts:
    33
    Quick Question before buying:
    Does it Work with the new HD Shader and Pipeline ?

    So can i still use my Translucency Map ? Or my Roughness, Normal, AO and Albedo ?
     
    Last edited: Sep 2, 2018
  18. Gray_Master

    Gray_Master

    Joined:
    Jun 20, 2010
    Posts:
    148
    metteigel, to LW PR this shader rewrite on one-two (left back foot). for HD exist bug - all in magenta colors (HD settings for scene is active). but may be i not correct rewrite for HD-RP

    ps. all maps has be used i think
     
  19. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    87
    Hi,

    Is it possible to change wind direction during play time and have smooth transitions of the wind animations?
     
  20. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Hello,

    Unfortunately changing wind direction is not possible in play mode and due to some texture panning on the wind direction it won't be supported.

    Thanks!
     
  21. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Hello,

    I know it is an old question, but somehow I missed it. LWRP and HDRP are not yet supported. I'm planning to add support for unity 2019.1 and SRP 5.0 when it is released. I had some issues with previous versions so I'm waiting for a more stable release.

    Thanks!
     
  22. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Hello,

    Old thread I know, but some how I missed it :)
    I just discovered that in later unity versions, if the Auto Generate lightmap is enabled, the scene is laggy even if GI and Lightmap generation is disabled. I think that unity is checking if any object is set to static and there are many grass objects in the scene.
    I'm using unity 5.6 for greater compatibility and I don't have this problem.

    Thanks!
     
  23. Gray_Master

    Gray_Master

    Joined:
    Jun 20, 2010
    Posts:
    148
    No Problem!
    and what about tree it wind ? - if i create Trees in this editor & set wind zone in Unity for tree then leaf rotated over branches & not have fixed point
    PS. Yes, and new version Tree It have texture atlas as option (if use, then tree exporting as one mesh & one material)
     
  24. Cosmoraph

    Cosmoraph

    Joined:
    Jan 25, 2017
    Posts:
    44
    Hi, @BOXOPHOBIC
    I have VEGETATION STUDIO. but I don't know how to apply your asset.
    I added your prefab as instructed, but it didn't work on the grass of VEGETATION STUDIO.
    Could you tell me more?
     
    Last edited: Nov 13, 2018
  25. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Unfortunately, I don't have TreeIt support yet officially, but I did some test and so far everything is working fine.
    Sorry things are a bit slow, I'm only working on assets in my free time and not as a full time job .Hopefully I will make it available on the asset store soon :)
     
    Gray_Master likes this.
  26. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Hello,

    I used Vegetation Studio only for testing purposes, so I only replaced one of the Object used in their demo with my prefab. My goal was to add VS support for my shaders, but I don't really used it to create something.
    upload_2018-11-14_12-27-46.png

    This intro tutorial might help:


    Please let me know if you have any issues!

    Thank you!
     
    Neviah likes this.
  27. Gray_Master

    Gray_Master

    Joined:
    Jun 20, 2010
    Posts:
    148
    I trust in You )))
     
  28. DanielThomas

    DanielThomas

    Joined:
    Mar 30, 2013
    Posts:
    50
    If someone find a solution to this I would be very interested in hearing! I'm trying to change wind direction and wind strength at runtime.
     
  29. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    Hello,

    Right now the global parameters can be changed only in editor, at runtime I disabled them as an optimization. I could add an option to be able to change the parameters at runtime. Regarding the direction, it cannot be changed due to the scrolling texture that is used as turbulence. Disabling the Global Noise on shader, you should be able to change the wind direction.

    Thanks!
     
  30. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    TreeIt shader in progress. Here is a small wip preview so far:

     
    nxrighthere and Neviah like this.
  31. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    82
    TreeIt has some bugs when exporting the vertex color for wind animation, so I decided to go for SpeedTree shaders and SpeedTree with VegetationStudio Instanced Indirect support first. Trunk height blending, bark randomization, cross fade LODs, global color randomization, global leaves amount and new shader UI are a few of the new features.

    The price of the asset will increase with the new release, so grab your copy on a lower price today. Set your world in motion!

    Unity Asset Store: http://u3d.as/19o4

     
    nxrighthere likes this.