Creating Volumetric Clouds in Unity URP. (Based on Sebastian Lague's Cloud Video)
ฝัง
- เผยแพร่เมื่อ 13 ต.ค. 2024
- I spent a lot of time making this video. At first, I edited one, but it got too long and boring. So, I made a better, shorter, and more interesting version from scratch. Hope you like it!
Links
Sebastian Lague's Cloud Video : • Coding Adventure: Clouds
Github : github.com/Par...
You can contact me through TH-cam or Discord.
My Discord : paro456d
My Patreon : / paro222
Hey everyone, I recently started a Patreon account. I'll be posting some simple game resources or things I'm too lazy to turn into videos there. subscribe if you're interested!
link : www.patreon.com/Paro222
This is super cool :)
I was struggling with that dang color part, when I found out by asking chatgpt for some help to make a float4 _color; you never mentioned it so i was really confused
Great tutorial and resources. By the way, some of people including me faced the problem of URP and SRP errors because of different version.
I'm using 2023.3 and Core RP version is 16.0.3, and I fixed from RenderTargetHandle to RTHandle.
But when I applied the Render Feature, the console says Null Ref Exception in
cmd.GetTemporaryRT in Configure public method.
here are some codes what I fixed :
public override void Configure(CommandBuffer cmd, RenderTextureDescriptor cameraTextureDescriptor)
{
//cmd.GetTemporaryRT(tempTexture.id, cameraTextureDescriptor);
cmd.GetTemporaryRT(Shader.PropertyToID(tempTexture.name), cameraTextureDescriptor);
//ConfigureTarget(tempTexture.Identifier());
ConfigureTarget(tempTexture);
ConfigureClear(ClearFlag.All, Color.black);
}
oh... it seems you miss some part of old video where explains how to add texture to effect and bound limits fileds. I mean 3:39 has no fileds for that in inspector and 4:05 you already setting up black box with those fields(at 5th minute of video you show about min/max boundaries but there is still no info about adding texture)
Sorry, the original video was 20 minutes long, so I cut out parts that I thought were boring, which might make it seem like some clips are missing. At 4:05, I think I showed part of the result first and then explained how to achieve it.
need it for the Unity 6, since its quite not well in unity 6
i get this error when i add the effec.cs RenderTargetHandle' is obsolete: 'Deprecated in favor of RTHandle'
im not sure why but can you help me out
Unity often breaks older code with new versions.
Which version do you using?
can I get the fully modified effect shader and effect.cs? Your github project only has the base
You can download it in github. I renamed it to VolumetricClouds.cs
@@paro456 thank you, now another question I have is can I make it get effected by other lights like point lighst or spotlights?
@@officalffagames5144 This cloud does not include volumetric lighting features. You might need to look for more tutorials on this topic to learn.
Very cool result but wish I didn't skip big steps that may confuse beginners like me. You go directly to "let's create this black box" which makes me go "WHAAAAA" :(
🤣🤣I used reverse chronology by showing the result first and then explaining the process. I’ll improve the pacing next time to avoid confusing viewers.
@@paro456 Thank you so much ✨
8:45 lol
hello man i appreciate the hardwork, however this does not work with Unity 6 preview, it says RenderTargetHandle is Deprecated in favor of RTHandle also says ScriptableRender.cameracolorTarget is obsolete,. i tried fixing it, even tried AI but to no avail . do you mind sharing an Effect.cs for unity 6? even if is patreon
I have put a GitHub link in description and uploaded all the files there. You can download them from there.
@@paro456 so that works for Unity 6 too? because when I did it on unity 2022 everything is perfect but Unity 6 nope it gives an RTHandle error like he said
@@checkmate8015 Sorry, I don't have a Unity 6 version of the shader because I'm using an older version.
@@paro456 would you mind making a unity 6 version please, im willing to compensate on the 25th, you can send it after I compensate
@@checkmate8015 I previously made a post-process version. If you need it, I can make some modifications and let you test it.
Hi! Thank you for your video. but can help me with this? This is the error Im getting and I don't know which script is this related to? where is the original method for override?
Assets\Clouds-URP-main\VolumetricClouds.cs(180,26): error CS0115: 'VolumetricClouds.SetupRenderPasses(ScriptableRenderer, in RenderingData)': no suitable method found to override
What version of unity are you using?
@@paro456 2021.3.29f1
@@rehyotaku Can you send me some screenshots on Discord? It'll make it easier for me to help you.
@@paro456 I encountered the same problem, any solution?
@@iliannak27 You can contact me through Discord. paro456d
quick question man. How to make it below the player?
Do you mean to let the cloud follow the player?
@@paro456 no. I want to make floating island. But the material keep rendering pass through of the material.
@@joelkanna3563 Do you have any screenshots, or can you send them via discord? I'm not sure what you mean by pass through of the material.
@@paro456 ok. I'm gonna join the discord.
@@paro456 what is the dc?
Hello Paro, I am a beginner indie developer myself. Can we connect in Discord ?
@@beanladder281 sure!