Lesson 4 of 6
PBR textures: maps, Material Maker, Substance and CC0 libraries
Texture Roblox meshes and parts with PBR maps. Learn colour, normal, roughness, metalness and emissive maps, SurfaceAppearance versus MaterialVariant, texel density, CC0 libraries and the tools studios use.
By the end you can
- Name the five PBR maps Roblox supports and what each one tells the light
- Choose between a SurfaceAppearance and a MaterialVariant, and size textures by texel density
- Find CC0 textures, check their licence, and pick a texturing tool for the job
Before this: From Blender to Roblox: FBX, the Importer and MeshParts
Step 1 of 10
One drone body, four pictures
Open Beacon Yard's drone template at m13-art-pass in a text editor. The body mesh carries a SurfaceAppearance with four slots, each waiting for an uploaded image:
<Item class="SurfaceAppearance" referent="BODYS">
<Properties>
<string name="Name">SurfaceAppearance</string>
<Content name="ColorMap"><url>{{PAINTED_METAL_COLOR_MAP_ID}}</url></Content>
<Content name="NormalMap"><url>{{PAINTED_METAL_NORMAL_MAP_ID}}</url></Content>
<Content name="RoughnessMap"><url>{{PAINTED_METAL_ROUGHNESS_MAP_ID}}</url></Content>
<Content name="MetalnessMap"><url>{{PAINTED_METAL_METALNESS_MAP_ID}}</url></Content>
One picture would only give the body a colour. Four pictures tell the light four different things about the surface, which is why painted metal can shine on a clean panel and look dull where paint has worn off.

Select a numbered pin, or a row below, to read what it marks.
The drone body's SurfaceAppearance in Studio: four map slots in Properties, one per picture.
How many image maps does the drone body's SurfaceAppearance template ask for?
Step 2 of 10
What each map tells the light
PBR (physically based rendering)PBR (physically based rendering)Shading a surface from several maps (colour, normal, roughness, metalness, emissive) so it looks right in any light.Think of it as a stack of transparent sheets, each telling the light one thing about the surface. stands for physically based rendering: several maps on one surface, so it looks right under any light. Roblox supports five1:
- Colour (albedo): the surface colour with no lighting baked in. A shadow painted into the colour map looks wrong when the light moves.
- Normal: fake bumps. Each pixel stores a direction; flat is
[127, 127, 255]. Roblox reads only OpenGL tangent-space normal maps. - Roughness: 0 is a sharp mirror-like highlight, 1 is matte.
- Metalness: almost always 0 (not metal) or 1 (metal).
- Emissive mask: where the surface glows, for finer control than the Neon material.
The texture specifications ask for colour and normal as 24-bit RGB and the other three as 8-bit greyscale2.
| In the picture | In Roblox |
|---|---|
| The colour sheet | The ColorMap (albedo), with no lighting baked in |
| The bumps sheet | The NormalMap |
| The shine and metal sheets | RoughnessMap and MetalnessMap, greyscale amounts |
Think of a stack of transparent sheets on an overhead projector, each printed with one instruction for the light: this colour, these bumps, this shine, this much metal.
Think of it as Transparent sheets stacked on an overhead projector, each with one instruction for the light
Match each map to what it changes.
Step 3 of 10
Two homes for maps: SurfaceAppearance and MaterialVariant
Roblox has two objects that hold PBR maps. A SurfaceAppearance belongs to one MeshPart and follows that mesh's flat 2D texture layout, called a UV mapUV mapA flat layout of a 3D model's surface, so a 2D image can be painted onto it.Think of it as a gift-wrap pattern: the model's skin cut open and laid flat., so the picture can know where the rim is. A MaterialVariant lives in MaterialService and is a tileable material for parts and terrain: it repeats every StudsPerTile studs and keeps its base material's physical properties3.
Beacon Yard uses both. The drone's meshes carry SurfaceAppearances in their template, and the walkway, floor, shop and walls use variants. Each variant is a small template that gen-assets.mjs fills with your texture ids and writes into MaterialService. This is the walkway's:
<token name="BaseMaterial">1088</token>
<Content name="ColorMap"><url>{{METAL_PLATE_COLOR_MAP_ID}}</url></Content>
<Content name="NormalMap"><url>{{METAL_PLATE_NORMAL_MAP_ID}}</url></Content>
<Content name="RoughnessMap"><url>{{METAL_PLATE_ROUGHNESS_MAP_ID}}</url></Content>
<Content name="MetalnessMap"><url>{{METAL_PLATE_METALNESS_MAP_ID}}</url></Content>
<float name="StudsPerTile">8</float>
In Studio the same variant shows up in the Material Manager (Window, 3D, Material), where you can read these keys without opening the file:

