The Sea

Overview

An island needs water around it. In Quorum Studio, a terrain can have a sea: water at one height all around the world, reaching out to the horizon. Wherever the ground is lower than the sea, it is under water, and wherever the ground is higher, it is dry land, so the shore follows the shape of the ground by itself. In this tutorial, you will turn on a sea, choose its height, and change how the water looks: its colors, how clear it is, how it fades at the shore, and how its ripples move and shine. You will also find the shore using the reports Quorum Studio sends to accessibility tools, such as a screen reader, as you move over the ground.

Goals

By the end of this lesson, you can

  • Turn on a terrain's sea and set its level
  • Explain what each of the water's Look settings does to the picture
  • Choose Look settings for a mood, and explain why
  • Find where the land meets the sea using only the terrain cursor's reports

Warm up

Imagine a calm lake, and then the ocean on a stormy day. List everything that makes them different. A calm lake is quiet, with a light breeze and small ripples; near the shore it is often clear enough to show the stones on the bottom, and farther out it is dark green or blue. A stormy sea is loud and windy, with spray in the air and waves breaking white; its water is gray and churned up, so the bottom can't be seen. Think about color, sound, wind, how the surface moves, how deep light reaches into the water, and how it shines in the sun. Which of those differences do you think a computer has to calculate, and which could an artist simply choose?

Vocabulary

You will be learning about the following vocabulary words:

Vocabulary
TermDefinition
SeaWater at one height all around a terrain, reaching out to the horizon. The ground hides it wherever the ground is higher.
Sea levelThe height of the sea's surface. Ground below it is under water, and ground above it is dry land.
ShoreThe line where the ground rises out of the water.
AlphaHow much a color hides what is behind it, from 0 (hides nothing) to 1 (hides everything).
ClarityHow quickly the water gets darker and hides the ground as it gets deeper. 0 is perfectly clear.
RippleA small wave on the water's surface. Ripples bend the light, so the water sparkles and shimmers.
ReflectionLight that bounces off the water's surface, so the water shows the sky.
ShaderA small program the graphics card runs to work out the color of every point on the screen.

CSTA Standards

For teachers · 2026 CSTA K–12 Computer Science Standards

S2-GMD-DD-01

Specialty II · Game Development

Justify the use of responsible design principles in developing an engaging, meaningful game experience.

Only this lesson so far

S2-SWD-UX-05

Specialty II · Software Development

Evaluate the user experience to improve usability.

Only this lesson so far

S1-XCS-XC-01

Specialty I · X+CS

Explain connections between CS concepts and practices and those from a non-CS discipline (X).

Also in 3 other lessons

Every standard, and the lessons that cover it

Explore

This tutorial uses a terrain with some hills and valleys, such as the one you shaped in Shaping Terrain or made in Generating Terrain. Water is drawn with Vulkan, the same graphics system a terrain needs, so a game with a sea calls UseVulkan(true), as Terrain in a Scene explains.

The Water section

Every terrain has a Water section in the Properties panel. To get there:

  • With the keyboard: select the terrain, from the scene tree or with the scene cursor and Enter. Press Ctrl+P (Cmd+P on Mac) to move into the Properties panel, then Tab until you reach the Water section. If a section is closed, Alt+Shift+Down (Option+Shift+Down on Mac) opens it, and Alt+Shift+Up closes the section you are in. Press Escape to go back to the scene.
  • With the mouse: click the ground to select the terrain, then click in the Water section.

The section starts with a line that sums up the water, such as "No water yet." or "A sea, 1 lake and 1 river." Below it are parts that open and close with a chevron, the same way the Properties panel's sections do: Sea, Lakes (see Lakes), Rivers (see Rivers) and Look. Each part's title says what is in it, such as "Sea, level 10". With the keyboard, Right opens a part, Left closes it, and Enter switches it. A screen reader says whether it is expanded or collapsed.

Turning on the sea

  1. In the Water section, check the Sea box. Press Space on it, or click it.
  2. Type a height in the Sea level: field. Ground lower than this height will be under water. A field takes its new value when you leave it, with Tab or by clicking somewhere else.

Quorum Studio reports the change to accessibility tools, which may give a phrase such as "Sea at height 10.0." Unchecking the box takes the sea away, and the report is "No sea." Every change can be undone with Ctrl+Z (Cmd+Z on Mac), and saving the scene saves the water in a file named water.json in the terrain's folder.

