How to set up the new Water System

I’ve been trying to find out how to set up the new water system that came initially with 2022.2.0a9. It wasn’t that straightforward, so I thought I’d make a post for others.

  • Project Settings > Quality > HDRP > Rendering > Water

  • Project Settings > Graphics > HDRP Global Settings > Water Rendering

  • Hierarchy > Water Surface > Ocean

8024375--1033718--s4.png

In case everything is white like it was for me, adjust the Exposure in your Sky and Fog Volume.

Looks like this then:

17 Likes

In case nothing is showing with all those steps, make sure that Water is enabled under
Graphics > HDRP Global Settings, Frame Settings (Default Values) in the “Rendering” Foldout

Also, for the Water Rendering override, you can just add it in a volume to your scene like any override.
You don’t HAVE to use the default volume profile asset in Graphics > HDRP Global Settings.

15 Likes

Is the water system also compatible with Unitys path-tracer?

Nope, sorry :slight_smile:

How do you add this into 2022.1.7f1 manually?
Is there a specific preview package we can add to start working with it before 2022.2.1 is released?

Hello,
I’ve followed the above and still have no water rendering.
You mention Project Settings > Quality > HDRP > Rendering > Water
There is no option for CPU

all other options regarding water are ticked.

Sys spec : ryzen 5 3600 CPU
AMD RX480 8GB GPU
using windows 10 home edtion.

Any help would be appreciated thanks.

If you already checked, Frame Settings, HDRP asset, Volume Override (which technically should be enough), you can try two other things.

  • Try reimporting HDRP (Right click on Packages/High Definition RP folder and reimport), sometime some shader can be corrupted and prevent some effect to be working properly
  • Close project, delete library folder and re-open.

I am using Unity 2022.2 beta, and doesnt work, i have all water options activated, i create an Water surface object and no water is rendered. I dont have some of the options shown, also can’t find anywhere the Volume override mentioned in last post. I reinstalled hdrp as mentioned in last post and that just made the project not work at all, there is not global settings for hdrp and get lot of errors.

I removed the project, created a new hdrp project and just activated water system in hdrp global and in quality hdrp, then created a Water surface object of ocean type, pressed play and no water is rendered

did you added Water Rendering to your global volume ?

8398362--1108698--upload_2022-8-29_8-28-51.png

Yes, found the problem some days ago, the problem is that besides that you need to add water as one more volumetric effect ins hdrp settings

1 Like

i followed all your steps and i also didnt get a water surface only the icon.

then i added a global volume to the project, and add the water component checked all the boxes.
and yes there is now visual water

anyone knows how too get buoyance on like boats? like they move with the waves?
i know there is 2d buoyance. but i couldnt anything like this for the new water system.

which looks really good. with the caustics and underwater settings.

Depending on which version you are, the WaterSurface script, there’s an API to query the projected position of the current water surface at a specific position (basically to make an object stick to the surface).
After that, it’s up to users to create the buoyancy system depending on their needs !

Depending on which version you are, the WaterSurface script, there’s an API to query the projected position of the current water surface at a specific position (basically to make an object stick to the surface).
After that, it’s up to users to create the buoyancy system depending on their needs

Im on 2022.0b4 beta.

too bad it isnt a physic droppdown option.
like you have with the 2d Buoyancy

Then you should be able to query your WaterSurface with this function FindWaterSurfaceHeight()

Yep, for now it’s completely independent on the Physics system.
This can be revisited in the future but there’s still many important work to do on the water system before that.

@chap-unity Is there some integration or instruction about how to use rivers with the unity splines?

Sadly, no. For now water system is not integrated with any other system. You have to feed it custom geometry if you want something specific.

I hope the unity splines package gets integrated into water and terrain systems like unreal. This is important, a lot of users would love that.

3 Likes

Is it expected that water does not work when MSAA is enabled (forward rendering)? I have spent too much time figuring out why water is not rendering and MSAA was the culprit. Is there any way to get water + MSAA? (Unity 2022.2.0b8)