Search Unity

Assets Volumetric Cloud Rendering

Discussion in 'Works In Progress' started by Frostbite23, Nov 6, 2018.

  1. Frostbite23

    Frostbite23

    Joined:
    Mar 8, 2013
    Posts:
    430
    This is an update to my old previous atmospheric scattering solution + volumetric cloud rendering. (Its running at 16 - 32 samples at around 80fps on a gtx 970).

    So after working and tweaking at this for months I figured I might as well as show what I have, pretty happy with it so far. In the future I wanna optimize it more and add a global precipitation slider.

    This was mostly a personal project and just for fun, could upload it to the asset store I don't think I would though... we'll see. Would like to hear your thoughts, and suggestions for helping me make this go even further!

    Unity_2018-11-05_19-48-12.png Unity_2018-11-05_19-50-00.png Unity_2018-11-05_19-50-58.png Unity_2018-11-05_20-07-56.png Unity_2018-11-05_20-04-50.png
     
    Last edited: Nov 6, 2018
  2. mortengulden

    mortengulden

    Joined:
    Mar 15, 2015
    Posts:
    19
    Looks great, very interesting! So will we be able to fly into (and above) these?
     
  3. Frostbite23

    Frostbite23

    Joined:
    Mar 8, 2013
    Posts:
    430
    Yessssssss! Only problem is that its on the skybox, and not in screenspace so cant have clouds drawn ontop of the frame and look like they are apart of the scene. But thats a future addition!
     
    mortengulden likes this.
  4. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    480
    Realle like the sunset ones.
    Do yo have a liitle video with some movement or a demo?
     
  5. Frostbite23

    Frostbite23

    Joined:
    Mar 8, 2013
    Posts:
    430
    Sure I can upload a gif.
    (5 fps gif if your wondering, gotta save that space)


    I'll thrown in some extra shots just for fun!
    Unity_2018-11-04_01-06-51.png
    Unity_2018-11-04_01-37-23.png
    Unity_2018-11-05_20-08-48.png
     
    Last edited: Nov 7, 2018
  6. mortengulden

    mortengulden

    Joined:
    Mar 15, 2015
    Posts:
    19
    Very interesting indeed! Unity really needs this :) Will be more than happy to test whenever you like! For me VR and HDRP support are high on the wish list, but what I really haven't seen properly solved yet is the flying over/into decent looking clouds (having them render over the landscape as well of course).
     
  7. QuadArt

    QuadArt

    Joined:
    Feb 8, 2017
    Posts:
    52
    Looks really cool, I think it will be very successful on the store if you decide to release it
     
  8. Frostbite23

    Frostbite23

    Joined:
    Mar 8, 2013
    Posts:
    430
    Unfortunately this is gonna be wayyyy too demanding for VR, even if I throw in some optimizations. We'll see though, I got some tricks up my sleeve...
     
    mortengulden likes this.
  9. Frostbite23

    Frostbite23

    Joined:
    Mar 8, 2013
    Posts:
    430
    Alright, late update but with some magic I managed to increase my FPS by 20, kinda funky solution but instead of a uniform sample count I have a gradient and clouds nearest to the horizon will have a greater sample count than the ones above. with a large difference between the min and max samples there is a noticable stepping but once I get temporal filtering to work this should hide those details nicely.
     
    mortengulden likes this.
  10. Frostbite23

    Frostbite23

    Joined:
    Mar 8, 2013
    Posts:
    430
    I think its worth mentioning too but these main 3d Volumetric clouds are also coupled with some 2D clouds (basically a lower quality and much thinner version of the 3d clouds) to add variety and complexity to the sky. So really in the screenshots your seeing both in action, the 3d and the 2d clouds.
     
unityunity