> For the complete documentation index, see [llms.txt](https://docs.shadersource.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shadersource.io/assets-and-plugins/ocean-tool-2/tutorials/sequencer-and-movie-render-queue.md). Agents can also search and read this documentation through its [MCP server](https://docs.shadersource.io/~gitbook/mcp).

# Sequencer and Movie Render Queue

Render the ocean with Sequencer and Movie Render Queue - the same waves on every take, at the highest quality the ocean has.

Left to itself, the ocean runs on the world's clock: play a sequence twice and the waves are in a different place each time. This tutorial ties the ocean to your sequence, so a frame looks the same on every take, and switches it to its offline quality for the render.

![A rendered shot of the Island's surf](https://2855220899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk51ACJUA5E3mZvLb9h%2Fuploads%2FbAR9Heg7ID0xblfl657C%2Fseq_hero.webp?alt=media)

|                  |                                                                        |
| ---------------- | ---------------------------------------------------------------------- |
| **Time**         | About 10 minutes                                                       |
| **You need**     | A level with an ocean and a Level Sequence with a camera               |
| **You will use** | Sequencer, **Simple > Sea**, **Simple > Perf**, and Movie Render Queue |

## Part 1 - Tie the ocean to the sequence

{% stepper %}
{% step %}

### Add the ocean to the sequence

Open your Level Sequence. Drag the **Ocean** actor from the Outliner into Sequencer (or use **+ Track > Actor To Sequencer**).
{% endstep %}

{% step %}

### Add an Ocean Time track

On the ocean's row in Sequencer, press **+ Track** and choose **Ocean Time**.

While that track plays, the sequence is the ocean's clock: scrub the timeline and the waves scrub with it; play it twice and they are identical.
{% endstep %}

{% step %}

### Choose where the waves start, and how fast they run

Select the track's section and look at its properties:

* **Start Time** - the ocean's time, in seconds, at the start of the section. Change it to pick a different moment of the sea for the same shot.
* **Play Rate** - how fast the ocean's time runs against the sequence's. 0.5 is half-speed slow motion; 0 freezes the water.

For anything more - a speed ramp, a freeze, a jump - key the section's **Ocean Time** channel. Its curve is the ocean's time in seconds.
{% endstep %}

{% step %}

### Make the foam and spray follow too

By default only the waves follow the track. Foam, wet sand, spray, wakes and water on the lens build up over time, so they carry on from wherever they were.

On **Simple > Sea**, in the **Sequencer** category, tick **Deterministic in Sequencer**. Those effects now follow the track's clock as well, and are simulated again whenever the track jumps - at a cut, or when you scrub - so a frame looks the same whether you played to it or jumped to it.

**Warm-up after a jump** is how many seconds of that history are simulated again at each jump. Six is the default; raise it if foam looks thin on the first frames after a cut in a heavy sea.

![Sea > Sequencer: Deterministic in Sequencer and the warm-up](https://2855220899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk51ACJUA5E3mZvLb9h%2Fuploads%2FhoAAQjy6iLrhiN7qm6pU%2Fseq_sea_rows.png?alt=media)
{% endstep %}
{% endstepper %}

{% hint style="info" %}
**When the track stops, the ocean goes back to the world's clock.** Make the Ocean Time section as long as the shot.
{% endhint %}

## Part 2 - Switch to offline quality

{% stepper %}
{% step %}

### Tick Offline rendering

On **Simple > Perf**, under **Quality**, tick **Offline rendering**.

While it is on, the ocean ignores the engine's scalability and uses its best:

* **Cinematic** mesh and shading.
* No grazing-angle coarsening, and the full mesh at the coast and at the waterline. (The quality scales still apply.)
* The per-pixel shoreline (on DirectX 12 with Shader Model 6).
* Extra mesh at the waterline while the underwater view is on.
* The wet sand and traced caustics updated every frame.

Turning it off restores the settings you had.

![Perf > Quality: Offline rendering](https://2855220899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk51ACJUA5E3mZvLb9h%2Fuploads%2FqIiEvsAvs9PzzrKcI5ei%2Fseq_offline.png?alt=media)
{% endstep %}

{% step %}

### Or key it

**Offline rendering** can be keyed in Sequencer like any other property of the ocean: add it as a track on the ocean's row and key it on for the range you render. The level then stays at play quality while you work.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
**Offline rendering is for rendered frames, not for play.** At the Island's beach at 1080p the surface is about 40 million triangles. Leave it off until you render.
{% endhint %}

## Part 3 - Render

{% stepper %}
{% step %}

### Add the sequence to Movie Render Queue

Open **Window > Cinematics > Movie Render Queue** and add your sequence. Set the output, resolution and anti-aliasing as you would for any shot.
{% endstep %}

{% step %}

### Give the shot some warm-up frames

Add a few seconds of engine warm-up to the job - **Engine Warm Up Count** in the Anti-aliasing setting, or the warm-up frames of a Movie Render Graph. Five seconds' worth is plenty.

Warm-up frames let everything that builds over time settle before the first frame is saved: foam trails, wet sand, spray in the air, and the level's own lighting.
{% endstep %}

{% step %}

### Render

Press **Render**. With the Ocean Time track in place, a second render of the same job gives the same waves.
{% endstep %}
{% endstepper %}

## Rendering the simulated shore

The **Simulated** shore model works in a render, with two things to know.

* **It warms itself up.** Before it first shows, and again after the camera jumps at a cut, it simulates ten seconds of waves so the surf is already running (**Warm-up**, on **Advanced > Shoreline > Simulation**). That happens in one go on the first frame, so the first frame of a shot takes noticeably longer than the rest.
* **It is not frame-exact.** The simulation runs live, so the fine pattern of its foam can differ between two renders of the same shot. The open sea, with the Ocean Time track, does not.

On Cinematic mesh quality, an offline render runs the simulation at 2048 cells instead of the 1024 it uses in play.

## A checklist before you press Render

| Check                                                     | Where                        |
| --------------------------------------------------------- | ---------------------------- |
| The ocean has an **Ocean Time** track as long as the shot | Sequencer                    |
| **Deterministic in Sequencer** is on                      | **Simple > Sea > Sequencer** |
| **Offline rendering** is on, or keyed on                  | **Simple > Perf > Quality**  |
| The shoreline bake is up to date                          | **Simple > Shore > Volume**  |
| The job has warm-up frames                                | Movie Render Queue           |

## Something not right?

| What you see                                                | What to check                                                                                                                                                                |
| ----------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The waves differ between two renders                        | The ocean has no **Ocean Time** track, or the track's section is shorter than the shot.                                                                                      |
| Foam pops in after a cut                                    | **Deterministic in Sequencer** is on; raise **Warm-up after a jump**.                                                                                                        |
| The sea is missing from the render, but drawn in the editor | The level has more mesh instances than the renderer holds: see [Troubleshooting](https://docs.shadersource.io/assets-and-plugins/ocean-tool-2/tutorials/troubleshooting.md). |
| The first frame is slow                                     | The simulated shore's warm-up (above). It is one frame.                                                                                                                      |
| The water looks coarser in the render than it should        | **Offline rendering** was not on for the rendered range.                                                                                                                     |

## Where next

* [Performance and Scalability](https://docs.shadersource.io/assets-and-plugins/ocean-tool-2/tutorials/performance-and-scalability.md) - what the quality settings do in play.
* [Scalability and Console Variables](https://docs.shadersource.io/assets-and-plugins/ocean-tool-2/technical-information/scalability-and-console-variables.md) - the offline rendering switch in full.
