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 - Ігри
I have been watching your videos. Thanks for sharing useful knowledge!🎉😊
Awesome FX !!!
You videos are of awesome quality!
Want a tutorial for the character+camera system you are using
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?
That's a great idea!
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.
Thank you for your suggestion! I will work on improving this water surface shader in the future.
the demo you provided on giot doesnt have a dll file it fails initializing, although great work hats off!!
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?
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.
@@paro456 Alright....Thanks!
Amazing progress! I see you disabled reflections vs your water tutorial. Does kMirror also drops FPS for you dramatically?
btw, rendering camera for ripples also drops FPS by 100-150
@@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.
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?
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.
Maybe make a vr compatible version
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.
Sure, I should be able to make a video explaining how to use it in the next few days.
@@paro456Thank you😊
Hi, Question:
How's this project comming along? Do you have a video on how to install and use it?
Thanx
Marc :)
I should be uploading a new water shader tutorial video in the next few days.
@@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 :)
@@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.
URP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! THANKS
😯👌
I need a tutorial by you :)
How did you achieve a underwater effect for the camera for viewing the scene, once it was under water / sub surface?
Anyway to run a camera transition while it goes in and out from the water? Like a water running down the camera lense transition?
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.
Does it work on hdrp?
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 :)
sure! let me know when your game trailer is released. I'm looking forward to it!
@@paro456 thanks man, appreciate it. Whenever a trailer is ready, you'll know 😄 (for now, it's a programming disaster 😅)
Bro i didn't find Rar file link .plzz give me
How do you make this work with Gorilla Tag locomotion? I can't get it to work.
Maybe you could teach me how to use Gorilla Tag locomotion, so I can help you create shaders for monke vr game.
@@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.
How to do it on HDRP? (amazing work!)
You can find tutorials on water surface shaders on my channel.🙂
@@paro456 will it be HDRP?
@@paro456 It just doesn't work on HDRP😅
How do i get this shader?
Description
@@paro456 wheres the download?
I mean what file do I download
How can i download this file ?
You can find the project link in the video description.
I'm guessing not mobile friendly
it should be, i mean its not actually simulating water physics, its just some math and vertex displacement
@@piyushguptaji402 Cool. I'll check it out then.
Why it doesn't work with vr?
vr please
Make it for vr