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

ความคิดเห็น • 40

  • @paro456
    @paro456  5 หลายเดือนก่อน +5

    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

  • @EpicGamer63637
    @EpicGamer63637 2 หลายเดือนก่อน +1

    This is super cool :)

  • @MonstrumReborn
    @MonstrumReborn 3 หลายเดือนก่อน +1

    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

  • @leesanghee-ho3en
    @leesanghee-ho3en 7 วันที่ผ่านมา

    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);
    }

  • @BorisChuprin
    @BorisChuprin 4 หลายเดือนก่อน +1

    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)

    • @paro456
      @paro456  4 หลายเดือนก่อน +1

      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.

  • @clashface
    @clashface 2 วันที่ผ่านมา

    need it for the Unity 6, since its quite not well in unity 6

  • @CaosCreativeStudio
    @CaosCreativeStudio 12 วันที่ผ่านมา

    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

    • @paro456
      @paro456  12 วันที่ผ่านมา

      Unity often breaks older code with new versions.
      Which version do you using?

  • @officalffagames5144
    @officalffagames5144 2 หลายเดือนก่อน +1

    can I get the fully modified effect shader and effect.cs? Your github project only has the base

    • @paro456
      @paro456  2 หลายเดือนก่อน

      You can download it in github. I renamed it to VolumetricClouds.cs

    • @officalffagames5144
      @officalffagames5144 2 หลายเดือนก่อน

      @@paro456 thank you, now another question I have is can I make it get effected by other lights like point lighst or spotlights?

    • @paro456
      @paro456  2 หลายเดือนก่อน

      @@officalffagames5144 This cloud does not include volumetric lighting features. You might need to look for more tutorials on this topic to learn.

  • @aritosoto
    @aritosoto 24 วันที่ผ่านมา +1

    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" :(

    • @paro456
      @paro456  23 วันที่ผ่านมา +2

      🤣🤣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.

    • @aritosoto
      @aritosoto 23 วันที่ผ่านมา +1

      @@paro456 Thank you so much ✨

  • @MarioTV69
    @MarioTV69 5 หลายเดือนก่อน +3

    8:45 lol

  • @JoeShmoe-ii1th
    @JoeShmoe-ii1th 3 หลายเดือนก่อน

    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

    • @paro456
      @paro456  3 หลายเดือนก่อน

      I have put a GitHub link in description and uploaded all the files there. You can download them from there.

    • @checkmate8015
      @checkmate8015 3 หลายเดือนก่อน

      @@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

    • @paro456
      @paro456  3 หลายเดือนก่อน

      @@checkmate8015 Sorry, I don't have a Unity 6 version of the shader because I'm using an older version.

    • @checkmate8015
      @checkmate8015 3 หลายเดือนก่อน

      @@paro456 would you mind making a unity 6 version please, im willing to compensate on the 25th, you can send it after I compensate

    • @paro456
      @paro456  3 หลายเดือนก่อน

      @@checkmate8015 I previously made a post-process version. If you need it, I can make some modifications and let you test it.

  • @rehyotaku
    @rehyotaku 4 หลายเดือนก่อน

    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

    • @paro456
      @paro456  4 หลายเดือนก่อน

      What version of unity are you using?

    • @rehyotaku
      @rehyotaku 4 หลายเดือนก่อน

      @@paro456 2021.3.29f1

    • @paro456
      @paro456  4 หลายเดือนก่อน

      @@rehyotaku Can you send me some screenshots on Discord? It'll make it easier for me to help you.

    • @iliannak27
      @iliannak27 หลายเดือนก่อน

      @@paro456 I encountered the same problem, any solution?

    • @paro456
      @paro456  23 วันที่ผ่านมา

      @@iliannak27 You can contact me through Discord. paro456d

  • @joelkanna3563
    @joelkanna3563 4 หลายเดือนก่อน

    quick question man. How to make it below the player?

    • @paro456
      @paro456  4 หลายเดือนก่อน

      Do you mean to let the cloud follow the player?

    • @joelkanna3563
      @joelkanna3563 4 หลายเดือนก่อน

      @@paro456 no. I want to make floating island. But the material keep rendering pass through of the material.

    • @paro456
      @paro456  4 หลายเดือนก่อน

      @@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.

    • @joelkanna3563
      @joelkanna3563 4 หลายเดือนก่อน

      @@paro456 ok. I'm gonna join the discord.

    • @joelkanna3563
      @joelkanna3563 4 หลายเดือนก่อน

      @@paro456 what is the dc?

  • @beanladder281
    @beanladder281 หลายเดือนก่อน

    Hello Paro, I am a beginner indie developer myself. Can we connect in Discord ?

    • @paro456
      @paro456  หลายเดือนก่อน

      @@beanladder281 sure!