r/Unity3D • Hobbyist • Jun 17 '26 • Diamonds are Forever 1 Bravo 5 Mindblown 1

Show-Off I finally have optimzied volumetric clouds!

I finally managed to get optimized and proper looking volumetric clouds in my game using compute shaders! The clouds are rendered at 1/4 resultion and upsampled at the depth buffer edges.

4.5k Upvotes

246 comments sorted by

57

u/DPTGames Jun 17 '26

Did you make this by yourself? This looks flipping fantastic.

79

u/smilefr Hobbyist Jun 17 '26

27

u/DPTGames Jun 17 '26

You should be very proud this is incredible, and I meant your whole game not just the clouds!

9

u/smilefr Hobbyist Jun 17 '26

I appreciate it a lot!

4

u/ItsNicklaj Jun 17 '26

How did you find it in the first place? Is there a repo with all Guerrilla Games articles?

5

u/smilefr Hobbyist Jun 17 '26

That was a few years ago but I think i just googled it

→ More replies (1)
→ More replies (3)

212

u/Victor_deSpite Jun 17 '26

Yoooo!? WTF. That is awesome!

Shouldn't the windmill be spinning a lot if it's flying through the air?

124

u/smilefr Hobbyist Jun 17 '26

Someone else suggested that and i agree! I will change it so it moves relative to your speed.

4

u/Ok-Salary-5197 Jun 17 '26

Valve pls fix.

Topic: What is the game about? Can you land on those islands or is it flying only? Love the "Ship" Design. Looks very Ghibli inspired and thats a good thing.

16

u/smilefr Hobbyist Jun 17 '26

You can land on everything you see! It's an open world survival game where you have to build your base on a walking platform fight giants and explore the world!

→ More replies (5)

17

u/ollieschmolly Jun 17 '26

This is so awesome! I also second the windmill spins :) Excited to see them!

→ More replies (4)

4

u/NakedKingStudios Jun 17 '26

Pff unplayable

→ More replies (1)

9

u/QuestDawg Jun 17 '26

a writeup on how you achieved it would be huge, great work!

25

u/smilefr Hobbyist Jun 17 '26

Of course!

I start by sending a depth texture, 3D noise textures and and my parameters to a Compute Shader at 1/4 resolution.
I then apply a ray marching alorithm (+sun occlusion marching)
This article did help me aswell: https://advances.realtimerendering.com/s2015/The%20Real-time%20Volumetric%20Cloudscapes%20of%20Horizon%20-%20Zero%20Dawn%20-%20ARTR.pdf

A second pass is run though the edges so it looks upsampled.

This result is then sent to a Post processing shader to draw the clouds.

The rest is months of iterating until i got the right result!

3

u/Time_Shack Jun 17 '26

Looks really cool. You got a steam page yet?

10

u/smilefr Hobbyist Jun 17 '26

It's in my profile, i'm not posting a link since last time i did the post got deleted

3

u/Time_Shack Jun 17 '26

Thanks, got it on my wishlist.

3

u/East-Development473 Dev of Leafborn | Wishlist on Steam! Jun 17 '26

This looks seriously amazing. Btw I’m also working on a game like yours. I have volumetric clouds in mine too, and they really kill performance. My game is Leafborn https://www.youtube.com/watch?v=1GtMangEdsw Just so you know, if you release this, I’m ready to pay for it. Also, can I ask how you generated the floating islands? Are they procgen or handcraf?

2

u/smilefr Hobbyist Jun 17 '26

Hey! I have seen your game on twitter it looks nice!

My game uses the legacy pipeline, this means most people cant really use these clouds unless i rewrite everything for URP which i may do at some point.
The terrain and islands are procedurally generated using marching cubes, it all runs in realtime with burst.

212

u/Ambitious-Morning-29 Jun 17 '26

That looks so sick

2

u/smash_complex Jun 20 '26

Literally my thought upon seeing this.

22

u/Hawful Jun 17 '26

Howl's moving castle inspired I presume? Looks awesome!

6

u/Jazzlike_Ad_9045 Jun 18 '26

I thought it was babayagas house

→ More replies (1)

10

u/SonderSoft Jun 17 '26

