-I want to add a water effect as the object or ship passes through the ocean .I did some research and found I had to use deformers but I could not find a water deformation which is there in the documentation . Also I read in another discussion to use decays but I am not able to figure it out on how to use it. Can anyone please guide me on the steps or point to a documentation ?
Hey, water decals documentations has not reached the public documentation for some reasons.
You are right that you should use Water Decal for deformations starting Unity 6 (same for foam generators as well and other stuff). To get you started, you should download the water samples from the HDRP package. (You can download it in the Package Manager when selecting HDRP package in the sample tab).
Those samples are configured to use the water decals (which is the improved way to make anything interact with water). For example you can open the “Pool” scene, go in play mode and press “space” to throw beach balls that spawns water decals onto the water surface, creating a ripple effect.
There’s the same kind of effect in the “Island” scene as well in play mode, you can move the little sailor using the arrow keys, it should leave a trail in the water.
Hope that helps and sorry for the documentation not being up to date, it should be live soon-ish
Hey Chap, I tried out the water samples scenes and they are amazing .I am unclear on few things and I would be grateful if you can help me out .
- The ball and sailor objects causes ripples but the boat object does not cause ripples .Also I remember in the unity demo video ,the boat had a different type of ripple as it passes through the water .It was a bow type in deformation in documentation but I am unable to find it .
- How to increase the size ,shape and magnitude of ripples .Does the ripples push or interact with other objects ?
Hi @chap-unity ,can you help me out with the previous questions? Thanks
Hey, in Unity 6, there’s a new button on the side when using the water decal. When clicking there, you can create a new deformer and foam water decal by default.
By default, it contains the bow wave type deformer you are talking about
However, keep in mind that this bow wave is usually used as a child of a gameobject and is not “reprojected” (like the foam) every frame. So for example, when used on a turning boat, the bow wave will follow the boat rotation (which does not follow what happens IRL).
As for the samples, basically, they are a way to get you started you can modify them any way you like to increase the deformation height, width etc and adapating the “sailor system” to your boat for example.