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.

RaindropFX - Realistic Camera Lens Rain Effect

Discussion in 'Assets and Asset Store' started by zhongtianhu, Feb 24, 2018.

  1. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    RaindropFX GPU solver for HDRP is coming! The performance has been greatly improved!

    In version 3.0, you can choose to use CPU or GPU as your solver.

    GPU.png
     

    Attached Files:

    one_one and Bartolomeus755 like this.
  2. ExcellencyHong

    ExcellencyHong

    Joined:
    Aug 9, 2016
    Posts:
    29
    Shaders Has a Error with HDRP 10.2.2..

    Shader error in 'Custom/RaindropFX/WetSurface_HDRP': "Undefined punctual shadow filter algorithm" at com.unity.render-pipelines.high-definition@10.2.2/Runtime/Lighting/Shadow/HDShadowAlgorithms.hlsl(26)

    the Screen Effect is worked anyway. but, others not worked..
     
  3. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    Hi! Please send email to hztmailbox@gmail.com, I'll send you a fixed version.
     
  4. luniac

    luniac

    Joined:
    Jan 12, 2011
    Posts:
    531
    Wow hey that looks pretty cool, i presume i could adjust the code to create a bunch of random drops in a circular radius around the click?

    Also it did look like the drops interact with each other but i can't tell how well.
    Is it possible for drops to join together to form bigger drops and only slide down once they become too large to stay in place?
     
  5. luniac

    luniac

    Joined:
    Jan 12, 2011
    Posts:
    531
    I love the wiping feature in the new version, very cool!
     
  6. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    At present, they are actually some independent water drops, but after post-processing, it looks that drops close to each other are merged. To achieve what you said, you can maintain a list of painting water drops separately, then merge the water drops that are close to each other, and judge that when the quality of water drops is large enough, then replace it with dynamic water drop.

    I will create an example for you later :)
     
  7. luniac

    luniac

    Joined:
    Jan 12, 2011
    Posts:
    531
    An example would be great!
    That would be everything i need for my project.

    Thanks!
     
  8. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    微信截图_20210307180131.png

    RaindropFX Pro 3.0 for HDRP is released!


    I received feedback from some users that the performance of version 2.5 (HDRP version) is poor, so in version 3.0, I focused on improving the performance of the solver. Now the batches of the CPU solver was reduced by half, and the performance was greatly improved!

    In addition, another notable big update of version 3.0 is the GPU solver. Now you can choose CPU or GPU as your raindrop solver. GPU solver is still in beta version, only basic functions, if you find any BUG, please contact me in time.

    I'm sorry that the last version didn't satisfy you due to performance issues, so I decided to provide free upgrade for version 3.0. Users who bought the old version don't need to pay any extra upgrade fees. ;)

    Asset Store Links
    Standard Pipe Version: http://u3d.as/1M4D
    HDRP Version: http://u3d.as/1Un5

    Release Notes
    *fixed: shader error in HDRP 10.2.2;
    *fixed: static mask only affect raindrop but not affect fog and depth-of-field;
    *added: half batches decreased (CPU solver);
    *added: dynamic wipe for object space version (CPU solver);
    *added: raindrop painting (screen space, CPU solver);
    *added: force LUT (affecting the flow direction of water droplets on object surface);
    *added: assembly definition;
    *added: dynamic scaling of full screen raindrop texture (no longer need to preset the size at the beginning of the game);
    *added: controllable fogging speed;
    *added: GPU screen space solver (beta);
    *added: GPU object space solver (beta);
    *added: fluids can interact with normal map (object space, GPU solver).

    Video


    ScreenShots
    batches.png
    wip.png
    surfaceRain.png
     
    keeponshading likes this.
  9. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,041
    Looks great, on the CPU usage the video seems to show between 20-30ms for CPU use, how much of that is the Rain effect?
     
  10. Bartolomeus755

    Bartolomeus755

    Joined:
    Jun 20, 2013
    Posts:
    283
    Looking forward to version 3. Looks great so far.
     
  11. Passeridae

    Passeridae

    Joined:
    Jun 16, 2019
    Posts:
    330
    Hi!
    I need a raindrop effect for windows in the interior scene. There are around 30 windows, 2-3 glass panels each. Only 6-8 windows are visible at a time. Will I face performance issues in this scenario if I use your asset for this? I don't need any physical interaction or behaviour, so it would be cool if I could disable all the simulation stuff and leave only the visual look of moving droplets.
     
    keeponshading likes this.
  12. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    914
    Hi. Some possible solution.

    Combine the meshes for all windows of your "house" and generate an packed uv for it.
    Then run the rain Shader on it.

    When you need add additional 2 geometrys for every window (in and out). Gives some more flexibility.

    So you have pro window a in an out glass surface + the combined mesh for all windows who runs the rain shader.
    This method is used in the ArchVizProInteriorVol3_HDRP Asset with perfect performance.

    I am also interessted in other possible solutions with RaindropFXPro.
     
    Last edited: May 27, 2021
  13. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    I'm sorry that I was writing my master's thesis this period, so didn't pay attention to the forum and didn't reply to you for a long time. I'm working in a game company now, only have time on weekends, so I can't pay much attention to the forum.

    However, the plug-in will continue to be maintained and updated. If you need any help, please email me directly :)
     
    keeponshading likes this.
  14. Simondenhartog

    Simondenhartog

    Joined:
    Jan 8, 2021
    Posts:
    1
    Congratulations with your job at a game company! Are you still planning om making a URP version?
     
  15. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    Yes, but it maybe delayed :)
     
  16. deanparker

    deanparker

    Joined:
    Sep 30, 2014
    Posts:
    7
    Picked up RaindropFX HDRP (v3 looks awesome), while I am waiting for the URP version.
     
    Last edited: Aug 5, 2021
  17. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,434
    Hello, I've been using this asset for awhile, and it looks great. I love the effect. But currently it is unusable for me in one of my projects because it drops my game's fps in half, just with this asset alone. That is, the CPU version of it with the most features has massive performance issues for me. It literally drops my game's fps from ~50 down to ~25 fps.

    The GPU version has much better performance, but of course lacks a lot of features (and I can't see how to get the rain droplets to be larger) with any noise texture I've tried.

    I am using HDRP and RaindropFX Pro HDRP 3.1.1. I will email you directly as well, but just wanted to post this here in case you see this one as well.

    Thanks for any help with the performance issues.
     
  18. chitanblue

    chitanblue

    Joined:
    Mar 15, 2013
    Posts:
    8
    Hi, I bought this recently. The raindrops are a great size and ratio on a small window pane I have. But, when I scale that window up, everything looks big and blocky. Is there a way to reduce the size of everything? To "scale" this shader down so the drops are smaller? Thanks
     
  19. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,041
    Can any users of this give some frame rates when using the effect, especially the wiper effect, looking at the videos the CPU use shows 30ms - 40ms for scenes with just the rain effect in, is this how much time the asset takes?
     
  20. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,041
    Guessing this asset is no longer supported?
     
  21. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    Hi! I have replied to your email :)
     
  22. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    Hi! Just increase 'Calc Rain Texture Size' of the 'Material Linker' component if you are using object space version plugin.

    POPO-screenshot-20211020-162031.png
     
  23. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    Hi! RaindropFX is highly configurable. The specific consumption depends on how to configure the effects you need.

    For example, the wiper effect is very performance consuming because it needs to render an additional wipe mask in each frame. In addition, if you use a high roughness value to render frosted glass, it will be very expensive, too.
     
  24. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    Because of my work, I seldom watch the forum now, but the plug-in will still be maintained. If you need any help, email me directly :)
     
  25. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    CoverImage_1950x1300.png

    Hey Guys! :)

    RaindropFX Pro for URP is released!


    Asset Store Links
    Standard Pipe Version: http://u3d.as/1M4D
    HDRP Version: http://u3d.as/1Un5
    URP Version: https://u3d.as/2M2Z

    Over the past year, I have received many inquiries about whether there will be a URP version RaindropFX and when it will be released.

    Sorry for the delay, But now it's done!

    Version 1.0 includes all basic functions except GPU solver.

    One more thing, in the URP version, I replaced Gaussian Blur with Kawase Blur, it's quality is similar with Gaussian Blur but super fast (see the statistics below), so the performance of Raindrop solver will be greatly improved! ;)

    20200406215007888.png

    Video


     
    Last edited: Mar 9, 2022
    milox777 likes this.
  26. marcell123455

    marcell123455

    Joined:
    Jun 18, 2014
    Posts:
    247
    Hi,

    I try to setup a simple fast rain drop efferct for mobile rn. I got the effect working but when activating the postprocessing volume, my fps are tanking from arround 120 down to 35. So I guess something is missconfigured. I upgraded to the RaindropFXPro standard because I needed the radial wind effect, and performance wasn´t actually never a problem with the old one. I also want to say I have never used the postprocessing stack until now.

    https://imgur.com/78jVV07

    https://imgur.com/AUSEFkp

    Any ideas how to tackle this down?

    thanks
     
  27. davidjfranco

    davidjfranco

    Joined:
    Oct 9, 2014
    Posts:
    20
    Hi there :)
    I'm in 2021.2.11f1, with dx11, hdrp 12, I get this error on importing the asset:
    Assets\RaindropFX_HDRP\Editor\RaindropFX_HDRPEditor.cs(62,26): error CS0115: 'RaindropFX_HDRPEditor.hasAdvancedMode': no suitable method found to override
     
  28. zhongtianhu

    zhongtianhu

    Joined:
    Jan 27, 2018
    Posts:
    60
    Hi! Just comment this line, it will work. It's weird error cuz you can even find this line in the official documentation. :confused:
     
unityunity