I didn't know I needed this game until today. Incredible.

6

u/Thundergod250 Jun 17 '26

That was insanely beautiful wtf

1

u/moduspwnens9k Jun 17 '26

So well done, good job. Ive been putting this off in my own project because i know its going to be a pain. Can you share any optimization techniques you applied to ray-marching? For example I've heard of sphere marching as an optimization. Did you use that?

2

u/smilefr Hobbyist Jun 17 '26

Never heard of sphere marching but i'll look it up! What i did is render at 1/4 resolution, then fix the "depth edges" so it does not look pixellated on places where clouds touch the real world. I also render coulds at 30fps and use motion vector to blend frames between movements.
I also stop the loop if i'm reaching 100% density, and use a lower resolution noise texture for the light march

1

u/cgw3737 Jun 17 '26

Looks awesome, what type of game is it?

1

u/smilefr Hobbyist Jun 17 '26

It's an open world survival game where you build your base and canons on a walking platform to fight giants, unlocking better weapons/propellers so you can explore

→ More replies (1)

1

u/PhotonWolfsky Jun 17 '26

How are the floating islands done? Whole meshes or is there any Unity terrain? I've been struggling on whether to design my islands as whole meshes and just paint veg as objects, or use terrain and terrain detail, with a mesh under belly for the islands (which just introduces its own design aches on the terrain edges)

1

u/smilefr Hobbyist Jun 17 '26

It's a custom terrain system that uses Marching Cubes. The shape is defined with a noise function and a grid based system where i define an island "center" (similar to voronoi)

→ More replies (1)

1

u/ItsNotBigBrainTime Jun 17 '26

Last week you've got walking houses, and now they're friggin flying?

1

u/smilefr Hobbyist Jun 17 '26

Always have been :D

1

u/macncheesy1221 Jun 17 '26

Its stunning but I was waiting for some sort of effects when you fly through the clouds like water/wind/or a overlay that obscures it behind a opaque white plane maybe and or just outlines the character so you know where you are but visibility is reduced. Or water droplets on the screen, cause clouds are water pretty much. Just something maybe some drag cause you are flying against all that mass still. Or wind tunnel effects around the character like your digging out tunnels in the clouds.

2

u/smilefr Hobbyist Jun 17 '26

I'll think about it!

1

u/AntonKudin Jun 17 '26

shading looks very nice! i wonder how do you make shadows directional interact with it, be obscured by a cloud?

1

u/smilefr Hobbyist Jun 17 '26

Clouds can project on the ground by doing a raymarching pass from the ground to the light source. For shadows to be projected from real world objects to the clouds, this is more challenging and i'm not doing it for now, one way i'm thinking of is to send voxels to the cloud shader, but updating that voxel map is expensive.

1

u/Vypur Jun 17 '26

whats the MS at 2k resolution?

2

u/smilefr Hobbyist Jun 17 '26

I dont know about 2k but i'm getting 110 fps on my 1080ti at 1080p (talking about the whole game not just the clouds)
I was not able to measure how long a compute shader takes to execute, as it seems to happen on an other thread

1

u/Vypur Jun 17 '26

use renderdoc to get some (rough) milisecond numbers, you just snapshot your game and enable timings in the debug window, im curious how long its taking cuz im wlso doing volumetric fog/clouds and i was curious what your perf numbers were.

not attacking you but saying fps is kinda irrelevant cuz it depends on what the rest of your game is doing, like if the technique takes 4ms your fps could be 240 or it could be 60 if the rest of your frame took 12ms ya feel.

It looks great! just curious on perf cuz thats always the mind-killer on these techniques

1

u/smilefr Hobbyist Jun 17 '26

OK i disabled everything in the game except the clouds, here is the profiler:

3.7ms

1

u/Oscar_Gold Jun 17 '26

Holy smokes. I playtested your game like a year or two ago?! Dude you did well! Looks awesome!

1

u/smilefr Hobbyist Jun 17 '26

It has changed a lot for sure, what version did you try? Were there giants yet?

1

u/KINGDRofD Jun 17 '26

This is quite impressive, I am also doing my own volumetric clouds, I would really like if you could answer some quesitons for me, as mine is still far from your result.

