Interactive Water Shader and Underwater Effect in Unity URP

Поділитися
Вставка
  • Опубліковано 24 кві 2023
  • This is a log of my progress in creating an interactive water shader, currently featuring ripple and underwater effects. However, there are still some issues that need to be resolved, and I hope to gradually address them in the future.
    How to use it?
    • Unity - Water Surface ...
    Github :
    github.com/Parrot222/Unity-Wa...
    My Discord : paro456d
  • Ігри

КОМЕНТАРІ • 54

  • @TheTrietJonas
    @TheTrietJonas Рік тому +2

    I have been watching your videos. Thanks for sharing useful knowledge!🎉😊

  • @GianniLaschi
    @GianniLaschi Рік тому +3

    Awesome FX !!!

  • @Jha-s-kitchen
    @Jha-s-kitchen Рік тому +1

    You videos are of awesome quality!
    Want a tutorial for the character+camera system you are using

  • @wilk2727
    @wilk2727 Рік тому +9

    Have you thought about making water paint textures beneath it as "wet"?
    This would be pretty useful when making larger bodies of water as backing off waves would leave wet sand for example (possibly to dry out after some time?) to make it wet again soon.
    I think no extra textures would be needed but just changing the contrast trough shader, am I right?

    • @paro456
      @paro456  Рік тому +4

      That's a great idea!

  • @CashTheTrash
    @CashTheTrash Рік тому +3

    The shader looks amazing. You should make the gravity on the player decrease the deeper into the water you go. And make the floaty objects less bouncy on the water, you could try making it apply less force based on how shallow it is in the water. Eg. if the object is fully submerged it applies full force, if it is half submerged it applies half force etc. Great video.

    • @paro456
      @paro456  Рік тому +3

      Thank you for your suggestion! I will work on improving this water surface shader in the future.

  • @balajirao7400
    @balajirao7400 Рік тому +2

    the demo you provided on giot doesnt have a dll file it fails initializing, although great work hats off!!

  • @GamingWithAJ175679
    @GamingWithAJ175679 Рік тому +1

    Hello. I've been following your channel for a while now. The shader you've come up with is simply awesome. My question to you is, will it be possible to have the ripples and trails vertex displaced? So that the water is more dynamic and we can have realistic effects like bullets and explosions create realistic ripples like in red dead redemption 2?

    • @paro456
      @paro456  Рік тому +1

      There is a technique called tessellation in shaders that allows for subdividing each face of a model into smaller vertices. This enables the creation of more detailed animations, such as ripples or waves. However, tessellation is only supported in the HDRP pipeline. As for achieving water splash effects, you can utilize the Visual Effect Graph.

    • @GamingWithAJ175679
      @GamingWithAJ175679 Рік тому

      @@paro456 Alright....Thanks!

  • @dencesar8602
    @dencesar8602 Рік тому +1

    Amazing progress! I see you disabled reflections vs your water tutorial. Does kMirror also drops FPS for you dramatically?

    • @dencesar8602
      @dencesar8602 Рік тому +1

      btw, rendering camera for ripples also drops FPS by 100-150

    • @paro456
      @paro456  Рік тому +1

      @@dencesar8602 That's right. Because having two cameras renders all objects in the scene twice, it can significantly impact the game's performance. Therefore, I'm currently researching a technique called Screen Space Reflections to achieve the water surface reflection effect.

  • @StudioSquared
    @StudioSquared 5 місяців тому +2

    One big thing I noticed is that the water receives shadows, I think turning that off would look a lot better as its translucent so the shadow goes through it. Other than that it looks great! May I ask what technique you used to add the ripple and bobbing effect when something hits the water?

    • @paro456
      @paro456  5 місяців тому +2

      I'll fix the shadow problem on the water, and you can check out my ripples tutorial on my channel. Other water effects use particle effects.

  • @PuglsYT
    @PuglsYT Рік тому +1

    Maybe make a vr compatible version

  • @MrElfVHS
    @MrElfVHS Рік тому +1

    I was just wondering if you would be so kind and make a tutorial on how to properly install this addon, because I have been stumbled upon this issue for at least an hour now, not being succesful at installing it. Thank you for your time. By the way, the water shader indeed looks very good.

    • @paro456
      @paro456  Рік тому +1

      Sure, I should be able to make a video explaining how to use it in the next few days.

    • @MrElfVR
      @MrElfVR Рік тому +1

      @@paro456Thank you😊

  • @MadMarcWinnipeg
    @MadMarcWinnipeg Рік тому +2

    Hi, Question:
    How's this project comming along? Do you have a video on how to install and use it?
    Thanx
    Marc :)

    • @paro456
      @paro456  Рік тому +2

      I should be uploading a new water shader tutorial video in the next few days.

    • @MadMarcWinnipeg
      @MadMarcWinnipeg Рік тому +1

      @@paro456 That's great! Looking forward to it. I installed the GitHub project files into my project and it worked great. Just trying to figure out how to expand on the size of the body of water and still get the ripple effect. I tried scaling it up and I also tried copy pasting multiple bodies of water together. Both ways interfered with the ripple effect so far. Is there a way to do it?
      Thanx
      Marc :)

    • @MadMarcWinnipeg
      @MadMarcWinnipeg Рік тому +1

      @@paro456 I have vehicles and aircrafts in my game as well that you can enter/exit. So I made a copy of the player's script that came with your project files and emoved everything from it that moved the player around. I was able to apply that to both the player and all the vehicles. I wrote some code to switch the scripts on and off when getting in and out of vehicles. It works really well. I just had to create an if statement with that bool and for the vehicles I replaced getting the float from the character controller to just numbers. Yeah, nice and clean your project files are. Pretty stoked about it two.
      Good job man.

  • @NeroForte_
    @NeroForte_ 7 місяців тому +1

    URP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! THANKS

  • @FOLDIK_UA
    @FOLDIK_UA 4 місяці тому +1

    😯👌

  • @arpan9133
    @arpan9133 11 місяців тому +1

    I need a tutorial by you :)

  • @godtierslayer3046
    @godtierslayer3046 10 місяців тому

    How did you achieve a underwater effect for the camera for viewing the scene, once it was under water / sub surface?

    • @godtierslayer3046
      @godtierslayer3046 10 місяців тому

      Anyway to run a camera transition while it goes in and out from the water? Like a water running down the camera lense transition?

    • @paro456
      @paro456  10 місяців тому

      I originally had a video about underwater effects, but I hid it because I didn't think the methods in the video were good. I'll upload a new video once I find a better method.

  • @itzdrify5678
    @itzdrify5678 Рік тому

    Does it work on hdrp?

  • @BahaaSoliman
    @BahaaSoliman 7 місяців тому +1

    hey man, would you be okay with me using your water shaders in my own game? not sure how, but I'll try figure it out :)

    • @paro456
      @paro456  7 місяців тому +2

      sure! let me know when your game trailer is released. I'm looking forward to it!

    • @BahaaSoliman
      @BahaaSoliman 7 місяців тому +1

      @@paro456 thanks man, appreciate it. Whenever a trailer is ready, you'll know 😄 (for now, it's a programming disaster 😅)

  • @mohsaniqbal322
    @mohsaniqbal322 Рік тому

    Bro i didn't find Rar file link .plzz give me

  • @coregorillatag
    @coregorillatag Рік тому

    How do you make this work with Gorilla Tag locomotion? I can't get it to work.

    • @paro456
      @paro456  Рік тому

      Maybe you could teach me how to use Gorilla Tag locomotion, so I can help you create shaders for monke vr game.

    • @coregorillatag
      @coregorillatag Рік тому

      @@paro456 Use B.Awesome's tutorial for a simple Gorilla Tag fangame.
      Im not sure if you have a VR headset yet but once you do just use his tutorial and you should be able to figure it out.

  • @antonpiven7941
    @antonpiven7941 Рік тому +1

    How to do it on HDRP? (amazing work!)

    • @paro456
      @paro456  Рік тому +1

      You can find tutorials on water surface shaders on my channel.🙂

    • @antonpiven7941
      @antonpiven7941 Рік тому

      @@paro456 will it be HDRP?

    • @antonpiven7941
      @antonpiven7941 Рік тому

      @@paro456 It just doesn't work on HDRP😅

  • @ItsMrDragon
    @ItsMrDragon Місяць тому

    How do i get this shader?

    • @paro456
      @paro456  Місяць тому

      Description

    • @ItsMrDragon
      @ItsMrDragon Місяць тому

      @@paro456 wheres the download?

    • @ItsMrDragon
      @ItsMrDragon Місяць тому

      I mean what file do I download

  • @mohsaniqbal322
    @mohsaniqbal322 Рік тому

    How can i download this file ?

    • @paro456
      @paro456  Рік тому +1

      You can find the project link in the video description.

  • @victor.novorski
    @victor.novorski Рік тому +2

    I'm guessing not mobile friendly

    • @piyushguptaji402
      @piyushguptaji402 Рік тому +1

      it should be, i mean its not actually simulating water physics, its just some math and vertex displacement

    • @victor.novorski
      @victor.novorski Рік тому +1

      @@piyushguptaji402 Cool. I'll check it out then.

  • @Bear01X
    @Bear01X Рік тому

    Why it doesn't work with vr?

  • @Bear01X
    @Bear01X Рік тому +1

    vr please

  • @Bear01X
    @Bear01X Рік тому

    Make it for vr