A good first sea level is a little above the lowest valleys, so the low places fill with water and the hills become islands. If the whole terrain is under water, the sea is higher than every hill; try a lower number. If no ground is under water, the sea is lower than all of the ground. Finding the shore from the reports, below, shows how to check this from the terrain cursor's reports.

How the sea works

The sea is one huge flat sheet of water at the sea level. It moves along with the camera, so wherever you go, it reaches the horizon. The sea never has to know where the coast is. The ground is drawn too, and wherever the ground is higher than the water, the ground is in front of it and hides it. That is why the shore always follows the shape of the land, even after you raise or lower the ground. Past the edge of the terrain, there is no ground at all, so the sea there is open, deep water.

The water's look

Open the Look part of the Water section to show the water's look. These settings are shared by the sea, every lake and every river of the terrain, so all of its water matches. Each one is a number, and Quorum Studio reports the new value to accessibility tools when you change it, which may give a phrase such as "Clarity 0.5." Close the part again with its chevron.

The water is drawn by a shader, a small program that runs on the graphics card and works out the color of each point of the water on the screen. For each point, it knows how deep the water is there, how much water your eye looks through to reach the ground, which way the surface faces, and where the sky and the lights are. The Look settings are the numbers that program uses.

Look settings
SettingStarts atWhat it does
Shallow red, green, blue0.10, 0.42, 0.40The color of shallow water, as amounts of red, green and blue from 0 to 1.
Shallow alpha0.25How much of the ground shallow water hides, from 0 (you see all of the ground) to 1 (you see none of it).
Deep red, green, blue0.02, 0.10, 0.16The color of deep water. The water changes from the shallow color to the deep color as it gets deeper.
Deep alpha0.92How much of the ground deep water hides.
Clarity0.35How quickly the water changes to the deep color and hides the ground as it gets deeper. 0 is perfectly clear, and 1 is muddy within a meter or so.
Shore fade0.5How deep the water is, in units, before it stops fading in at the edge. 0 gives a hard edge at the shore.
Ripple size8How many units one tile of the larger ripples covers. The smaller ripples are a little under half that size.
Ripple speed0.6How fast the ripples move across the water, in units a second.
Roughness0.06How rough the surface is, from 0.02 to 1. Small values give sharp, bright glints of sunlight; larger ones give a broad, soft sheen.
Ripple strength1How strongly the ripples bend the light. 0 is a flat mirror, 1 is normal, and 2 is choppy.
Reflection1How strongly the water reflects the sky, from 0 for none to 1 for all that real water would.

