Planetary Oceans docs
  • HOME
    • Overview
  • GUIDE (v. 1.5)
    • Version differences
    • Getting started
    • Scalability and Precision
    • Configuring ocean material
    • Buoyancy
    • Masking out water
  • Atmospheres & space
Powered by GitBook
On this page

Was this helpful?

  1. GUIDE (v. 1.5)

Masking out water

PreviousBuoyancyNextAtmospheres & space

Last updated 3 months ago

Was this helpful?

There are two ways of masking out water:

  1. Using M_WaterInvalidator material that gets water removed from the volume covered by the mesh it is assigned to. Mesh should be ceiled.

Check the BP_Boat. There's a hull_mask static mesh attached with the M_WaterInvalidator material assigned. Mesh covers the whole volume of the boat hull.

  1. Using distance field mask that is added to the M_PlanetOcean but is unused. Plug the Mask out Water variable into the Opacity Mask input in the root node.

This mask removes water wherever the distance field is negative, meaning it affects the interior of the mesh. Use the Mask Offset parameter to adjust the mask's position. Ensure that the distance field is enabled on the mesh you want to exclude water from.

The distance field method gives you less control as it will be applied for every mesh that has distance field enabled. Whereas the first method, which is based on the material, give you full control over the areas you want to exclude water from.

Water is masked out of the boat hull interior