Water Bodys
Oceanology provides two main types of Water Body Actors to create realistic aquatic environments: BP_OceanologyLake
and BP_OceanologyInfiniteOcean
. While they work similarly to Water Body Actors in Unreal Engine, Oceanology focuses on optimized solutions for lakes and oceans without including specific actors for rivers or channels. This guide explains how to use these actors and configure different elements such as audio, buoyancy, and water extension to achieve immersive environments.
Types of Water Body Actors in Oceanology
-
BP_OceanologyLake
BP_OceanologyLake
is designed to create lakes and limited water bodies.- It includes predefined settings for wave and underwater sounds, which you can adjust according to your project needs.
- It also supports buoyancy, allowing objects to realistically interact with water when the
OceanBuoyancyComponent
is added.
-
BP_OceanologyInfiniteOcean
BP_OceanologyInfiniteOcean
is designed to generate an endless ocean using origin shifting technology. This ensures an infinite appearance without the performance cost of a huge static mesh.- This actor includes default underwater audio, but for coastal wave sounds, users must manually place instances of
BP_OceanWaveAudio
. - The
BP_OceanologyInfiniteOcean
does not use splines to define its shape, unlike Unreal Engine Water Body Actors, which include spline-based configurations for rivers and channels.
Configuring and Using Water Body Actors
-
Add Water Body Actor to Your Scene
- Drag and drop the
BP_OceanologyLake
orBP_OceanologyInfiniteOcean
into your scene as per your project requirements. - If you want to create a lake or limited water body, use
BP_OceanologyLake
. For an infinite ocean, chooseBP_OceanologyInfiniteOcean
.
- Drag and drop the
-
Configure the OceanologyManager
- If you are using
BP_OceanologyInfiniteOcean
, it is recommended to add anOceanologyManager
to your scene. This component handles the heightmap texture in real time, which is essential for effects like shoreline foam and avoiding overlaps with terrain.
- If you are using
-
Audio Configuration
BP_OceanologyLake
includes audio settings for both wave and underwater sounds. Adjust the attenuation settings for appropriate behavior regarding distance and sound intensity.- For
BP_OceanologyInfiniteOcean
, wave audio must be manually added usingBP_OceanWaveAudio
. Place these actors along the shore for realistic sound.
-
Buoyancy Configuration
- To make objects float on the water surface, add an
OceanBuoyancyComponent
to the actors you want to make buoyant. - Configure the pontoons in the component to define how the object will behave while floating. Water Body Actors in Oceanology interact directly with these pontoons to simulate realistic buoyancy behavior.
- To make objects float on the water surface, add an
-
Using QuadTree Tessellation
- For large water bodies like the Infinite Ocean, Oceanology uses a QuadTree Tessellation system to optimize performance. Levels of detail (LOD) are dynamically adjusted depending on the player's distance, providing high quality near the character and lower quality at a distance.
Example: Creating a Lake and an Infinite Ocean
Create a Lake
- Drag the
BP_OceanologyLake
into the scene. - Adjust the size as desired and configure the audio attenuation for wave and underwater sounds.
Create an Infinite Ocean
- Drag the
BP_OceanologyInfiniteOcean
into your scene. - Place the OceanologyManager and configure the bounds so the ocean interacts correctly with the terrain.
- Add
BP_OceanWaveAudio
along the shores where you want wave sounds to play. - Configure the Infinite options in the actor to control whether the ocean should be infinite or limited.
Summary
The Water Body Actors in Oceanology allow you to create realistic and customizable water bodies for your Unreal Engine projects. Whether you are creating a limited lake or an infinite ocean, the BP_OceanologyLake
and BP_OceanologyInfiniteOcean
actors, along with the OceanologyManager
and other components, offer powerful tools for generating immersive and high-performance aquatic environments.
For more examples and detailed assistance, join our Discord community, where you can find additional support and tips to make the most of the Water Body Actors in Oceanology.