Here is a little more about each one.

  • Shallow color and deep color. Real water looks different depending on how much of it you look through. Near the shore, you see the sand or rocks through a thin layer of water. Far out, the water is so deep that you see only its own dark color. The shader mixes the two colors by how deep the water is at each point.
  • Alpha. Each color has a fourth number, its alpha. A low alpha lets the ground show through, like glass; a high alpha hides it, like paint. The shallow alpha starts low, so you can see the bottom near the shore.
  • Clarity. Clarity decides how fast the change from shallow to deep happens. It works the way light really does in water: each meter of water lets through only part of the light that reaches it, so the light fades quickly at first and then more slowly. At 0, the water is clear all the way down. Around 1, the ground disappears within a meter or so, like a muddy pond.
  • Shore fade. Without it, the water would end in a sharp line where it meets the land. Shore fade makes the very shallowest water nearly invisible, so it blends into the ground. Its number is the depth at which the water stops fading. Larger numbers give a wider, softer shore.
  • Ripple size and ripple speed. The surface isn't really bumpy. Instead, the shader uses a picture of ripples, called a normal map, which tells it which way each point of the surface should seem to face. Two layers of ripples slide across each other, so the pattern never looks the same twice. Ripple size sets how big the pattern is, and ripple speed sets how fast it moves, as if wind were pushing it.
  • Roughness. When the sun or a lamp shines on the water, the shader adds a glint where the light bounces toward your eye. A smooth surface makes small, sharp, bright glints. A rough one spreads the light into a wide, dull shine.
  • Ripple strength. This is how much the ripples tilt the surface. At 0, the water is a perfect mirror. Higher numbers make the reflections and glints break up, the way they do on a windy day.
  • Reflection. Water reflects the sky, but not equally in every direction. Looking straight down into a pool, you mostly see through it. Looking across a lake toward the horizon, it is almost a mirror. The shader copies this rule, so far-away water shows more sky. If the scene has a sky (set in the 3D layer's Sky section), the water reflects it. Reflection sets how strong that is, from 0 to 1.

Programs and the sea

A game that loads the scene with LoadScene gets the sea and its look with no extra code. A program can also ask about the water, such as whether a player is under it. Lakes shows a short program that does this, once the terrain has lakes too.

Finding the shore from the reports

Quorum Studio describes the ground under the terrain's cursor in words, through the accessibility system, and the description tells when the ground there is under water. With a screen reader or a braille display, this lets someone find the coast without the screen.

  1. Select the terrain. The arrow keys now move its cursor over the ground, in the direction the camera faces. Each step reports how the height changed, with a phrase such as "Up 1.4, height 5.6" or "Down 0.6, height 4.9". At the edge of the ground, the report is "Edge of the terrain".
  2. Choose a tool, such as Raise with Alt+1 (Option+1 on Mac), but don't press Space. Choosing a tool describes the ground under the brush. Over water, the description includes how deep it is, such as "Raise tool. Raise brush at 12.0, 30.0, ground height 7.4, under water, 2.6 deep, size 5.0". Over dry ground, it doesn't mention water.
  3. To get the description again after moving, press the tool's key again.
  4. You can also compare the height in each step with the sea level. If the sea is at 10 and a step reports "height 7.4", that spot is under water. If it reports "height 12.0", it is dry land.

Press Escape to leave the tool. These keys can also be found in the Scenes menu, which Alt+C opens (Option+C on Mac), under Terrain and Cursor.

Engage

This activity has three parts. In the first, you and a partner describe water from its numbers alone. In the second, you measure how a rising sea floods your land. In the third, you judge how well a game could warn a player about deep water. Use a scene with a shaped terrain and a sea, each of you on your own copy, or both of you at one computer.

Part 1: Mood by numbers

Partner A secretly picks one mood: a tropical beach, a cold northern sea, a muddy swamp, or a calm mountain lake at sunset. A changes the water's Look settings until they fit that mood, and writes down every setting's number in a table, like the table of Look settings on this page. Don't write down the mood.

Partner B gets only the numbers, read aloud or as the table. Using what this page explains about each setting, B describes the water in words:

  • its color, from the amounts of red, green and blue (more green and blue than red, for example, is a blue-green);
  • how far into it light reaches, from the clarity and the two alphas;
  • whether the surface is calm or wind-whipped, from the ripple speed and ripple strength;
  • whether the sun makes sharp glints or a soft sheen on it, from the roughness.

Then B guesses the mood, and says which numbers gave it away. You can explore the water in the scene together afterward, but the guess has to come from the numbers. Swap roles, with a different mood.

Talk together:

  • Which settings changed the mood the most? Which hardly mattered?
  • Which moods were easy to tell apart from the numbers, and which were hard? What would make them easier?

Part 2: The rising sea

Partner A picks six spots on the terrain: some low, some high and some in between. Move the terrain cursor to each one, and write down its position and height from the cursor's report, such as "Terrain cursor at 12.0, 30.0, height 7.4." Make a table with one row for each spot and a column for each of three sea levels: 5, 10 and 15.

Set the sea level to 5. For each spot, move the cursor to it, choose a tool such as Raise with Alt+1 (Option+1 on Mac), and use its description to decide whether the spot is under water, and how deep. Write dry or the depth in the table. Then do the same at sea levels 10 and 15. Partner B checks each entry the same way, from the reports.

Talk together:

  • Which spots flooded first, and why? Could you have predicted it from the heights alone?
  • Which spot was the last to stay dry?
  • Sea levels in the real world are slowly rising. What kinds of places flood first, and how is your table like a map of that risk?

Part 3: Telling deep water from shallow

Imagine a game where shallow water is safe to wade through, but deep water is dangerous. A player needs to know when they reach the edge. Together, list every way a game could tell them: the water's color, how far down the ground can still be seen, a change in sound, a controller's vibration, or a report to a screen reader such as "under water, 2.6 deep."

For each way on your list, decide whether it works for:

  • a player who can't see the screen;
  • a player who can't tell some colors apart, such as green from blue;
  • a player with the sound turned off.

Then choose Look settings that make the change from shallow to deep as clear as you can, and write down why you chose each one. Last, suggest at least one cue the game should add that doesn't depend on seeing the water, and explain who it helps.

Wrap up

A sea is one flat sheet of water, and the ground decides where the coast is. Its look is a handful of numbers that a shader turns into color, clearness, ripples and shine, based on how real water treats light. Think of a game you know with water in it: what did its water tell you about the place, through how it looked, how it sounded, or how the game described it? In the next tutorial, Foliage, you will cover the land with rocks, trees and grass.