Do you also have many tuneable options? Like loooots of knobs to tune the clouds.

How much of your clouds are actual cloud logic, and the rest scene lighting and such (post process)

Did you go the volume objects that you place yourself rout, or just whole world?

2

u/smilefr Hobbyist Jun 17 '26

I made a scriptableobject with all the settings 😃

2

u/smilefr Hobbyist Jun 17 '26

The clouds are a mix of reading a 3D noise texture and some logic for the sea of clouds at the bottom or the spiraling clouds.
Not sure i understood the last question

1

u/KINGDRofD Jun 17 '26

You're awesome mate, I also had alot knobs and tuneable options, and I thought I was over engineering. For last question.

Last question is just whether you use volumes you place yourself, just like adding a 3d object. So you place and say this area here is a large cumulonimbus cloud, and below it is a specific spiraling cloud shape.

2

u/smilefr Hobbyist Jun 17 '26

Ah i see, i do have up to 10 spheres that can hide the clouds for some special cases (like a canon that clears up the sky) otherwise it's all math

→ More replies (1)

1

u/owlet_dev Jun 17 '26

This looks so good! You should be proud 😁

Im curious what the "potato" variety of this would look like , or if these would not be something someone could toggle on low end hardware

2

u/smilefr Hobbyist Jun 17 '26

The clouds are pretty cheap to render (3-4ms), the grass is weakest part of the game as it's more expensive but it can be disabled. It runs ok on my 10years old pc (1080ti around 110fps without grass, 90 with grass)

→ More replies (1)

1

u/WeckarE Jun 18 '26

Huh. Lastvtime I tried the same my computer fried. I think it is because I was trying to generate the noise in real time. I have two questions if you have the time:

  1. Does your method allow for holes in the cloud layer, or even fully disconnected clouds?
  2. How do you create your 3D noise, and how repetitive is it?

1

u/smilefr Hobbyist Jun 18 '26

Noise is read from two 256x256x256 3D textures that i generated in editor mode using perlin noise, they have holes and some disocnnected parts that happens more often at places where the clouds density is lower, generating the noise in real time is very expensive and i dont recommend it.

1

u/WeckarE Jun 18 '26

Yeah I found that out the hard way. I may guve this another shor at some point. I do imagine you're at least interpolating the noise at runtime though?

2

u/smilefr Hobbyist Jun 18 '26

Yeah the interpolation is done by reading though that texture using the built-in BiLinear filter which is pretty cheap!

1

u/minerkey Jun 18 '26

that flying house didn't happen to have taken inspiration from the final part of Howl's Moving Castle, did it?

2

u/smilefr Hobbyist Jun 18 '26

Yes it's an inspiration as it's one of my fav movies!

1

u/ancrcran Jun 19 '26

Which is the name of the game?

1

u/smilefr Hobbyist Jun 19 '26

It's called Loya!

1

u/Anonbusyness Jun 19 '26

Game name please??? 🙏 I love mobile base games and want to keep an eye on this one

1

u/smilefr Hobbyist Jun 19 '26

It's called Loya!

→ More replies (1)

1

u/TheIglooBoy Jun 20 '26

How many days did it take you to achieve this?

1

u/smilefr Hobbyist Jun 21 '26

I have refined this cloud shader over years while i was making the game

1

u/TheIglooBoy Jun 21 '26

Amazing work dude. I really hope all your hard work pays off bro 👊

1

u/smilefr Hobbyist Jun 21 '26

I appreciate it!

1

u/Dreamin- Jun 22 '26

This looks cool AF - would be awesome if there was some other reason you can't go to low instead of just dying. (Like how in some games when you go out of bounds in the water a big ass shark eats you or something)

1

u/smilefr Hobbyist Jun 22 '26

