Terrain Materials and Painting
Overview
A new terrain in Quorum Studio is plain gray ground. Real ground is grass, rock, dirt, sand or snow, often all in one place. In this tutorial you give a terrain materials: descriptions of how a surface looks, made from a set of images. A terrain can have up to four materials, called layers, and you paint them onto the ground with a brush, the way you would paint a picture. Along the way you will see how the painting is stored, in images called splat maps, where to find free materials, and why the people who made them get a say in how they are used.
Goals
By the end of this lesson, you can
- Explain what a material is and what its images do.
- Explain what a splat map is and how it stores painting.
- Download free CC0 materials, add them to a terrain as layers, and paint them onto the ground.
- Give credit for the textures you use, and know what their licenses allow.
Warm up
List everything that makes real ground look the way it does: its color, its bumps, how shiny or dull it is, whether it is wet. Which of these could a computer fake with a picture? Which would need more than one picture?
Vocabulary
You will be learning about the following vocabulary words:
| Term | Definition |
|---|---|
| Texture | An image wrapped onto a 3D surface, such as a photo of grass laid over the ground. |
| Material | A description of how a surface looks: its texture pictures, and settings such as how shiny or bumpy it is. Quorum keeps each material in its own JSON file. |
| Texture set | A group of images made to be used together for one material: a color map, plus maps for bumps, roughness, shadows in cracks and height. |
| Plain texture | A material made from just one image, with only color: no bumps or roughness. |
| Color map | The picture of a surface's colors, like a photo of it taken in flat, even light. |
| Normal map | A picture that stores which way each tiny bit of a surface faces, so bumps and cracks catch the light even on a flat surface. |
| Roughness map | A picture that says which parts of a surface are rough and dull and which are smooth and shiny. |
| Ambient occlusion map | A picture that darkens the gaps and corners of a surface that light has trouble reaching. |
| Height map | A picture that says which parts of a surface stick up and which sink down. On terrain, it helps materials blend where they meet. |
| Layer | One material in a terrain's set of up to four. Painting decides where each layer shows. |
| Splat map | A picture for one region of a terrain that records how much of each layer shows at each point, so you can paint grass in one place and rock in another. |
| Tile size | How many meters of ground one copy of a texture covers before it repeats. |
| License | The rules the creator of a work sets for how other people may use it. |
| CC0 | A license in which the creator gives up their rights, so anyone may use, change and share the work, even in something they sell, without asking. |
| Attribution | Saying who made a work you used, and where it came from. |
CSTA Standards
For teachers · 2026 CSTA K–12 Computer Science Standards
High School · Programming
Apply appropriate attribution of intellectual property when developing a computing technology.
Also in 3 other lessons
Specialty I · Game Development
Analyze the ethical implications of copyright and intellectual property in game development.
Also in 1 other lesson
Middle School · Data & Analysis
Evaluate how different levels of precision and granularity in data collection affect accuracy, storage, and analysis.
Also in 3 other lessons
Explore
Painting a terrain works much like painting a picture, except that the paint is made of materials. You choose up to four materials, such as grass, dirt, rock and gravel, and brush them onto the ground wherever you want them. Quorum Studio doesn't change the terrain's shape when you paint. Instead, it keeps a second set of images, one for each region of the ground, called splat maps, that record how much of each material shows at every point. When the terrain is drawn, each point mixes its materials in the amounts its splat map says. This tutorial explains each part in turn: materials, splat maps, where to get materials, adding them as layers, and painting.
Materials
A material describes how a surface looks. A simple material is one image, a plain texture, that gives the ground its color. Real ground has more than color, though: bumps, cracks, shiny wet spots and dull dry ones. So most materials use a texture set: several images of the same surface, made to work together.
- The color map is the surface's colors, like a photo of it taken in flat, even light.
- The normal map stores which way each tiny bit of the surface faces, so bumps and cracks catch the light even though the ground is really flat.
- The roughness map says which parts are rough and dull and which are smooth and shiny.
- The ambient occlusion map darkens the gaps and corners that light has trouble reaching.
- The height map says which parts stick up and which sink down. On a terrain, it helps two materials blend where they meet: the higher one shows, so stones poke up through grass instead of the two just fading into each other.
A material also has settings, such as its tile size: how many meters of ground one copy of the images covers before it repeats. Quorum Studio keeps each material in a small JSON file beside its images, which names the images and lists the settings. Creating a Scene shows what one looks like.
Splat maps
A terrain is split into square regions (see
Terrain in a Scene). Each region you
paint gets its own splat map, an image saved beside the region's
heights, named like region_0_0_splat.png. Each pixel of a splat map
matches one point on the ground. An image pixel has four numbers: red,
green, blue and alpha (how see-through it is). A splat map uses those four
numbers to store how much of layers 1, 2, 3 and 4 show at that point. A
pixel that is all red shows only layer 1; half red and half green shows an
even mix of layers 1 and 2.
This is why a terrain can have at most four layers: a pixel has only four
numbers. It is also why the order of the layers matters. The splat map
remembers layer 2 here
, not rock here
, so if you swap two layers, the
painting stays where it was but shows the other material. A region you
haven't painted has no splat map at all, which saves space: it simply shows
layer 1 everywhere.
Where to get materials
Many websites give texture sets away for free. Two that Quorum Studio knows especially well are:
- ambientCG (ambientcg.com). Its sets are named like
Ground037_1K-PNG, and the images inside end in_Color,_NormalGL,_Roughness,_AmbientOcclusionand_Displacement. - Poly Haven (polyhaven.com). Its sets are named like
rock_wall, and the images end in_diff_1k,_nor_gl_1k,_rough_1k,_ao_1kand_disp_1k.
Other free libraries work too, such as ShareTextures
(sharetextures.com), cgbookcase (cgbookcase.com) and 3D Textures
(3dtextures.me). Their color maps often end in _BaseColor or _Albedo,
which Quorum Studio also recognizes, along with _Diffuse. Every texture on
these five sites is offered under the CC0 license, which means you can
use it in any project, even one you sell, without asking. Licenses can
change, though, so check the license on the page you download from, and
keep a note of where each texture came from for your game's credits.
Download PNG or JPG images, not EXR: Quorum Studio reads .png and
.jpg files. 1K (1024 by 1024 pixels) is plenty for ground that
repeats. Unzip each set into its own folder inside a folder named
Textures at the top of your project.
A plain image, such as a photo of grass you took yourself, works too, as a plain texture.
Textures cost memory
Each texture set is loaded into the graphics card's memory, and some graphics cards have much less than others. A 1K set uses about ten megabytes; a 4K set uses sixteen times as much. Four 4K sets on one terrain can be more than a small laptop or a phone can handle. Choosing the smallest images that look good is part of making a game run well on more computers.
Adding materials to a terrain
Select the terrain, then move into the Properties panel with Ctrl+P (Cmd+P on Mac). The panel's sections for a terrain are Terrain, Materials, Brush, Generate and Physics. A new terrain's Materials section says:
"No materials. The ground is plain."
Below that is the Add material... button.
Adding the first layer
- Activate Add material....
- In the file chooser, choose a texture set's color map, such as
Ground037_1K-PNG_Color.pngorrock_wall_diff_1k.png. You can also choose a plain image, or a material file (.json) you already have. - Quorum Studio guesses the set's other maps by their names, writes a material file beside the images, and gives the terrain its first layer. You can change these later. It says what it did, for example:
"Added Ground037 as layer 1, tiles 3 units. It covers the whole ground. Add another material to paint with. Found normal, roughness, ambient occlusion and height maps."
If a map was not found, it says so: "No height map found." That is fine. A set works without some of its maps, and you can choose them later in Details.
The first layer covers all of the ground. Each layer after it shows only where you paint it.
Layers
A layer is one of the terrain's materials, in a numbered slot from 1 to 4. The layers are like paint pots: adding a material fills the next empty pot, and painting decides where on the ground each pot's paint goes. Layer 1 is special. It is the ground's starting color, so it covers everywhere that hasn't been painted with something else. Every other layer shows only where you paint it. The number of a layer matters because the splat maps store painting by number, so choose your layers in an order that makes sense, such as grass first and then the materials you'll add on top of it.
Add up to four layers the same way as the first. A new layer shows nowhere until it is painted, and it becomes the layer the Paint tool paints next:
"Added rock_wall as layer 2, tiles 3 units. Paint it with the Paint tool."
A fifth is refused: "This terrain has four materials, which is the most it can have."
Each layer's row in the panel
Each layer has a row with:
- its name, such as "Layer 2: rock_wall";
- its file, such as "File: rock_wall.json, a texture set";
- Tile size: how many meters of ground one copy of the texture covers. A texture set starts at 3 and a plain texture at 4. Smaller numbers make the pattern smaller and repeat more often; larger numbers stretch it;
- Choose...: give this layer a different material. Where it was painted stays the same;
- Remove: take the layer away. Where it was painted, layer 1 shows instead: "rock_wall removed. Where it was painted, Ground037 shows." Removing the last layer makes the ground plain again;
- Details...: see and change the material's images and values (below).
Under the rows is Blend softness, from 0.01 to 1: how softly texture set layers fade into each other where they meet. Small numbers give sharp edges, such as rocks poking through grass; larger numbers blend more gently.
Adding, choosing and removing layers can be undone with Ctrl+Z (Cmd+Z on Mac). Changes to the tile size and blend softness can't be undone yet.
Details: what is inside a material
Activate Details... on a layer. A group named Material details
, with
the layer's number and name, opens under the rows. Only one layer's details
show at a time; Close details closes them.
It shows:
- Name: a field. The layer's row uses this name.
- File: where the material file is in the project.
- Whether other layers use the same file, such as "Also used by 2 other layers in this scene. Changes here change it everywhere."
- Kind:
texture set
orplain texture
. - One line per map, each with Choose... and Clear:
- for a texture set: color, normal, roughness, ambient occlusion and height maps;
- each line names its file, or says
none
.
- Normal map convention: OpenGL or DirectX. Normal maps come in two
styles that store
up
in opposite ways. If the bumps on the ground look lit from the wrong side, switch this. Files ending in_NormalGLor_nor_glare OpenGL;_NormalDXand_nor_dxare DirectX. - Find maps by name: looks again in the color map's folder for any map
that is
none
. - Make plain: turns a texture set into a plain texture, keeping its color map.
- Roughness and Metallic, from 0 to 1. Roughness is only used when there is no roughness map; if there is one, Quorum Studio says "Not used: the roughness map sets it."
When you change a map, Quorum Studio repacks the set, which takes about a second, and says so: "Packing the texture set... Normal map is now rock_wall_nor_gl_1k.png." Every map in a set must be the same size. If it isn't, Quorum Studio refuses and says both sizes, for example "rock_wall_rough_2k.png is 2048 by 2048, but the color map is 1024 by 1024. Maps in a set must be the same size."
A number field takes its new value when you leave it with Tab or click somewhere else. (Enter doesn't take the value yet.)
Every change in Details can be undone.
Painting
Painting is how you decide where each layer shows. You choose the Paint tool and a layer, and a circle called the brush appears on the ground. Wherever you move the brush and paint, the chosen layer soaks in: a little at first, and more the longer you paint, with the brush's middle painting more than its edge. Under the hood, each stroke changes the splat maps of the regions the brush touches. Painting needs two or more layers, because layer 1 is already everywhere. With only one, the Paint tool says "Paint needs two or more materials. Add them in the Materials section."
Painting, step by step
- Select the terrain and press Alt+6 (Option+6 on Mac) to choose the Paint tool. A ring on the ground shows the brush.
- Choose which layer to paint, in either of two ways:
- in the Brush section, the Paint layer buttons, each named with its layer, such as "Layer 2, rock_wall";
- press Alt+L (Option+L on Mac) to move to the next layer.
- Move the brush with the mouse or the arrow keys. Change its size with Alt+= and Alt+-, and how fast it paints with Alt+] and Alt+[.
- Hold Space, or hold the left mouse button and drag, to paint. Let go to finish the stroke.
- Escape during a stroke cancels it and puts the ground back. Escape again leaves the tool.
Each stroke is one step for Ctrl+Z and Ctrl+Y (Cmd+Z and Cmd+Y on Mac). Saving the scene with Ctrl+S (Cmd+S) saves the painting.
| Action | Windows | Mac |
|---|---|---|
| Choose the Paint tool | Alt+6 | Option+6 |
| Paint the next layer | Alt+L | Option+L |
| Paint (hold) | Space | Space |
| Move the brush | Arrow keys | Arrow keys |
| Make the brush bigger | Alt+= | Option+= |
| Make the brush smaller | Alt+- | Option+- |
| Paint faster | Alt+] | Option+] |
| Paint slower | Alt+[ | Option+[ |
| Cancel the stroke; press again to leave the tool | Escape | Escape |
| Move into the Properties panel | Ctrl+P | Cmd+P |
| Undo | Ctrl+Z | Cmd+Z |
| Redo | Ctrl+Y | Cmd+Y |
| Save the scene | Ctrl+S | Cmd+S |
All of these keys can be changed in Quorum Studio's key map.
Screen reader conventions
Quorum Studio tells a screen reader what the brush is doing as you work, so you can paint without seeing the screen:
- Choosing the tool says the tool and where the brush is, such as "Paint tool. Paint brush at 0.0, 0.0, ground height 0.0, slope 0 degrees, Ground037, size 5.0". The name at the end, here Ground037, is the layer that shows most under the brush's middle.
- Each press of an arrow key moves the brush and says the height of the ground under it, such as "Height 1.2", or "Off the ground" if the brush has moved past the terrain's edge.
- Letting go of an arrow key says the brush's full description again, with its place, height, slope and the main layer under it. Moving the brush across a painted area and listening for the layer name is how you find where each layer is.
- Choosing a layer with Alt+L says it, such as "Paint layer 2, rock_wall".
- Finishing a stroke says what you did, such as "Painted rock_wall. Height 2.1". A canceled stroke says "Stroke canceled".
The files
Materials are saved as files in your project, so you can open and read them.
Every one is a plain .json text file, and its "Format" says what kind of
file it is. Paths inside a file are written relative to that file's own
folder, so a texture set's folder can be copied to another project with its
material file inside it.
MyProject/
Scenes/Scene.qs the scene names the terrain's material
Scenes/Terrains/Terrain1/terrain.json the heights
Scenes/Terrains/Terrain1/region_0_0_splat.png painting, once a region is painted
Scenes/Materials/Terrain1.json the terrain's layers
Textures/Ground037_1K-PNG/Ground037.json one material, beside its images
A material (one layer's look) is written beside its images:
{
"Format": "Quorum Material",
"Version": 1,
"Name": "Ground037",
"Color Map": "Ground037_1K-PNG_Color.png",
"Normal Map": "Ground037_1K-PNG_NormalGL.png",
"Normal Map Convention": "OpenGL",
"Roughness Map": "Ground037_1K-PNG_Roughness.png",
"Ambient Occlusion Map": "Ground037_1K-PNG_AmbientOcclusion.png",
"Height Map": "Ground037_1K-PNG_Displacement.png",
"Tile Size": 3
}
A plain texture has "Texture" instead of the maps.
A terrain material (the whole ground's look) is in Scenes/Materials,
named after the terrain's folder. It lists the layers in order, by their
material files:
{
"Format": "Quorum Terrain Material",
"Version": 1,
"Name": "Terrain1",
"Layers": [
{ "Name": "Ground037", "Material": "../../Textures/Ground037_1K-PNG/Ground037.json" },
{ "Name": "rock_wall", "Material": "../../Textures/rock_wall/rock_wall.json" }
],
"Blend Softness": 0.2
}
The splat maps are the region_X_Z_splat.png images beside the
terrain's heights, one for each region you have painted (see Splat maps
above).
Saving never deletes files. If you remove a layer or a whole material, the old files stay in the project until you delete them yourself.
Licenses and giving credit
Every image was made by someone, and they decide how others may use it. That decision is the image's license. Before you use a texture, find its license.
- AmbientCG and Poly Haven share their textures under CC0 (Creative Commons Zero). CC0 means the creator gave up their rights: you can use, change and share the images, even in a game you sell, without asking.
- Other sites may only allow personal use, or require you to credit the creator, or forbid selling. Read the license on the page you download from, and keep a copy of it with the textures.
- An image you found with a web search is usually not yours to use. Being easy to download doesn't make it free to use.
Even when credit isn't required, giving it is good practice. It tells
players where the art came from, thanks the people who made it, and lets
others find it. A simple way is a Credits.txt file in your project, and a
credits screen in your game:
Ground037 by AmbientCG (ambientcg.com), CC0.
Rock Wall by Poly Haven (polyhaven.com), CC0.
Engage
In this activity, you and a partner download free materials, add them to a terrain, and paint a small landscape with the brush. The goal is to go through the whole process a game artist uses: finding materials with a license that allows your use, bringing them into a project, and painting them where they belong. Here are four CC0 materials from ambientCG that work well together:
- Grass 001: short green grass, for layer 1;
- Ground 037: damp earth with moss;
- Rock 030: gray rock;
- Gravel 022: small gray pebbles, good for a path.
Bring them into your project like this:
- On each material's page, download the 1K-JPG file, such as
Grass001_1K-JPG.zip. It is about 10 megabytes. - In your project's folder, make a folder named
Texturesif there isn't one, and unzip each download into its own folder inside it, such asTextures/Grass001_1K-JPG. - In Quorum Studio, select the terrain, press Ctrl+P (Cmd+P on Mac) to move into the Properties panel, and go to the Materials section.
- Activate Add material... and choose the color map, the image whose
name ends in
_Color, such asGrass001_1K-JPG_Color.jpg. Quorum Studio finds the other images in the folder by their names. - Add the other three the same way, in the order above, so grass is layer 1.
Now paint. Together, sketch a plan for a small area: for example, a gravel
path running across the grass, a patch of earth around it, and a rocky spot
in one corner. One partner paints the path and the earth, and the other
paints the rock, using the Paint tool and Alt+L to switch layers. As you
paint, the partner who isn't painting checks the work against the plan,
either by watching or by moving the brush across the area and listening for
the layer under it. Save the scene, then write a Credits.txt in your
project that lists all four materials, their creator, ambientCG, their
addresses and their license, CC0.
Wrap up
- A material is not a picture. It is a small file of settings that names several pictures. Why do you think Quorum Studio keeps materials as separate files instead of putting everything into the scene?
- A texture you can download for free is not always free to use. What would you do if a texture you loved had a license that didn't allow your game?