[Update] October 27, 2026
Hi Creators,
Starting today, Custom Terrain Materials and the first set of rendering, storage, and delivery improvements have exited Early Access and are fully supported. You can now publish games that use these features and anyone on Roblox can play them. Places you edited during early access with Custom Terrain Materials are live for everyone based on their publish status, both in Studio and in the Roblox app.
This is the start of making terrain more expressive and performant on every device so that you can build larger and more varied worlds with far less impact on load time.
Opting In to Expanded Terrain
To enable Custom Terrain Materials and the first set of rendering, storage, and delivery improvements:
-
Update and restart Studio.
-
Open the place where you want to enable these features.
-
Select Workspace in the Explorer.
-
In the Properties panel, change Expanded Terrain from Default to Enabled.
-
Save the place, close it, and reopen it.
Note: If you have places that were edited while in the Terrain Early Access program, you still need to go through steps 3 and 4 to re-enable all the features for your place. Custom materials might show up as grass unless you go through these steps.
Custom Terrain Materials: Paint Onto Terrain
Custom Terrain Materials let you define up to 62 materials to paint onto terrain. Use them to create distinct environments within a single place or add variety to an existing landscape with new colors and shades.
Read our documentation to learn more about Custom Terrain Materials.
Performance Improvements
With this launch, we’re also rolling out some important optimizations that significantly reduce terrain’s contribution to place file size and improve streaming and load times. In one benchmark, these updates reduced CPU memory overhead by 90% and meshing latency by 45%.
Before Terrain Loading Optimizations
After Terrain Loading Optimizations
These are just the first set of performance improvements we’re making to terrain. As we roll out new features, we’ll make sure that terrain can be performant on any device.
What’s Changed Since Early Access
Based on your feedback during Early Access, we’ve made several quality-of-life fixes, including:
-
Added sorting to the quick context menu.
-
Synced material selection between the Terrain Material Manager and the Terrain Editor brush.
-
Fixed the color picker to close correctly when clicking away to another screen.
-
Updated so windows now resize properly to your device’s screen.
-
Moved the Terrain Materials Manager out of the Studio ribbon and into the Window > 3D system menu. You can still open it quickly by right-clicking a material in the terrain editor material picker.
These were just some of the highlights, but there were many other fixes and improvements. Thank you again for reporting bugs and sharing feedback throughout the testing period.
Known Issues and Limitations
There are still improvements we’d like to make. For your visibility, below are some of the items that we’ve identified and are actively working on. If there is anything that you find that isn’t on the list below, we’d love to hear it.
- When you enable the new features, you’ll be prompted to reopen the place for the changes to be applied. However, if it’s a place you have not saved to Roblox before, it won’t re-open automatically. You’ll need to select the place in the start screen.
- For Team Create enabled places, after changing the Expanded Terrain setting, the restart prompt is not yet sufficient to apply the new changes. You need to exit the place and wait about 15 seconds before reopening it.
- Custom physical properties (part of the Material Variant properties) aren’t respected by the custom Terrain material slots yet.
- Thin terrain features (less than 16 voxels thick) might disappear on client/playmode when streaming radius is small and streaming is enabled. This can be fixed by adding thickness to the terrain. With ExpandedTerrain, making terrain thinner than 16 voxels saves little or no memory, so we don’t recommend thinning terrain as a memory optimization.
To resolve the issues created by thin terrain, you can try the following script to thicken your terrain, note that it might have difficulties with caves:
Click to expand code snippet
--[[ Extend Terrain Downward
For every X/Z column, finds the lowest solid voxel and fills EXTEND_VOXELS below it
with that column's bottom material. Optionally does the same for free-hanging water
(EXTEND_LIQUID).
Run: Studio, Edit mode -> paste into the Command Bar -> Enter. Progress prints to Output.
BEFORE RUNNING: save a copy of the place. Undo is not reliable for terrain writes this large,
and the script is NOT idempotent: every run extends another EXTEND_VOXELS.
Config:
SCAN_MIN/MAX_STUDS Set to just cover your map; smaller is much faster. The window's bottom
must be BELOW all terrain: columns whose bottom touches the scan floor are
skipped (and reported), because their real bottom can't be seen.
EXTEND_VOXELS How far to extend, in 4-stud voxels.
TILE_VOXELS X/Z tile size per read. Shrink if a read errors on size (~4.19M voxel cap).
EXTEND_LIQUID Also extend water downward. Only useful for water with nothing under it
(e.g. a floating ocean sheet); water on a lakebed just hits solid.
CARVE_SOLID_UNDER_LIQUID
With EXTEND_LIQUID, replace solid in the band with water. This carves
lakebeds away; almost never what you want.
Limits:
- Only each column's bottom-most voxel is extended; overhangs and cave ceilings are not.
- The solid extension clears any water in the band (e.g. water under a floating island).
- Columns entirely above SCAN_MAX_STUDS.Y are not touched.
- Expect minutes on large windows.
Output: per-tile progress, then voxel counts and the X/Z/Y extent of the column bottoms found
(use it to tighten SCAN_MIN/MAX_STUDS for the next run).
]]
local Terrain = workspace.Terrain
local VOXEL_RESOLUTION = 4 -- Read/WriteVoxelChannels only support 4
local EXTEND_VOXELS = 16 -- 64 studs
local TILE_VOXELS = 64 -- 256-stud X/Z tiles
local EXTEND_LIQUID = false
local CARVE_SOLID_UNDER_LIQUID = false
local SCAN_MIN_STUDS = Vector3.new(-8192, -256, -8192)
local SCAN_MAX_STUDS = Vector3.new(8192, 256, 8192)
local RES = VOXEL_RESOLUTION
local EXTEND_STUDS = EXTEND_VOXELS * RES
local TILE_STUDS = TILE_VOXELS * RES
local AIR = Enum.Material.Air
local SCAN_CHANNELS = {"SolidOccupancy", "LiquidOccupancy"}
local BAND_CHANNELS = {"SolidMaterial", "SolidOccupancy", "LiquidOccupancy"}
local function alignDown(v) return math.floor(v / RES) * RES end
local function alignUp(v) return math.ceil(v / RES) * RES end
local scanMin = Vector3.new(alignDown(SCAN_MIN_STUDS.X), alignDown(SCAN_MIN_STUDS.Y), alignDown(SCAN_MIN_STUDS.Z))
local scanMax = Vector3.new(alignUp(SCAN_MAX_STUDS.X), alignUp(SCAN_MAX_STUDS.Y), alignUp(SCAN_MAX_STUDS.Z))
local stats = {
solidVoxelsWritten = 0,
liquidVoxelsFilled = 0,
liquidVoxelsClamped = 0,
clippedColumns = 0,
}
-- Extent of the column bottoms found, before extension. Scalars to avoid per-column Vector3 churn.
local bottomsMinX, bottomsMaxX, bottomsMinZ, bottomsMaxZ, bottomsLowestY, bottomsHighestY
local function regionMinCorner(region)
return region.CFrame.Position - region.Size / 2
end
local function recordBottomExtent(worldX, worldZ, bottomY)
if not bottomsMinX then
bottomsMinX, bottomsMaxX, bottomsMinZ, bottomsMaxZ = worldX, worldX + RES, worldZ, worldZ + RES
bottomsLowestY, bottomsHighestY = bottomY, bottomY
return
end
bottomsMinX = math.min(bottomsMinX, worldX)
bottomsMaxX = math.max(bottomsMaxX, worldX + RES)
bottomsMinZ = math.min(bottomsMinZ, worldZ)
bottomsMaxZ = math.max(bottomsMaxZ, worldZ + RES)
bottomsLowestY = math.min(bottomsLowestY, bottomY)
bottomsHighestY = math.max(bottomsHighestY, bottomY)
end
--[[ Finds the bottom-most occupied voxel of every column in one tile snapshot.
Returns { bottomYByColumn[ix][iz] = world min-Y of that voxel, lowestY, highestY }, where
lowestY/highestY are nil if the tile has no usable columns. A column whose bottom is the
scan floor is skipped: its real bottom may be lower, and extending from the floor would
overwrite terrain that already exists below the window. ]]
local function findColumnBottoms(occupancy, size, minCorner)
local bottoms = {bottomYByColumn = {}, lowestY = nil, highestY = nil}
for ix = 1, size.X do
local bottomYByZ
for iz = 1, size.Z do
local bottomIy
for iy = 1, size.Y do
if occupancy[ix][iy][iz] > 0 then
bottomIy = iy
break
end
end
if bottomIy == 1 then
stats.clippedColumns += 1
elseif bottomIy then
local bottomY = minCorner.Y + (bottomIy - 1) * RES
bottomYByZ = bottomYByZ or {}
bottomYByZ[iz] = bottomY
bottoms.lowestY = math.min(bottoms.lowestY or bottomY, bottomY)
bottoms.highestY = math.max(bottoms.highestY or bottomY, bottomY)
recordBottomExtent(minCorner.X + (ix - 1) * RES, minCorner.Z + (iz - 1) * RES, bottomY)
end
end
bottoms.bottomYByColumn[ix] = bottomYByZ
end
return bottoms
end
--[[ Reads the band from EXTEND_STUDS below the tile's lowest bottom up to and including its
highest bottom voxel. Re-reading (instead of reusing the scan snapshot) picks up voxels below
the scan window and any writes from an earlier pass. Including the bottom voxels lets the solid
pass copy each column's material without reading SolidMaterial for the whole tile. ]]
local function readBandBelowBottoms(tile, bottoms)
local bandRegion = Region3.new(
Vector3.new(tile.minX, bottoms.lowestY - EXTEND_STUDS, tile.minZ),
Vector3.new(tile.maxX, bottoms.highestY + RES, tile.maxZ)
):ExpandToGrid(RES)
local band = Terrain:ReadVoxelChannels(bandRegion, RES, BAND_CHANNELS)
return bandRegion, band, regionMinCorner(bandRegion).Y
end
local function writeBand(bandRegion, band)
Terrain:WriteVoxelChannels(bandRegion, RES, {
SolidMaterial = band.SolidMaterial,
SolidOccupancy = band.SolidOccupancy,
LiquidOccupancy = band.LiquidOccupancy,
})
end
-- Fills EXTEND_VOXELS of full solid under each column bottom, using that column's bottom material.
local function extendSolidBelowColumnBottoms(tile, bottoms)
local bandRegion, band, bandMinY = readBandBelowBottoms(tile, bottoms)
for ix, bottomYByZ in pairs(bottoms.bottomYByColumn) do
for iz, bottomY in pairs(bottomYByZ) do
local bottomIy = (bottomY - bandMinY) / RES + 1
local bottomMaterial = band.SolidMaterial[ix][bottomIy][iz]
for iy = bottomIy - EXTEND_VOXELS, bottomIy - 1 do
band.SolidMaterial[ix][iy][iz] = bottomMaterial
band.SolidOccupancy[ix][iy][iz] = 1
band.LiquidOccupancy[ix][iy][iz] = 0 -- solids cannot hold water
end
stats.solidVoxelsWritten += EXTEND_VOXELS
end
end
writeBand(bandRegion, band)
end
-- Fills EXTEND_VOXELS of water under each water column bottom. WriteVoxelChannels drops water in
-- fully solid voxels (Voxel2::Cell zeroes it at max occupancy); partially solid voxels keep both
-- values unclamped. So fully solid voxels are skipped unless CARVE_SOLID_UNDER_LIQUID.
local function extendLiquidBelowColumnBottoms(tile, bottoms)
local bandRegion, band, bandMinY = readBandBelowBottoms(tile, bottoms)
for ix, bottomYByZ in pairs(bottoms.bottomYByColumn) do
for iz, bottomY in pairs(bottomYByZ) do
local bottomIy = (bottomY - bandMinY) / RES + 1
for iy = bottomIy - EXTEND_VOXELS, bottomIy - 1 do
if band.SolidOccupancy[ix][iy][iz] < 1 then
band.LiquidOccupancy[ix][iy][iz] = 1
stats.liquidVoxelsFilled += 1
elseif CARVE_SOLID_UNDER_LIQUID then
band.SolidMaterial[ix][iy][iz] = AIR
band.SolidOccupancy[ix][iy][iz] = 0
band.LiquidOccupancy[ix][iy][iz] = 1
stats.liquidVoxelsFilled += 1
else
stats.liquidVoxelsClamped += 1
end
end
end
end
writeBand(bandRegion, band)
end
-- Scan the window tile by tile. Yield periodically so Studio doesn't kill the run on the script
-- timeout, and print progress so a multi-minute run isn't a silent hang.
local totalTiles = math.ceil((scanMax.X - scanMin.X) / TILE_STUDS) * math.ceil((scanMax.Z - scanMin.Z) / TILE_STUDS)
local doneTiles = 0
local startTime = os.clock()
local lastYieldTime, lastPrintTime = startTime, startTime
print(string.format("scanning %d tiles over %s .. %s ...", totalTiles, tostring(scanMin), tostring(scanMax)))
for tileMinX = scanMin.X, scanMax.X - RES, TILE_STUDS do
for tileMinZ = scanMin.Z, scanMax.Z - RES, TILE_STUDS do
local tile = {
minX = tileMinX,
maxX = math.min(tileMinX + TILE_STUDS, scanMax.X),
minZ = tileMinZ,
maxZ = math.min(tileMinZ + TILE_STUDS, scanMax.Z),
}
-- One full-height scan; both passes locate their bottoms from this pre-write snapshot.
local scanRegion = Region3.new(
Vector3.new(tile.minX, scanMin.Y, tile.minZ),
Vector3.new(tile.maxX, scanMax.Y, tile.maxZ)
):ExpandToGrid(RES)
local snapshot = Terrain:ReadVoxelChannels(scanRegion, RES, SCAN_CHANNELS)
local scanMinCorner = regionMinCorner(scanRegion)
local solidBottoms = findColumnBottoms(snapshot.SolidOccupancy, snapshot.Size, scanMinCorner)
local liquidBottoms = EXTEND_LIQUID and findColumnBottoms(snapshot.LiquidOccupancy, snapshot.Size, scanMinCorner)
if solidBottoms.lowestY then
extendSolidBelowColumnBottoms(tile, solidBottoms)
end
if liquidBottoms and liquidBottoms.lowestY then
extendLiquidBelowColumnBottoms(tile, liquidBottoms)
end
doneTiles += 1
local now = os.clock()
if now - lastPrintTime > 2 then
local fractionDone = doneTiles / totalTiles
local etaSeconds = (now - startTime) * (1 - fractionDone) / fractionDone
print(string.format("[%d/%d] %.1f%% | elapsed %.0fs | eta %.0fs | solid=%d liquid=%d clamped=%d",
doneTiles, totalTiles, fractionDone * 100, now - startTime, etaSeconds,
stats.solidVoxelsWritten, stats.liquidVoxelsFilled, stats.liquidVoxelsClamped))
lastPrintTime = now
end
if now - lastYieldTime > 0.1 then
task.wait()
lastYieldTime = os.clock()
end
end
end
if stats.clippedColumns > 0 then
warn(string.format("skipped %d columns whose bottom touches the scan floor (y=%d); lower SCAN_MIN_STUDS.Y and re-run on a fresh copy",
stats.clippedColumns, scanMin.Y))
end
if not bottomsMinX then
print(string.format("No extendable terrain found in scan window %s .. %s.", tostring(scanMin), tostring(scanMax)))
return
end
print(string.format("column bottoms (pre-extend): x %d..%d | z %d..%d | y %d..%d",
bottomsMinX, bottomsMaxX, bottomsMinZ, bottomsMaxZ, bottomsLowestY, bottomsHighestY))
print(string.format("solid voxels written=%d | liquid filled=%d | liquid clamped-by-solid=%d",
stats.solidVoxelsWritten, stats.liquidVoxelsFilled, stats.liquidVoxelsClamped))
What’s Next for Terrain
So much. Check out our recent announcements from RDC: everything from spline-based pathing tools, to a new scattering system, to projected decals on terrain, and more. You can also watch the RDC breakout session where we went in-depth on each of these features. Our team is hard at work getting them into Early Access by the end of the year.
If you haven’t already, apply to the Early Access Program to try out these features right when they enter early access. If you’re already part of early access for Custom Terrain Materials or the other improvements, you don’t have to apply again.
Keep building and let us know if you have any questions or feedback below!
FAQs
Wait, 62 different custom materials? I thought the first announcement said 64?
- In our first announcement, we counted “Water” and “Air” in this number. Since they’re currently read-only, we’re correcting the total count of editable terrain materials to 62 to be more accurate.
Are the improvements announced at RDC in the Early Access Program yet?
- Not yet. We’re collecting sign-ups now so that we know who to notify when they are put into Early Access. The entire team is just as excited to get these in your hands, but we have to make sure they’re stable before we do. By signing up for the Early Access Program you’ll be first in line to try them out, and we’ll send you an email to let you know when the new features are added.
Will the upcoming improvements be in the the same Early Access Program as Custom Terrain Materials?
- Yes. It’s all one Terrain Early Access Program. Sign up once and learn about each new feature as it’s added.
Can I edit the custom terrain materials?
- Yes. With the exception of Water and Air, all terrain materials are editable, including the ones we provide by default.