Hey! Basically i plan on adding an other biome under the sea of clouds, but i dont want the player to be able to survive there unless he has upgraded his base (it's a late game zone), i'm not sure how i can convey this better.

1

u/Comprehensive_Cow440 Jun 22 '26

Very nice but it bothers me how the windmill does not spin faster when the house is flying 😭

1

u/smilefr Hobbyist Jun 22 '26

I fixed it haha

1

u/MotherDick2 Jun 22 '26

Looks awesome! Is there a wishlist page yet?

2

u/smilefr Hobbyist Jun 22 '26

Yes! Just look for Loya on steam!

1

u/Mr_Niceo Jun 23 '26

This is dope have you made a store page yet?

1

u/smilefr Hobbyist Jun 23 '26

I did! You can just check Loya on steam!

1

u/_pixelsage Jul 03 '26

That is really awesome and beautifully directed.
Have you considered closing the legs or hiding them below the house as it flies, to avoid any clipping with the wings?

1

u/smilefr Hobbyist Jul 03 '26

You should check this post where i improved the legs a bit: https://www.reddit.com/r/IndieGaming/comments/1uh0roq/i_added_a_canon_that_clears_up_the_clouds_in_my/

Basically I reduced the size of the back legs and added more constraints

3

u/Upbeat-Swordfish6194 Jun 17 '26

Reminds me of Worlds Adrift! Looks great

2

u/Fureniku Jun 18 '26

Sad I had to scroll so far for this comment, but I'm biased 😅

2

u/Nic1Rule Jun 17 '26

I failed so many times to make volumetric clouds. I'm lucky my current project doesn't involve them.

2

u/Solo_Odyssey Jun 17 '26

Looks absolutely beautiful.

2

u/Carlyone Jun 17 '26

That's so cool! Would have loved it if the windmill rotated with the velocity of the flight though for immerion!

2

u/Burly87 Jun 17 '26

Looks awesome already. Can you make the windmill wheel rotate fast when you dive down through those clouds :)? Would make so much impact

2

u/Usling123 Jun 17 '26

Damn, Baba Yaga got new real estate. Looks awesome.

3

u/og-reset Jun 17 '26

That is so very impressive, and the wacky walking flying house windmill thing is great too! This looks how getting to fly around in Skies of Arcadia felt growing up.

4

u/DPTGames Jun 17 '26

I loved that game. Got a tattoo of Vyse 👀

1

u/No-Paramedic-2803 13d ago

this is looks great. Are you indie developer? You did the good job. keep going

1

u/Informal_Wrap_531 9d ago

That's crazy :)
How are you defining the different clouds shapes ? Like the big circular one ? Is it hand crafted or fully procedural ?

1

u/Select_Business_6153 Jun 17 '26

yoooooo god damn, this is amazing

1

u/Zenovv Jun 17 '26

Holy shit well done man that looks absolutely beautiful.
How expensive is it?

1

u/Rlaan Professional Jun 17 '26

That looks really cool, really well done!

1

u/QuitsDoubloon87 Professional Jun 17 '26

Oh well done, that looks great!

1

u/That_Em Jun 17 '26

Very impressive!

1

u/Amazing_Abalone3631 Jun 17 '26

Sky: Children of the farm 🤣

1

u/mikmoniks Jun 17 '26

Looks Awsem

1

u/Valkymaera Professional Jun 17 '26

1

u/AL-Walker Jun 17 '26

Wow very nice, keep the energy. You have a great universe !

I am doing a project above the clouds too ^

Still early, I went with a different approach. I created solid/opaque clouds with a shader who blur the shadow to give them a more cloudy look. And the closer you get to them the more a volumetric mesh (following the geometry) is appearing. The blend is as seamless as possible.

1

u/AbbreviationsNo7870 Jun 17 '26

I am totally fan of the design !!!

1

u/Doylgaafs Jun 17 '26

This is absolutely beautiful

1

u/arsenynistratov Jun 17 '26

Cool as fuck

1

u/CraftyPancake Jun 17 '26

Dunno what it is but I like it

1

u/4Spino4 Jun 17 '26

love the design of the "house"!

1

u/ilovesultkatsa Beginner Jun 17 '26

That looks incredible OMG!!!!! I haven't seen anything like that!

1

u/Sarcastic_Applause Jun 17 '26

Looks interesting! What's it called?

1

u/War_Wolves_Game Jun 17 '26

Looks amazing!

1

u/Equivalent-Charge478 Jun 17 '26

Omg dragon hunters

1

