Cinematics and Sequencer
DRW adds two tracks to Sequencer:
- DRW Water Time drives the water clock from the sequence, so a given frame always shows the same waves, whether you scrub in the editor, play in PIE or render with Movie Render Queue.
- DRW Ocean Preset changes the ocean’s wave and visual preset over time, with cross-fades.
While a DRW Water Time track is in control, floating objects are also posed from the water time, so every replay and every scrub gives the same result.
For how the water clock works in general (and in multiplayer), see The water clock.
Add the tracks
Section titled “Add the tracks”- Open your Level Sequence.
- Click + Track and pick DRW Water Time or DRW Ocean Preset.
- Each sequence takes one track of each kind. The menu entry does nothing if the sequence already has that track.
A new DRW Water Time track comes with one section that covers all time. A new DRW Ocean Preset track comes with one section over the sequence’s playback range.
DRW Water Time track
Section titled “DRW Water Time track”The track sets the water time from the playhead. Its section has three values:
| Value | Where | Default | What it does |
|---|---|---|---|
| Start Time | Section properties (right-click the section, Properties), under Water Time | 0 s | Water time at the start of the section, in seconds. Change it to get a different wave pattern for the same shot. |
| Play Rate | Keyable channel under the track | 1 | How fast water time runs against sequence time. 1 = normal, 0.5 = half speed, 0 = frozen water. Key it for slow motion or a freeze-frame. |
| Time Offset | Keyable channel under the track | 0 s | Seconds added on top at the current frame. Key it to shift the waves at a given point without changing the rate. |
Water time starts at Start Time where the section starts and runs at Play Rate from there, with Time Offset added on top. With the default section that covers all time, the count starts at frame 0. If you give the section a start frame, it starts there.
Every DRW water system follows this clock: the ocean, rivers, the shoreline surf, foam and water surface queries.
What scrubbing does
Section titled “What scrubbing does”Because the water time comes from the playhead alone, scrubbing jumps straight to the waves of that frame. When water time jumps (scrubbing backward, or forward by more than a few frames):
- Foam is rebuilt. The ocean recreates the last Foam Pre Roll Seconds of foam (category DRW Foam, advanced, default 2 s, 0 to 10 s, 0 = off; shown while Enable Foam Accumulation is on), so the foam looks settled instead of starting from nothing.
- Ripples and wakes are cleared and build up again from the new frame.
- Cable components (in a running game, not in the editor) start straight between their ends again and settle. While water time is stopped they freeze.
While the sequence is paused, water time stands still and the water freezes.
When the track stops
Section titled “When the track stops”When the section stops evaluating (the sequence stops, or the playhead leaves a section that has an end), the water goes back to its previous clock: world time, or your own clock if you call Set External Time. The waves jump to that clock’s pattern at that moment.
Water time sources
Section titled “Water time sources”The water clock can be driven three ways. Get Time Source reports which one is in control.
| Source | Driven by | Priority |
|---|---|---|
| Sequencer | A DRW Water Time track (or, in networked PIE, the Sequencer editor; see below) | Highest |
| External | Your own clock, through Set External Time | Used when no Water Time track is in control |
| World | The world’s time | The default |
On a multiplayer client, the server’s clock always wins, whatever drives it on the server. A Water Time track that plays only on a client does not move that client’s water. See The water clock.
These Blueprint nodes are on the DRW Water Time Subsystem (a world subsystem; get it with its subsystem node in any Blueprint):
| Node | What it does |
|---|---|
| Get Water Time | Current water time in seconds. |
| Get Water Time Rate | How fast water time is running against world time, eased: 1 = normal, 0 = stopped. It reads between 0 and 1. |
| Get Time Source | World, Sequencer or External (enum). |
| Set External Time | Drives the water from your own clock, such as a simulation or a replay. The water stays at the last value you set, so call it every frame. In multiplayer, call it on the server; clients follow the server. |
| Clear External Time | Returns the water to world time. |
DRW Ocean Preset track
Section titled “DRW Ocean Preset track”Each section of this track holds one Preset (an Ocean Preset data asset that combines a Wave Data and a Visual Data asset). The section shows the preset’s name, or No preset when empty. Set it in the section properties under Ocean Preset.
- Add a DRW Ocean Preset track.
- Pick a Preset for the first section.
- Right-click the track and choose Add Preset Section to add a 5 second section at the playhead, then pick its preset.
- Overlap two sections to cross-fade between their presets. Overlapping sections on the same row ease into each other automatically; adjust the overlap to set the length of the cross-fade.
How the blend works:
- At any moment the two latest active sections count: the one that starts later fades in over the other by their easing. When two sections start on the same frame, the one on the lower row (further down the track) counts as the later one. Older sections underneath are ignored.
- A single section blends from the look the ocean had before the track started, by its easing. Ease the last section out to fade back to that look smoothly.
- A preset with no Wave Data (or no Visual Data) leaves that part as it was.
- The blend comes from the sections. The preset’s own Default Wave Blend Duration and Default Visual Blend Duration are not used by the track.
- While the track runs, the ocean’s own timed blends (from Set Ocean Preset, Set Visual Data and similar nodes) are paused.
- The track affects the first DRW ocean in the level.
What returns when the track stops
Section titled “What returns when the track stops”Sections restore the ocean when they finish (their When Finished is Restore State). In a gap between sections and after the last one, the ocean goes back to the waves, look and assigned preset assets it had when the track started. To avoid a visible snap, overlap sections across gaps and ease the last one out.
Ocean presets do not include the ocean’s underwater settings. Key those with property tracks (next section).
Keying ocean settings directly
Section titled “Keying ocean settings directly”Many ocean properties can be keyed with an ordinary property track on the ocean actor: among them Wind Speed, Wind Direction, Swell Height, Choppiness, Absorption and Absorption Color, most foam settings, the four underwater exposure settings, and the underwater Ambient Strength, Sky Color, Caustic Strength, Shaft Strength, Scattering and Anisotropy. The shipped Example sequence keys Wind Speed.
In the editor viewport, keyed wave settings change the waves at once. In a running game, and so in PIE and Movie Render Queue renders, the waves morph into new wave settings over Wave Change Blend Time (category DRW Ocean Spectrum, advanced, default 1 s, 0 to 10 s), so the render can trail the editor preview where wave settings are keyed. Set it to 0 on the ocean to make keyed wave changes show at once in renders too.
Floating objects in a sequence
Section titled “Floating objects in a sequence”While a DRW Water Time track is in control, floating rigid bodies stop simulating and are posed from the water time instead, so they ride the waves the same way on every replay and every scrub.
What gets posed:
- Bodies with a DRW Buoyancy component whose Follow Water In Sequencer is on (the default).
- Only rigid bodies. Skeletal meshes (ragdolls) keep simulating, and they freeze in place while water time is stopped. Characters with Playable Character on are left alone.
- Only where the actor has authority: the server for replicated actors, and the editor while you scrub.
How a posed body moves:
- The water sets its height, pitch and roll, relative to its pose when the track started. X, Y and yaw stay with whatever else moves it, such as its own Transform track. Key the boat’s path, and DRW makes it ride the waves along that path.
- A body that starts above the water falls in and settles. A body too heavy to float sinks.
- A body never goes below its resting pose on whatever was right below it at the start (seabed, a deck, a cave floor) and rides along when that support moves.
- Dry spaces still count: cargo in a hull with a Surface Mask does not float, and a body that has lost its buoyancy to a Water Masking Actor falls instead of floating.
- Physics constraints on posed bodies, to another posed body or to something fixed such as a dock, keep them within their linear limit in height.
- When the follow ends (the track stops), physics resumes from rest.
Settings, on the DRW Buoyancy component under DRW Buoyancy|Sequencer. All except the first can be keyed in Sequencer:
| Setting | Default | Range | What it does |
|---|---|---|---|
| Follow Water In Sequencer | On | Poses this body from the water time while a Water Time track is in control. | |
| Sequencer Follow Weight | 1 | 0 to 1 | How much the water drives the body. 0 leaves it to its own transform keys. Key it to hand a boat from the water to an animated move and back. |
| Sequencer Draft Offset | 0 cm | slider -500 to 500 cm | Extra depth the body sits at in the water. Negative lifts it. |
| Sequencer Tilt Response | 1 | 0 or more (slider to 3) | How strongly the body tilts with the waves. 0 keeps its start attitude. |
| Sequencer Bob Strength | 1 | 0 or more (slider to 3) | How strongly the body rises and falls with the waves. 0 holds its start height. |
In the editor the same pose previews while you scrub. When the track stops, before the level is saved and before PIE starts, bodies go back to their saved pose; the preview then picks up where it was. If you move a body in the editor while previewing, it keeps the new X, Y and yaw, and the water keeps control of height and tilt.
Previewing in the editor
Section titled “Previewing in the editor”Animate In Editor on the ocean (category DRW Ocean Spectrum, default off, shown while Enable FFT is on) animates the waves in the editor viewport.
- While a sequence with a DRW Water Time track is open in Sequencer, the waves follow the playhead even with Animate In Editor off.
- Only Animate In Editor also keeps the ocean’s detailed area centered on the editor camera as it moves. Turn it on if you fly the editor camera around while previewing a shot.
- The underwater look does not show in the editor viewport. Check underwater shots in PIE or in a render. See Underwater.
Rendering with Movie Render Queue
Section titled “Rendering with Movie Render Queue”- Add a DRW Water Time track to the sequence, so each rendered frame shows the waves of that frame, the same as the Sequencer preview.
- Render as usual. Renders start a play session, so the underwater look is added there like in any game. When the render’s player controller has no pawn (the usual case), the controller carries the underwater look itself, seen through the sequence’s camera cuts.
- On the first rendered frame, and after any time jump, the ocean rebuilds Foam Pre Roll Seconds of foam first, so the first frame starts with settled foam.
Networked Play In Editor
Section titled “Networked Play In Editor”During networked PIE, scrubbing in the Sequencer editor also drives the PIE server: the server and every client show the waves and the Ocean Preset blend of the frame under the playhead. When the Water Time track stops, the server returns to its own clock.
The Example sequence
Section titled “The Example sequence”The plugin ships Example in its Sequence folder. It is made for ExampleMap (open that map first) and contains:
- a DRW Water Time track,
- a Wind Speed property track on the ocean,
- a Transform track that moves a
BP_Runabout, which rides the waves along its keyed path.
Use it as a starting point for your own shots.