Select a numbered pin, or a row below, to read what it marks.
The variant in the Material Manager. The Overrides, Terrain Details and Physics sections are collapsed.
You want rust on all of the yard's walls, repeating every 8 studs. Which object holds the maps?
Press 1 to 4 to choose, Enter to check.
Step 4 of 10
How big should the image be?
Texel density is how many texture pixels cover one stud. Keep it similar across the scene, or a sharp crate sits next to a blurry wall. Roblox's own numbers make a good target: built-in part materials show 1024 by 1024 pixels on an 8-stud face, which is 128 pixels per stud, and terrain shows 512 across 8 studs, 64 per stud2.
For SurfaceAppearances the same page gives a budget: about 256 by 256 for every 2 by 2 by 2 stud space, with 1024 by 1024 as the top of the PBR budget table. Roblox may also downsample textures when many are on screen. Beacon Yard's walkway variant, beacon_yard_plate, tiles every 8 studs, so a 1024-pixel map there matches the built-in materials.
Density, not size
A 2048-pixel map is not "better" than a 512-pixel one. It is only right if the surface it covers is four times as wide. Pick the pixels per stud first, then work out the image size.
beacon_yard_plate repeats every 8 studs (StudsPerTile 8). Its colour map is the 1K download, 1024 pixels wide. How many pixels cover one stud?
Step 5 of 10
Free textures you may actually ship
You do not have to paint every surface. Two large libraries publish PBR texture sets under CC0, which means you may use them for anything, commercial included, with no credit required. Poly Haven says all of its assets are CC04. ambientCG says the same for its downloadable files and preview renders5.
Beacon Yard uses ambientCG. From m13-art-pass its four texture sets, metal plate, concrete, painted metal and rust, are committed in the repo as 1K downloads, with a credits file that records each source:
| Folder | ambientCG asset | Source | Used for | Maps |
|---|---|---|---|---|
| `metal_plate/` | Metal Plates 014 | <https://ambientcg.com/view?id=MetalPlates014> | Walkway variant, drone rotors, wrench, beacon | Color, NormalGL, Roughness, Metalness |
| `concrete/` | Concrete 030 | <https://ambientcg.com/view?id=Concrete030> | Shop and floor variants | Color, NormalGL, Roughness |
| `painted_metal/` | Painted Metal 016 | <https://ambientcg.com/view?id=PaintedMetal016> | Drone body | Color, NormalGL, Roughness, Metalness |
| `rust/` | Metal 041 B | <https://ambientcg.com/view?id=Metal041B> | Wall variant | Color, NormalGL, Roughness, Metalness |
Two things to copy. The file names end in NormalGL: Roblox reads only OpenGL normal maps, and the NormalDX file in the same download has a flipped green channel. And the credits file exists even though CC0 asks for nothing, so a reviewer can check the licence later.
Which of these does CC0 let you do with an ambientCG texture?
Press 1 to 4 to choose, Enter to check.
Step 6 of 10
The tools that make maps
When a library does not have it, you author it. These are the tools you will meet:
Other ways pros do this
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Adobe Substance 3D Painter | Paint PBR maps straight onto a mesh with layers, masks and smart materials. | The industry standard for hero props and characters in game studios. | Paid: Steam lists it from 24.99 US dollars a month, or 199.99 US dollars once. Proprietary project files. |
| Material Maker | Free, open-source node-graph tool for procedural tileable materials, with an experimental painter. | Tileable materials for MaterialVariants on a zero budget. | Smaller community; painting is less mature than Substance. |
| Blender Texture Paint and bakes | Paint on the mesh and bake normal maps from a detailed model, inside Blender. | You already model in Blender and need simple painted or baked maps. | Layers and masks are basic compared with dedicated painters. |
| ArmorPaint | Stand-alone PBR texture painter with node materials and GPU baking. | A Substance-like painter without a subscription. | Ready-made builds cost 19 US dollars; the source is zlib-licensed if you build it yourself. |
| CC0 libraries | Poly Haven and ambientCG texture sets. | Floors, walls, metals and other common surfaces. | Everyone else can use the same textures; realistic photo scans may not match a stylised game. |
Beacon Yard needs a tileable rusted-steel material for the walkway, and the course has no budget. Which tool fits best?
Press 1 to 4 to choose, Enter to check.
Step 7 of 10
Where the overlay picture breaks
Both sidesRemember: PBR texture maps is transparent sheets stacked on an overhead projector, each with one instruction for the light.
Stacked sheets change what you see. Decide what they can never change before you open the breakdown.
Where does it break?“Transparent sheets stacked on an overhead projector, each with one instruction for the light” is a good picture of pbr texture maps. Where does it stop being true?
It breaks here. Sheets on a projector can make a flat wall look carved, and so can a normal map, but nothing changes the object's outline, collision or mass: look at the silhouette against the sky and it is smooth.
The true model. PBR maps feed the lighting calculation per pixel. Geometry, triangle count, physics shape and mass come only from the mesh and the part.
You put a strong bumpy normal map on the coin. Look at the coin's outline against the sky. What do you see?
Press 1 to 4 to choose, Enter to check.
Step 8 of 10
Build it: a fifth variant from a CC0 set
Retiring the analogy
You no longer need “transparent sheets stacked on an overhead projector, each with one instruction for the light”. PBR maps feed the lighting calculation per pixel. Geometry, triangle count, physics shape and mass come only from the mesh and the part.
Build along
assets/textures/corrugated/assets/textures/CREDITS.mdassets/templates/materials/beacon_yard_corrugated.rbxmxsrc/shared/Ids.luausrc/server/WorldLook.luausrc/server/MapBuilder.luau
Download
CorrugatedSteel005from ambientCG as the 1K JPG zip. Keep only the maps Roblox reads.You should see Four image files, Color, NormalGL, Roughness and Metalness, sit in assets/textures/corrugated/ and no NormalDX file does.
Add the row to
assets/textures/CREDITS.md.You should see CREDITS.md has a new row with the folder, the asset name, its ambientCG link, what it is used for and the maps you kept.
Add the four keys to both Ids files at 0, and run
node scripts/check-ids.mjs: it still passes.You should see Ids.luau and Ids.local.example.luau list CORRUGATED_COLOR_MAP_ID, _NORMAL_, _ROUGHNESS_ and _METALNESS_, all 0.
Copy
assets/templates/materials/beacon_yard_plate.rbxmxtobeacon_yard_corrugated.rbxmxand change the name, keys and base material (Enum.Material.CorrodedMetalis token1040).You should see beacon_yard_corrugated.rbxmx holds your four keys, BaseMaterial 1040 (CorrodedMetal) and a StudsPerTile you chose.
Import the four images with Studio's Asset Manager, put their ids in your git-ignored
Ids.local.luau, and runnode scripts/gen-assets.mjs.You should see gen-assets prints: material beacon_yard_corrugated -> assets/materials/beacon_yard_corrugated.rbxmx.
Wire the variant into the yard by code. In
src/server/WorldLook.luau, add"corrugated"to theSlottype and acorrugatedentry toSLOTS:material = Enum.Material.CorrodedMetalandvariant = "beacon_yard_corrugated". Then insrc/server/MapBuilder.luau, callWorldLook.apply(scrapStack, "corrugated")for a scrap stack such asScrapStack2.applysets the part's material to the slot's base material, so pick a part that is already CorrodedMetal. MapBuilder rebuildsWorkspace.Yardevery time Play starts, so a part you place by hand is deleted and never counts. Only code in the build does.You should see WorldLook.luau has a corrugated slot (CorrodedMetal and beacon_yard_corrugated), and MapBuilder applies the corrugated slot to ScrapStack2.
Run
rojo build -o beacon-yard.rbxlx, reopen the built place and press Play. A running script cannot set a variant's base material, so the variant has to be in the place file.You should see After a rebuild and Play, MaterialService lists the variant, and ScrapStack2 under Workspace.Yard has MaterialVariant beacon_yard_corrugated.
Step 9 of 10
Challenges
Level 1, Apprentice
Challenge
Read assets/templates/Drone.rbxmx and assets/textures/CREDITS.md, and say which set paints which part.
- Start from
- The game at milestone m13 (download)
Done means
- You named the texture set that paints the drone body and the set that paints its rotors
- You can say which ambientCG page each one came from
Meet the criteria above, then record your own result. No test grades this check.
A texture pack ships a DirectX normal map only. What do you do before using it in Roblox?
Press 1 to 4 to choose, Enter to check.
Level 2, Builder
Challenge
Pick the texture size for a crate the yard might get, and justify it with numbers.
- Start from
- The game at milestone m13 (download)
Done means
- You chose a map size for a new 4 by 4 by 4 stud crate using Roblox's PBR budget
- You can say its texel density in pixels per stud
Meet the criteria above, then record your own result. No test grades this check.
Level 3, Professional
Challenge
Ship the fifth variant and use it on the yard. The check (challenges/textures-pbr.luau) lives in the game repo at m14-ship, which includes the m13-art-pass art pipeline, and the steps are in challenges/solutions/textures-pbr.md. The game's own written steps for the same job are challenges/solutions/pbr-textures.md.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("textures-pbr", "textures-pbr-variant")in the server command bar. Copy the pass code from Output.
Done means
- MaterialService contains a MaterialVariant named beacon_yard_corrugated
- Its BaseMaterial is CorrodedMetal and its StudsPerTile is greater than 0
- At least one part in Workspace.Yard uses it as its MaterialVariant, set by code (WorldLook slot and MapBuilder), not placed by hand
- The test prints TEST PASS for variant_present, variant_base and variant_applied
Step 10 of 10
Recap
Recap
- Roblox's PBR maps are colour, normal (OpenGL), roughness, metalness and an emissive mask; they change shading only.
- SurfaceAppearance paints one MeshPart through its UVs; MaterialVariant is a tileable material for parts and terrain, sized by StudsPerTile.
- Aim for a steady texel density (built-in parts are 128 px per stud), and use CC0 libraries or Material Maker before paying for Substance.
PBR texture maps is transparent sheets stacked on an overhead projector, each with one instruction for the light, until sheets on a projector can make a flat wall look carved, and so can a normal map, but nothing changes the object's outline, collision or mass: look at the silhouette against the sky and it is smooth.
Queued for review
Next Other tools studios use: Maya, ZBrush, Blockbench, Substance, Marmoset