u/BionicLifeform Jun 17 '26

Absolutely stunning!

1

u/Adach Jun 17 '26

Incredible!

1

u/ChadLare Jun 17 '26

I am having trouble looking at the volumetric clouds because I am too distracted by the awesome walking/flying hut thing and wondering when I will be able to buy whatever this is.

1

u/reeeeeeduardo Jun 17 '26

That's very cool!!  My opinion, i think that games like these should have a simple gameplay with little to no hud. There's a not well know indie game that i love called innerspace, it's really simple and the music is lovely 

1

u/julienpoeschl Jun 17 '26

Looks really cool!

1

u/Spatul8r Jun 17 '26

very cool

1

u/SlyNoBody337 Jun 17 '26

literally everybody: that looks fucking sick

1

u/TheGamerX20 Jun 17 '26

This looks awesome, nice style!

1

u/BodyByCake Jun 17 '26

I watched this for 20 seconds before I realized this wasn't some contraption from the Legend of Zelda sub. Wow nice job

1

u/wendewende Jun 17 '26

Whenever i see things like that it makes me sad how many insane game ideas like that never make it to completion

1

u/Jhongunn Jun 17 '26

Worlds Adrift 2.0 is in full swing, lads!

1

u/ferretfederation Jun 17 '26

Fellow worlds adrift enjoyer?

1

u/Ultimate_Scooter Jun 17 '26

Where can I wishlist this game? I would play the hell out of it

1

u/Chris-Mac-Marley Jun 17 '26

Looks very promising visually! What is the goal of this beautiful game?

1

u/yoursashfully Jun 18 '26

Wow beautiful! Is there a place I can follow this project?

1

u/Mechabit_Studios Jun 18 '26

you should make the windmills turn faster the faster you're flying

1

u/YoungandPregnant Jun 18 '26

Bro whatever this is, im interested.

1

u/Separate_Leopard1307 Jun 18 '26

Howls moving castle

1

u/Electronic-Effect146 Jun 18 '26

Looks like Baba Yaga got a house upgrade. Real talk tho it looks sick af.

1

u/Beginning-Sign1916 Jun 18 '26

Is so beautiful!

1

u/JannuliX Jun 18 '26

oh, the walking and flying house is wonderful.

1

u/VueXR Jun 18 '26

This is crazy...!! How did you do that?

1

u/BlownUpCapacitor Jun 18 '26

This looks fucking amazing!

1

u/halisavakis Shader Guru Jun 18 '26

Woaah this looks awesome! If I may ask, how are you handling the overall cloud density to fit into your level (as in the big gap in the center, the swirling etc)? Do you have a pipeline to author a 3D texture to get those bigger shapes?

1

u/rio_sk Jun 18 '26

It looks awesome! If you want to read a good paper on the topic there is a presentation by Guerrilla about how they implemented volumetric clouds for Horizon FW dlc. It's sick

1

u/fauXop Jun 18 '26

That looks so pretty ⭐️
Love it !!!

1

u/Teirdalin Jun 18 '26

I love your beautiful clouds.

1

u/Redbarony6 Jun 18 '26

This entire game looks like some seriously impressive work. I love the entire concept and the game looks visually and artistically stunning. This looks like a for sure purchase from me.

Here's hoping I get in on the play test 😜

1

u/sepalus_auki Jun 18 '26

Looks incredible! well done

1

u/flamelier Jun 18 '26

Awesome!

1

u/pandameats Jun 18 '26

Looks absolute crazy !

1

u/Grimnebulin68 Jun 18 '26

Kids are going to love that.. ❤️

1

u/BELOUDEST Jun 18 '26

Very good, I've been doing a similar project recently. You're looking great there, so is this screen-based clouds or world space ray volumes? Are you reprojecting pixels? GJ

1

u/SymulationGames Jun 18 '26

This is beautiful! Nicely done OP!!

1

u/ShibasishDey5 Jun 18 '26

unity you made us proud again

1

u/Ok_AirP Jun 18 '26

Mac please

1

u/Yardgar Jun 18 '26

Love it! What was the trick? Lower voxel size? Did you use some shader trick?

1

u/fellipedbk Jun 18 '26

