I tried Unity's new HDRP Water System! The Most Realistic Water?

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] [Music] thank you foreign [Music] [Music] [Music] [Music] [Music] foreign [Music] [Music] I'm so excited to share with you this video it's very nice to see Unity that have developed finally a great water system that is so realistic and cinematic and have a lot of features and all what you need to create realistic cinematic scenes and video games this new water system enables you to add oceans rivers and underwater effects to your game environments you can create realistic waves ripples Foam and More as well as simulate underwater environment with Advanced gaustics refractions and Reflections so in this video I will show you how to install the new water system how to prepare your rental pipeline to render it correctly and give a brief about the most important feature of this water system this is Ramis ultabah from binary lunar and let's get started foreign this video is sponsored by unity if you are watching this video before 2nd of June you are so lucky because it's Unity asset store Spring sale where you can get all those assets for 50 discount and even 70 if you catch them on the Flash Deals so let's go to the unity Hub and go to install and make sure that you installed Unity 20 23.2 which is in the alpha phase currently by the date of recording of this video but if you don't want to install the Alpha version you can wait till June where Unity will release their long-term support version the 2020 2 LTS version that includes a bunch of new features and including this motor system you can find more information about the unity 2022 LDS version in the link down in the description then let's go to Project create new project and choose the 3D hdrp template and name your project I will name it water system tutorial then create project so here we are in unity 2023.2 the Alpha version we can go to window package manager and make sure that we are on the hdrp version 16. this version contains the water system in it and simply to add the water into your scene we right click in the hierarchy we will find a new menu called water have all the elements related to the water system as you can see we have many surfaces the ocean sea or lake we have the pool and the river but for today's video we will focus on creating an ocean the other tools helping adding more elements to the water like the excluder the former foam generator we will go through them quickly later so for now let's create a new ocean and once you place that in the scene you will not note anything rendered it will say for you enable the water system in your hdrp asset to simulate and render water surface in your hdrp project click here open it will automatically pin the project settings and will go to the quality hdrp and will take you to the water section where you need to enable the water but you will not see anything rendered yet in the scene because you need to go to the sky and fog volume it's usually named volume but currently it's configured to render only the sky and the fog we need to add the water rendering to it so we click add override and we type water rendering then we set state to enabled and let it go we can see now the Water started to be rendered in the scene to keep things fun and more focused on the visuals we can download their sample scenes from from the package manager you can go to the hdrp and go to samples go down to water samples and import them the scene the project then we'll go to water samples and select scenes then select the Island the island scene is the island I used or the scene that I used to create the cutscene but with some more modification and replacing models with high quality models also it will help you to enable the appropriate things in the settings to render the water correctly so here it will ask us to render the water which we rented previously render the deformation render the water foam script interactions decals for rendering decals on the surface water screen space Reflections and transparent screen Reflections also volumetric clouds just for beautifying the scene more so here is this water surface that they are created here is the water mask the water mask is masking the waves and everything happened in certain area so for example you can see the water inside this mask it's a circle if we enable it we only render the water or the waves outside that mask inside we don't render tour let's remove the mask you can see the big waves even entering the Shore area let's return this back here the water is settled and not affected by the wave settings you can control the swell how the waves moves and the wind speed to create a windy or stormy ocean how chaotic is your ocean the orientation of the Waves the speed of the current and also the current map to how the waves moves in which direction if you check this it will guide where the waves moves from the light to the dark areas also here you can control the waves there are two levels of waves that form the final shape of the Waves so also controlling those allows you to reach the desired results here we can also enable the ripples which is essential for rendering the water in a good view without it it looks very low quality and adding it gives the realism of the world here you can also control the local wind speed and how chaotic are the ripples then we have the deformation which controls where the water is deformed so here in the water deformers we have the Wave deformer It's a component that you can add to create waves easily and deformation for the Water by right click water deformer you can choose from box box wave short wave sphere and texture so let's create shortwave here it will automatically create the waves for you and they are already created using this scene in this scene so here we have three water wave deformers that creating those nice waves on the shore you can try also other types of deformers you can try the sphere and maybe lowering the amplitude it gives some feelings maybe we can try the box one and it will be nice for creating waterfalls so it's up to your imagine Nations to reach what you want next we have the material of the water for that you can create custom shaders to render the water the way the way you want for this video there is no waves or no form on the shore if you change that to another material that comes with this box to choose the river material this one will gives you a foam at the edges of the ocean and I like that it gives more realism then you can control the smoothness of the water where it starts where its end the refraction how refracted is the view under the water and how far the absorption of water the more absorbed the more transparent then you can control the scattering subsurface scattering to give the waves a Different Light thin surfaces here are another controls for the light the direct light of the water the light the term all of those are nice to be experiment with maximum height override and another great feature is the caustics which give those nice light underwater scene and of course you need to enable underwater to get this nice view underwater without it you don't get this underwater View and here is also the form with it you get a great feeling and forms on the water that gives it a realism in this scene actually we can talk about the excluder the excluder doesn't render something so for example the boat it have water accelerator here to not render the water inside the boat if I move the boat here inside water we can see the water rendered inside but if we add to if the water excluder it will not render the water inside it let's talk about the phone generator so for example here we can add form generator maybe a disk okay for generator so it will render a Disco form wherever you want it's good for rendering form around a game object maybe behind the spot when it moves and finally we can check this fit to water surface burst which keeps any game object at the surface of the water it is okay feature but not good as buoyancy but maybe if you want I can create a full tutorial how to create realistic buoyancy and for the cutting that I created I just replaced the assets we saw with some more high quality assets I'll provide you with the list of the free assets that I used in the description also I improved the quality of the textures to have a better textures and yeah I replace this boat also and here you go the change of the sunlight will affect everything in the scene and of course all the water surface parameters has been animated during the cutscene and go to the game here timeline game here and you can see everything rendered based on the cinemachine timeline and that's it for today's video if you enjoyed what you watched don't forget to hit like subscribe and the notification Bell so you keep updated with high quality content and tutorials we are deeply thankful to our supporters on patreon who keep encouraging us to create such a content if you become a patreon of course you can download all our project files since the beginning of this channel until this day the next video see you soon [Music] [Music] [Music] thank you [Music] [Music] [Music] foreign
Info
Channel: Binary Lunar
Views: 45,380
Rating: undefined out of 5
Keywords: shader graph, water shader, unity shader graph tutorial, Binary Lunar, stylized water shader unity, stylized water shader graph, unity shader graph water refraction, unity water refraction, water foam unity shader graph, water foam unity, unity water foam shader, how to make realistic water unity, unity hdrp water system, unity hdrp water shader, unity hdrp water tutorial, realistic water physics game, water deformation, foam generator, ultra realistic water
Id: xH-9ZEX9n6A
Channel Id: undefined
Length: 14min 5sec (845 seconds)
Published: Tue May 30 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.