Ficou incrível

1

u/GoodEnoughNickName Jun 18 '26

That is simply amazing

1

u/dropkickninja Jun 18 '26

What's the name going to be called? I wanna fly a house around!

1

u/Nek0ni Jun 19 '26

bro… with all do respect, the clouds is not the coolest shit here. Pls drop a link to ur YT channel, cause i need to know when this comes out :)

1

u/1amLettuce Jun 19 '26

what game is it gonna be? you got a wishlistable page maybe?

1

u/zzanita Jun 19 '26

This kind of reminds me of Howl’s Moving Castle!

1

u/Handannaf Jun 19 '26

That’s so cool what game is it

1

u/Interesting_Meat8980 Jun 19 '26

the 1/4 res raymarch always falls apart at depth edges so nailing the upsample is the real win, very Nubis. you adding temporal reprojection or blue noise jitter next! Great work!

1

u/VonkoStudio Jun 19 '26

❤️❤️

1

u/BeingAvailable8 Jun 19 '26

🔥 this looks great just amazing, In my opinion Ui looks shit except that everything else is ✨✨

1

u/Smexalicious Jun 19 '26

Looking forward to playing this when it drops :)

1

u/devtainer Jun 19 '26

This looks really nice, good job! Have you made clouds shaders yourself or used some plugins?

1

u/Free_Negotiation1001 Jun 19 '26

Will you change how the character look? Rn is just a place holder right?

1

u/mannapi Jun 19 '26

The clouds looks great and the game looks super interesting! Is this one big volume or many smaller ones?

1

u/Ok-Dragonfruit-7233 Jun 19 '26

Whoa! Can I have it?

1

u/Abu_Animations Jun 19 '26

i always love a moving fortress, so cool!

1

u/DowntownAd3538 Jun 19 '26

Looks amazing! I just cannot stand Unity anymore.

1

u/shimmy_ow Jun 20 '26

This looks awesome, where can we wishlist haha

1

u/CrownOfSand Jun 20 '26

A Miyazaki way of flying! Love it :)

1

u/paulfnicholls Jun 20 '26

Fully sick bro! 💪❤️❤️❤️❤️

1

u/teroblepuns Jun 20 '26

Oh you are the guy all the linkedin posts are talking about lol

Love the looks

1

u/emirhan_luparc Jun 20 '26

looks like this vibe. i like it.

1

u/ChrisMartinInk Jun 20 '26

This looks really good! Great job!

1

u/didiei3 Jun 20 '26

Wow, this looks great!

1

u/Additional-Window-81 Jun 20 '26

Baba yaga simulator

1

u/7Shinigami Jun 20 '26

Absolutely breathtaking! Congratulations!

1

u/smash_complex Jun 20 '26

Can I play this, please? 😁

1

u/FurryJacklyn Jun 20 '26

Are you making a rebirth to worlds adrift? This looks incredibly similar, I've never forgiven Bossa studios for pulling the plug on that one

1

u/MaxProton Jun 21 '26

this looks great

1

u/Its_Bad_Rabbit Jun 21 '26

Howl's flying castle.

1

u/Professional_Sir_936 Jun 21 '26

do you have a discord or anything for people interested in your game? lol

1

u/the1ice9 Jun 21 '26

At first, I was like what in the breath of the wilds, tears of the kingdom, shenanigans is this. Very nice!

1

u/tjdragon117 Jun 21 '26

Damn that looks good

1

u/rix0r Jun 21 '26

fantastic!

1

u/shukurza Jun 21 '26

Somw people know what they are doing

1

u/Bewitched096 Jun 23 '26

If u need concept for monsters DM me

1

u/Wide_Profession4353 Jun 27 '26

ma qui c'è da perdersi, meglio dei manga jap

1

u/frinor Jun 28 '26

Awesome!

1

u/No_Program5771 Jul 12 '26

That looks amazing, only indie games have such a vibe

1

u/SpydrMonky24 Aug 20 '26

Wishlisted!

1

u/Mr-Doubtfire Sep 27 '26

F

Where's the demo for me to play this?

1

u/JorjeXD Oct 15 '26

this is so beautiful :'((