Skip to content
Search

Grunge Masks

Grunge makes grayscale masks for material work: stains, specks, broken patches, scratches, leaks and cracks that a material can use to drive dirt, wear or roughness. You choose a style, set how much of the mask is lit, and export an 8-bit PNG that tiles. You can also pack three masks into one RGB PNG. Everything runs in your browser.

Grunge is a third Composition in Noise Studio, next to Fractal and Ridged. It is a separate generator with its own controls, not a setting of the Classic Noise terrain generator. Heightmap Studio does not use it.

Grunge has six styles. Stains, Speckles and Patches give organic stains, flecks and broken islands. Scratches, Leaks and Cracks give lines, runs and fracture networks. Choose one under Start from, a compact two-column grid of style cards with a Presets row under it (see Presets), then adjust it in Pattern. Each style has its own controls and defaults. Switching style returns every setting to that style’s defaults and keeps your seed.

Grunge Examples shows Stains, Speckles and Patches side by side at their defaults, and Presets shows every style.

Style Meant for What it makes Default Coverage Coverage range
Stains Moisture, roughness variation, dirt transitions Soft, cloudy mottling 40 % 0 to 100 %
Speckles Dust, flecks, pores, small imperfections Isolated round specks of varied size 10 % 0 to 25 %
Patches Broken paint, irregular material transitions, scattered islands Hard-edged islands with ragged outlines 40 % 0 to 100 %
Scratches Directional surface damage, brushing Fine hairline scratches along a main direction 3 % 0 to at most 10 %, set by Density and Length
Leaks Runs, drips, rain streaks, grime Runs that hang from blots or flow as free streaks, fading toward the end 12 % 0 to 20 %
Cracks Dry earth, paint, concrete, glaze A network of cracks around plates, with secondary cracks between them 12 % 0 to 40 %

With Invert on, every range mirrors to the top of the scale. See Invert.

For Stains, Speckles, Patches and Cracks, Scale is how many structure cells span the tile, so a higher value gives more and smaller features. For Leaks it sets run width and spacing. Scale is always a whole number, because a fractional scale would stop the mask from tiling.

Stains is calibrated fBm noise with soft edges, warped a little. It reads as damp patches or dirt variation, not as liquid stains with tide-line rims. At the default soft Edge, a very low Coverage such as 1 % is faint, because the brightest pixels stay dim. Raise Edge for bright, small stains.

Speckles places round specks on a seeded spot field, with 0, 1 or 2 spots in each cell. During design it was compared with Worley noise and with thresholded Perlin noise. Worley F1 gave an even, equal-size halftone look, F2 minus F1 gave shards and thresholded Perlin gave worm-like bands, so none of them was used. Specks are round-ish blobs, not fibres or very fine grain. Coverage stops at 25 %. See Coverage.

Patches is the most distinct of the three: steepened coarse noise, warped, with a fine chipped outline. Its Warp reshapes the islands without changing their character.

Scratches draws hairline marks along a main direction. Each mark has a short blunt head and a long, tapering, frayed tail. Raising Coverage shows more marks, and the marks stay hairlines. There is no Width control.

Control Range Default What it does
Density (Few to Many) 16 to 400 120 How many scratches the tile holds. With Length, it sets how much Coverage is available.
Length (Short to Long) 10 to 50, percent of the tile edge 30 The mean scratch length. With Density, it sets how much Coverage is available.
Direction 0 to 179° 20° The main direction. 0 runs across the tile, 90 runs down it.
Spread (Parallel to Scattered) 0 to 90° 15° How far each scratch may turn away from Direction. 0 gives parallel brushing.
Variation (Alike to Few deep) 0 to 100 60 From scratches that are all alike to a few deep ones among many faint ones.
Irregularity (Clean to Irregular) 0 to 100 40 Bends, wobble, skips, frayed tails and faint companion lines, together.
Coverage 0 to the ceiling below 3 % The mean brightness of the mask. See Coverage.
Edge 0 to 100 50 Soft to crisp transitions.

The Coverage ceiling follows Density and Length. Scratches are thin, so the most a set can cover without lifting the background grows with the total length of all scratches. The ceiling is Density × Length ÷ 900 percent, rounded down to a tenth of a percent, and never more than 10 %. In the app’s tenths of a percent it is min(100, floor(Density × Length ÷ 90)). At the defaults it is 4.0 %. It reaches 10 % from Density × Length = 9000, and its smallest value is 0.1 %, at Density 16 and Length 10. The Coverage control states the range, for example Available 0 to 4.0 % at this Density and Length., and its slider spans exactly that range.

A value above the ceiling is flagged, not clamped. If you lower Density or Length so that Coverage is outside the range, Noise Lab keeps your value and marks the control, for example Coverage 4.0 % is above the 2.6 % available at this Density and Length. One button, Use maximum (Use minimum with Invert on), sets the nearest valid value. Typing a valid value, or raising Density or Length again, also clears it. While the value is flagged:

  • no new preview is drawn, and the old frame is dimmed and marked Previous settings;
  • the measured values are blank;
  • Export is off, with the same reason and button;
  • Share link and Save to Library refuse with the same sentence.

A share link, recipe file or Library entry with a Coverage outside the range is refused when you open it, like any invalid recipe.

Known weak spots: short scratches with a wide Spread can read as pine needles, Irregularity 100 turns into short dashes, and the edges are clean, with no rough walls or burrs. Thin scratches break into dashes in small exports. See Thin lines and export size.

Leaks makes runs that flow in one direction. Each run has a flat core inside a soft wash, leaves its source with a wide shoulder, then narrows and fades to a soft end. Source moves from free rain streaks to runs that hang from irregular blots and short broken lips.

Control Range Default What it does
Direction 0 to 359° 90° The direction the runs flow in. 90 runs down the tile, 0 to the right, 270 up.
Scale (Wide runs to Thin runs) 3 to 16 7 Run width and spacing. Higher gives thinner runs, and more of them across the tile.
Length (Short to Long) 0 to 100 55 How far the runs reach from their source, from short drips to long streaks.
Source (Free streaks to Blots) 0 to 100 40 From free rain streaks at 0 to runs hanging from blots and broken lips at 100.
Breakup (Solid to Broken) 0 to 100 35 Dry gaps, meander and ragged edges.
Coverage 0 to 20 % 12 % The mean brightness of the mask.
Edge 0 to 100 20 Soft to crisp transitions.

Coverage stops at 20 %, or 80 to 100 % with Invert on. Above that the background turns grey.

Known weak spots: at Source 0 the runs differ from vertical Scratches by their tops, fade and grain, not by their structure. Short runs with wide shoulders can read as funnels or brush tips.

Cracks makes a network of primary cracks around plates. Secondary cracks, longer and slightly curved, mostly run from one primary crack to another or taper out. Scale counts the primary cells across the tile.

Control Range Default What it does
Scale (Large to Fine) 2 to 24 8 Primary cells across the tile. Higher gives more, smaller plates.
Distortion (Straight to Bent) 0 to 100 40 From straight cracks to bent, rough ones.
Width Variation (Even to Varied) 0 to 100 60 How much the width differs between cracks and along each one. Coverage still sets how much the cracks cover.
Breakup (Solid to Fragmented) 0 to 100 20 Gaps in the cracks, in clusters, with tapered ends.
Branching (None to Full) 0 to 100 50 How many secondary cracks split the plates between the main cracks, from none to full subdivision.
Coverage 0 to 40 % 12 % The mean brightness of the mask.
Edge 0 to 100 60 Soft to crisp transitions.

Coverage stops at 40 %, or 60 to 100 % with Invert on. Above that the cracks stop reading as lines.

Known weak spots: the lower third of Branching is subtle at the default Coverage, and at mid Branching some groups of plates have no secondary cracks. A few secondary cracks run nearly parallel to a primary one and leave a sliver. Breakup above about 75 leaves few, thick clusters. Scale 2 shows four cells, so the repeat is obvious when the mask is tiled.

Each style has named presets next to its Default, 16 presets in all, in the Presets row under the style cards. Their thumbnails are real generator output.

  • A preset sets the style’s controls and keeps your seed. Invert returns to off.
  • It is a starting point. The name describes a mask that suits such a surface, not a finished material.
  • When the settings match neither the Default nor a preset, the Presets row shows Custom.
  • Presets are not stored in recipes, share links or Library entries. A recipe stores the values, so saved work never depends on a preset.

Settings that a preset does not list keep the style’s default. Coverage is in percent.

Style Preset Suits Settings
Stains Wet Concrete Large soft damp areas Scale 2, Coverage 55, Edge 15, Breakup 35, Warp 25
Stains Rust Bloom Crisp, broken-up corrosion blotches Scale 6, Coverage 30, Edge 55, Breakup 75, Warp 30
Stains Grime Fine, even dirt film Scale 10, Coverage 25, Edge 20, Breakup 60, Warp 10
Speckles Dust Very fine, sparse specks Scale 56, Coverage 6, Edge 40, Variation 80
Speckles Flecks Few large flecks of mixed size Scale 10, Coverage 15, Edge 90, Variation 90
Patches Chipped Paint Mostly intact coat with sharp chips Scale 5, Coverage 75, Edge 95, Breakup 45, Warp 20
Patches Lichen Ragged, crusty growth Scale 10, Coverage 30, Edge 60, Breakup 85, Warp 60
Scratches Brushed Metal Dense parallel brushing Density 400, Length 40, Direction 20, Spread 2, Variation 30, Irregularity 15, Coverage 6
Scratches Worn Paint Short scuffs in every direction Density 160, Length 20, Direction 40, Spread 70, Variation 80, Irregularity 60, Coverage 3
Scratches Sparse Deep A few long, deep scratches Density 40, Length 40, Direction 20, Spread 30, Variation 100, Irregularity 35, Coverage 1
Leaks Rain Streaks Thin, long vertical streaks Scale 12, Length 85, Source 0, Breakup 30, Coverage 12, Edge 20
Leaks Rust Runs Wide runs from distinct sources Scale 4, Length 70, Source 85, Breakup 30, Coverage 10, Edge 20
Leaks Damp Wash Short, soft, heavy runs Scale 6, Length 30, Source 60, Breakup 50, Coverage 18, Edge 0
Cracks Dry Earth Wide cracks around large plates Scale 5, Distortion 55, Width Variation 90, Breakup 15, Branching 70, Coverage 16, Edge 60
Cracks Paint Craquelure Fine, dense hairline network Scale 16, Distortion 30, Width Variation 40, Breakup 10, Branching 80, Coverage 9, Edge 90
Cracks Concrete Few wandering, broken cracks Scale 4, Distortion 85, Width Variation 80, Breakup 55, Branching 30, Coverage 5, Edge 80

Grunge Examples shows each style’s Default and presets at seed 1337.

Every style has Seed, Coverage, Edge and Invert in Pattern. Reset appears once a setting differs from the style’s defaults. It puts the defaults back and keeps the seed.

Stains, Speckles and Patches add Scale, Breakup and Warp, listed below. Scratches, Leaks and Cracks have their own controls, listed under Scratches, Leaks and Cracks. Output (Mask (grayscale) or Packed RGB, see Packed RGB) is in the Texture section. The export size is chosen in the Export surface. See Preview and export.

Control Range Stains / Speckles / Patches default
Seed Whole number, 0 to 4,294,967,295 1337
Scale (Large to Fine) Whole number. Stains 1 to 16, Speckles 4 to 64, Patches 1 to 12 3 / 24 / 3
Coverage (Sparse to Dense) 0 to 100 %, in tenths of a percent. Speckles: 0 to 25 %, or 75 to 100 % with Invert on 40 / 10 / 40 %
Edge (Soft to Crisp) 0 (soft) to 100 (crisp) 30 / 70 / 90
Breakup (Solid to Fragmented). Labelled Variation (Even to Varied) for Speckles 0 to 100 50 / 60 / 60
Warp (Straight to Twisted) 0 to 100. Not offered for Speckles 15 / none / 30
Invert On or off Off
Output (Texture section) Mask (grayscale) or Packed RGB Mask (grayscale)

The same seed with the same settings always gives the same mask. The seed’s dice button only picks a number.

Coverage is the average brightness of the exported 8-bit mask, as a percent of white. White Area is the share of pixels that are at least 50 % bright, and it is read out separately because the two differ whenever the edges are soft.

Coverage is the mean of the final bytes, so Invert changes the number too: turning it on makes Coverage 100 % minus its value, and the number stays the real mean of the mask (see Invert). For an export of N × N pixels with byte values M, the measured Coverage is the sum of all M, divided by 255 × N × N, as a percent. A mask that is half 255 and half 0 has a Coverage of 50 %. A mask that is 128 everywhere has a Coverage of 50.2 % and a White Area of 100 %.

White Area counts the pixels whose final byte is 128 or more, which is strictly above 50 % when normalized. At a crisp edge nearly every pixel is near 0 or 255, so the two numbers agree. At a soft edge many pixels are grey, and a 40 % Coverage can have a White Area well away from 40 %. In testing, Stains with the softest Edge at Coverage 10 %, 40 % and 75 % had a White Area of 0 %, 35.9 % and 91.5 %.

The contract is that the exported mean is within ±0.5 percentage points of the Coverage you ask for, at 256, 512 and 1024, for every style and setting. A Coverage of 0 % exports all zero bytes and 100 % exports all 255 bytes. The calibration is proven to stay within 0.196 points for any field. The largest error measured in testing was 0.143 points over 82,620 cases of Stains, Speckles and Patches, and below 0.0001 points for Scratches, Leaks and Cracks. Coverage is calibrated at the size you export, so the file is measured again at its own size. See Preview and export.

Edge and Breakup act before Coverage is calibrated, and nothing changes the mask after it, so Coverage holds while you move them. The same holds for the controls of Scratches, Leaks and Cracks.

Speckles stops at 25 %. Beyond a certain Coverage the dark background between specks lifts to grey, and the specks stop reading as specks. In testing the lowest Coverage at which this began was 32 %, with Breakup at 100, and it was 72 % or more at the default Breakup. The 25 % limit is below every onset. With Invert on, the same limit applies mirrored, so Speckles allows 75 to 100 %.

Leaks stops at 20 % and Cracks at 40 %, for the same kind of reason: above that the background turns grey, or the cracks stop reading as lines. Scratches has a ceiling that follows Density and Length, at most 10 %. A value above it is flagged instead of clamped. See Scratches. A short note under Coverage says which limit applies.

Edge sets how soft or crisp the transitions are, from 0 (soft) to 100 (crisp). Coverage stays at its target as you change it, so a softer edge spreads the same brightness over a wider fade instead of lighting more of the mask.

Each style has its own range of transition widths, so the same Edge value is not the same softness in every style. At Edge 0 with Breakup 0, Speckles stay grey because the transition is wider than a speck. The Edge defaults of the new styles are Scratches 50, Leaks 20 and Cracks 60.

Grunge Examples shows Edge and Breakup as a grid: Coverage is the same in every cell, and White Area follows the edge.

Breakup moves a mask from solid to patchy by fragmenting its shapes. For Speckles the control is labelled Variation and sets how much the specks differ in size and strength, from even to varied.

Breakup is folded into the same field before Coverage is calibrated, so Coverage still holds at any setting. For Speckles, Variation changes the size variety, the clustering and the roughness of the outlines, and keeps the number of specks. Specks are not torn apart.

Leaks and Cracks have a Breakup control too. For Leaks it adds dry gaps, meander and ragged edges. For Cracks it adds gaps in clusters, with tapered ends. Scratches has no Breakup: its Irregularity adds skips and frayed tails.

Warp twists the shapes from straight to organic. It is shown for Stains and Patches, where it visibly changes the result. Speckles, Scratches, Leaks and Cracks have no Warp.

Speckles has no Warp because warping tears round specks into crescents: in testing, the elongation of a speck rose from 1.25 to 2.20 across the Warp range, and the number of separate components grew by 42 %. That is a different pattern, not a variation of the same one. For Stains, the warp amplitude is capped on purpose: at Warp 100 they still read as cloudy mottling, and a larger amplitude showed swirl lines.

Invert, a switch in Pattern, flips the mask exactly: every byte becomes 255 minus its value. Turning it on gives the mirror image, byte for byte, of the mask with Invert off at the opposite Coverage.

Coverage always describes the final bytes, with Invert applied. When you switch Invert, a Coverage of 40 % becomes 60 %, and the image flips. That is also why every limit mirrors: Speckles allows 0 to 25 % without Invert and 75 to 100 % with it, Leaks 80 to 100 %, Cracks 60 to 100 %, and Scratches the ceiling mirrored from 100 %. A short note under Coverage says which limit applies. In testing, the flip was byte-exact in all 41,310 cases tested for Stains, Speckles and Patches, and in every case tested for the new styles.

Grunge Examples shows pairs of masks, each the exact flip of the other.

A Grunge mask always tiles, and there is no switch for it: the stage says Always seamless. The right edge continues the left edge and the bottom continues the top, including after Warp. A scratch, run or crack that crosses the border continues on the other side.

“Seamless” does not mean that the first and last pixel rows are identical. The mask is sampled at i / N and j / N, so the last pixel is the neighbour of the first pixel across a periodic boundary and no border pixel is duplicated. Two edge pixels that sit side by side when the tile repeats are neighbouring samples, and they differ the way any two neighbours do. Check the joins with Tiled 2×2, which shows four copies side by side, next to Single. Tiled 2×2 is a view of the preview only. The export is a single tile.

Every stage is periodic by construction: noise with whole-number periods, warp fields that wrap, and spots, lines and cells whose search wraps around the tile. A non-tiling mask offered nothing a tiling one lacks, so the generator has no non-tiling mode. In testing, the continuous field matched across the boundary to within 5e-14, and a one-period shift changed no byte in 32 of 32 cases. For Scratches, Leaks and Cracks a test also compares the jumps across the tile border with those across interior lines of the same mask, and every tested setting passed. Tiling is not the same as having no visible repetition. See Packed RGB.

The preview has a fixed size, whatever export size you choose: 1024 × 1024 for a grayscale Grunge mask and 512 × 512 for Packed RGB. You choose the export size, 256, 512 or 1024 px (and 2048 px in Chromium-based desktop browsers, see Export at 2048), only in the Export surface, under Size (pixels). Changing it does not redraw the preview.

The export is generated at its own size from the recipe, never scaled from the preview, and Coverage is calibrated again at that size. So the file meets the Coverage contract at its own size, and the preview’s read-outs describe the preview. The line under the preview says which case applies.

Situation The page says
Preview and export have the same size Shown exactly as exported: 1024×1024, 8-bit grayscale.
The sizes differ Preview · 1024 × 1024. Export is 256 × 256: same pattern, measured again at that size.
Tiled 2×2 Preview only: four copies side by side. Export is a single seamless tile.
While you adjust Approximate while you adjust.

Shown exactly as exported appears only when the sizes are equal. Then the settled preview holds the same calibrated pixels that the export writes. Nothing is added or changed after Coverage is calibrated.

While you adjust, a change that rebuilds the field first shows an approximate frame, marked Approximate preview: from a 512 grid for a grayscale mask, and from a 256 grid for Packed RGB. The settled frame replaces it when it is ready. The approximate frame is the same field on a coarser grid. It keeps adjusting responsive: in the app’s worker on one machine, a settled 1024 grayscale mask took from under 0.1 s (Scratches) to about 1.5 s (Stains in Firefox), depending on style and browser (see Performance). The grayscale preview is 1024 also when you export at 256, so every edit costs a 1024 mask. A change to Coverage, Edge or Invert does not change the field, so it recalibrates the cached fields, which took under 50 ms. Judge Coverage and edges on the settled frame, not on the approximate one.

The Measured section shows Coverage and White Area of the frame on screen (for each channel in Packed RGB), as the mean of the pixel values and the share of pixels at 50 % brightness or more. When the preview and the export differ in size, it is titled Measured from preview (1024 × 1024). While the frame is approximate, both read with a leading ≈. After an export, the result says Measured Coverage and White Area for the file.

The last size you exported is remembered in this browser and used when Noise Lab starts with its default settings. It is not stored in recipes. A recipe or share link you open always keeps its own size.

Scratches, Leaks and Cracks draw lines. The generator samples them at pixel centres, so a line thinner than about 1.5 pixels at a given size breaks into dashes at that size. In testing at the Scratches defaults, 35 % of the line samples dropped out at 256, 15 % at 512 and 4.2 % at 1024. Cracks at a high Scale and a low Coverage form one connected network only from a Coverage that rises at smaller sizes: at Scale 16, from 3 % at 1024, 8 % at 512 and 12 % at 256.

Because the grayscale preview is always 1024, a 256 or 512 file can look less continuous than the preview. The size control says so: Thin lines can look more continuous in the preview than in the file. For fine settings, export at 1024. A softer Edge also reduces the dashes.

The grayscale export is a true 8-bit grayscale PNG, with one channel and no alpha, named like pullsar_noise_grunge_stains_s1337_512.png. The contract is the decoded pixel values, not the bytes of the PNG file. The same settings give the same pixel values in every browser tested. For Stains, Speckles and Patches, testing rendered 111 reference cases in Node, Chromium, Firefox and WebKit and compared checksums of the final bytes, with no mismatch. For Scratches, Leaks and Cracks, files exported at 256, 512 and 1024 through the Export button in Chromium, Firefox and WebKit decoded to exactly the pixels computed in Node. Real Safari was not tested.

The bytes of the PNG file itself can differ between browsers and encoders, because each compresses in its own way. Compare decoded pixels, not file bytes. The Packed RGB file is described under Packed RGB.

A Grunge mask is an ordinary PNG, and any tool that reads PNG can use it. For Unreal, import it as a texture with sRGB off, because the file holds data and not color. For a mask that repeats, use a Wrap address mode and a whole-number UV scale. The Unreal measurements under Import into Unreal were taken on Packed RGB textures of Stains, Speckles and Patches. The grayscale mask and the Scratches, Leaks and Cracks masks were not measured in Unreal.

Unreal’s default import and the Masks and Default compression settings change the values. The Unreal import panel of Noise Studio’s Export surface advises a grayscale compression setting that keeps exact 8-bit values. With sRGB off and that setting, one Cracks mask at 512 px was sampled in a material in Unreal Engine 5.8.4 and every value matched the file; other styles, sizes and engine versions were not tested. See Importing masks as textures for the settings that were tested for region masks.

Packed RGB puts three Grunge masks into one PNG, one in each of the channels R, G and B. You sample one texture and read three masks from it. Import it as linear data, with sRGB off, because the channels hold data and not color.

Choose it with Output in the Texture section, which offers Mask (grayscale) or Packed RGB. Channels then offers two kinds.

Channels What the three channels hold
Linked One style at three detail scales: R Macro, G Medium, B Micro. See The three channels.
Independent Three separate masks, one per channel. Each holds a complete mask of any style, with its own settings. See Independent channels.

In both kinds, each exported channel is exactly the grayscale mask of its settings, byte for byte. The stage adds Composite, R, G and B buttons to look at the three masks together or one at a time as grayscale. Grunge Examples shows the composite and a sampling check.

In Linked, all three channels use the style and the settings you chose: Coverage, Edge, Invert and the style’s controls. There are no per-channel controls. Only the seed and the size of the pattern differ.

Channel Mask
R Macro Exactly the grayscale mask of the same settings, byte for byte
G Medium The same style and settings, with its own seed stream, at a finer size
B Micro The same style and settings, with its own seed stream, at a finer size still

For Stains, Speckles and Patches, a channel’s Scale is the base Scale times 1, 2 or 4, limited to the style’s maximum (Stains 16, Speckles 64, Patches 12). The Scale hint says that the value you set is channel R, and the Measured section shows the scale of each channel, for example Scale R 24 · G 48 · B 64 max.

Style Default Scale R / G / B at the default
Stains 3 3 / 6 / 12
Speckles 24 24 / 48 / 64 (B at the maximum)
Patches 3 3 / 6 / 12

Scratches, Leaks and Cracks have their own notion of size, so each has its own rule. The Measured section lists the derived values, for example Density R 120 · G 240 · B 400 max.

Style G and B R / G / B at the defaults
Cracks Scale × 2 and × 3, at most 24 Scale 8 / 16 / 24
Leaks Scale × 1.5 and × 2, and Length divided by the same factor, both rounded down and Scale at most 16, so a finer run is also shorter Scale 7 / 10 / 14, Length 55 / 36 / 27
Scratches Density × 2 and × 4 (at most 400), and Length × 0.7 and × 0.5 (rounded up, at least 10) Density 120 / 240 / 400, Length 30 / 21 / 15

The same Coverage draws the finer Scratches channels thinner. A Coverage that is valid for your Scratches settings is valid for G and B too: where Density reaches 400, Length is kept long enough that the ceiling does not drop.

At large base values the channels look alike. Once the limit applies, two or three channels share a size and differ only by seed. Speckles at its default 24 gives 24 / 48 / 64, so G and B have similar spot sizes. For three clearly different spot sizes, use a base Scale of 16 or less. The limit starts early in the narrow ranges: B is limited from base Scale 5 for Stains and 4 for Patches, and from 17 for Speckles. For the new styles, G and B reach the limit from Cracks Scale 12, Leaks Scale 11 and Scratches Density 200. At a 256 export, Speckles B at Scale 64 has cells 4 px wide and specks 1 to 2 px across, and thin Micro lines of the new styles break into dashes at 256 and 512, so use 1024 for fine detail.

Every channel meets the Coverage contract on its own. Each channel is generated by the same evaluator as a grayscale mask and calibrated separately, so its measured Coverage is within ±0.5 percentage points of the Coverage you set at 256, 512 and 1024. The Measured table lists Coverage and White Area for R Macro, G Medium and B Micro, with the leading ≈ while the frame is approximate. Invert is an exact flip of every channel.

The channels are not correlated beyond what unrelated seeds would give. In testing of Stains, Speckles and Patches, at 256 px over seeds 1 to 12, the correlation between channel bytes (|r|) had a median of 0.031 and a maximum of 0.123 for Stains at the default Scale, 0.030 and 0.091 for Patches, and a median of at most 0.016 and a maximum of at most 0.048 for Speckles. The largest value in the shipped-scale cases was 0.183, for Patches at base Scale 2. With all three channels forced to the same scale, they were no more correlated than three unrelated seeds. At base Scale 1, one structure cell covers the tile, and single pairs reached |r| of 0.56 for Stains and 0.55 for Patches, so two channels can look related for some seeds.

In Independent, each channel holds its own complete Grunge settings, of any of the six styles. R can be Cracks, G Leaks and B Stains. Each channel is generated and calibrated like a grayscale export of its settings, so it is byte for byte the standalone grayscale mask at the same size, and it meets the Coverage contract on its own. No Linked rule is applied.

  • Edit channel chooses the channel that the one Pattern editor changes. Its buttons R, G and B each show the channel’s style, and the section titles read like Pattern · Channel G.
  • Choosing a channel to edit never changes what the preview shows. View G, next to the selector, shows the edited channel in one click.
  • The Measured table has one row per channel, such as R · Cracks.
  • The first switch from Linked to Independent starts the three channels from the Linked channels, so the picture does not change. After that, each kind keeps its own settings, and switching back to Linked never merges them.
  • Opening an Independent recipe brings no Linked settings, so Mask (grayscale) and Linked start from its R channel.
  • A channel whose Coverage is outside its range, such as a Scratches channel after you lowered Density or Length, is marked in the edit selector and never changed. An alert names it, with Edit G and Use maximum or Use minimum. Until it is fixed, no preview is drawn, and Export, Share link and Save to Library refuse and name the channel.

The file is named like pullsar_noise_grunge_rgb_cracks_leaks_stains_s7_512.png, with the styles of R, G and B and the seed of R.

The export is a true 8-bit RGB PNG (color type 2) with no alpha channel, named like pullsar_noise_grunge_stains_packed_s1337_512.png for Linked. It has no gamma, sRGB or color-profile chunk, so it carries no color-space information, and no timestamp. At 1024 it holds about 3 MiB of samples before compression. As for the grayscale mask, the contract is the decoded pixel values, not the bytes of the file. In Linked, the R values are the grayscale export of the same settings. In Independent, each channel’s values are the grayscale export of that channel’s settings. In testing, exports at 256, 512 and 1024 in Chromium, Firefox and WebKit matched the reference in every channel, for Linked new styles and mixed Independent textures.

Packed RGB exports at 256, 512 and 1024 px, and at 2048 px where 2048 is available. Its preview is 512 × 512, with an approximate frame from a 256 grid while you adjust. Generating a packed mask costs about three single masks. See Performance.

There are two ways to sample the texture in a material.

  • One sample at a common UV. Sample once and read the three masks together. This needs one texture sample, and each channel keeps the scale it was made at.
  • Several samples of the same texture at different UV scales. For example, read R at 1×, G at 3× and B at 7×. Each channel then has its own repetition frequency.

Both were checked in Unreal on the uncompressed variant: the single sample returned the Macro, Medium and Micro source bytes at every pixel, and the three-scale material returned the expected texel of each channel at every pixel. The odd scales 1×, 3× and 7× put each sample on a texel center, which made an exact check possible. How either looks in a real material, at a distance, with mipmaps or after compression was not judged by a person.

Neither way removes tiling. The embedded frequencies do not remove it. The Macro channel repeats once per texture period in both workflows, and that repetition stays visible over a large surface. With whole-number UV scales such as 1×, 3× and 7×, the combination still repeats every 1× period. Non-integer scales lengthen the period of the combination, but each channel’s own repetition remains. Packed RGB is not an anti-tiling system, and it makes no claim of a repetition-free material.

Always import the PNG with sRGB off. The measurements below are from Unreal Engine 5.8.4 on one machine: a Direct3D 12 editor on an NVIDIA GeForce RTX 4060 Ti, with Oodle Texture as the encoder. They compare the value that a material reads at mip 0 with the exported byte, for Linked Stains, Speckles and Patches at 512 and Stains at 1024, all seed 1337, all with NoMipmaps except the last row. Scratches, Leaks, Cracks and Independent textures were not imported into Unreal. Their PNG container is the same.

Import settings Exact bytes Mean error Coverage shift Memory at 512 / 1024
sRGB off, VectorDisplacementmap, NoMipmaps Every byte of every channel 0 0 1 MiB / 4 MiB
sRGB off, BC7, NoMipmaps 23 to 40 % of Stains bytes, 90 to 95 % of Speckles and Patches bytes Up to 2.25 levels At most 0.014 points 256 KiB / 1 MiB
sRGB off, Masks or Default (DXT1), NoMipmaps 16 to 25 % of Stains bytes, 81 to 95 % of Speckles and Patches bytes Up to 6.2 levels At most 0.10 points 128 KiB / 512 KiB
Default import: sRGB on, Default (DXT1), mipmaps Few: 11 to 14 % in the worst case Up to 38 levels 13.5 to 15 points on Stains 192 KiB / 704 KiB
  • VectorDisplacementmap stores the texture uncompressed as four bytes per pixel. The stored data and the value the material samples both equal the exported bytes in all three channels.
  • BC7 is a quarter of the size. Most Stains values move by a level or two. A few pixels inside a 4 × 4 block on small hard features can be off by more than 32 levels (at most 0.22 % of Speckles pixels, by up to 175 levels). No cross-talk showed on the isolation textures.
  • Masks and Default with sRGB off gave identical data and renders. They are half the size of BC7, but up to 6 % of Speckles pixels are off by more than 32 levels, and a hard edge in one channel moved another channel by up to 3 levels next to it.
  • The default import moves Stains Coverage by 13.5 to 15 points, mostly from the sRGB decode. Fixing only the compression does not fix it: sRGB must be off.

The recommendation follows from these measurements.

  1. Always turn sRGB off.
  2. For exact values, for example to threshold at the Coverage you designed, use VectorDisplacementmap with NoMipmaps. The material editor picked the LinearColor sampler type for it.
  3. For ordinary material use, where a small value error is acceptable, use BC7 with sRGB off.
  4. Use Masks or Default only where memory matters more than fine detail.

Lossy compression does not keep the exported values. With any block-compressed setting, the values a material reads differ from the exported bytes. Most pixels differ slightly and a few can differ almost fully. The byte contract of the PNG does not carry through a lossy setting, so there is no exact-value promise after compression.

Not tested: Unreal Engine versions other than 5.8.4, other graphics APIs and GPUs, mobile and console texture formats, cooked and packaged builds, mipmap values beyond mip 0, texture streaming and virtual textures, other compression settings (Grayscale, Alpha, Normalmap and others), PCG sampling of a packed texture, the new styles and Independent textures, and visual quality judged by a person. Mipmaps average neighboring texels: a mipmap keeps the mean of a channel up to rounding, but not its White Area or the crispness of its edges. The values were not measured in mips beyond the first.

The PNG works in any tool that reads PNG. Unreal is the engine of the validation, not the only supported one. Noise Lab does not include an Unreal plugin or a material.

A Grunge mask is stored as a recipe. It works with the Library, recipe files and share links like other recipes.

Recipe Schema
Stains, Speckles or Patches, grayscale or Linked Packed RGB 6, written exactly as Noise Lab v1.1.0 writes it
Scratches, Leaks or Cracks, grayscale or Linked Packed RGB 7
Independent Packed RGB, any styles 7

A recipe file is named like pullsar_noise_recipe_grunge_stains_s1337.json, with packed added for Linked Packed RGB (pullsar_noise_recipe_grunge_stains_packed_s1337.json) and the three styles for Independent (pullsar_noise_recipe_grunge_rgb_cracks_leaks_stains_s7.json). Only the kind of Packed RGB shown is stored, so a shared link opens the same channels. The recipe stores the export size. Presets are not stored. Every value is stored as a whole number, and Coverage in tenths of a percent. The limits are those of other recipes, 16 KiB for a file and 4,096 characters for a share link. A default Grunge recipe is about 300 to 400 bytes, and the largest Independent recipe is under 1 KiB.

Recipes, share links and Library entries from v1.1.0 open unchanged and keep their export size. Noise Studio Fractal and Ridged recipes keep their schema and their bytes. Noise Lab v1.1.0 refuses a schema 7 recipe as coming from a newer version and applies nothing. A build that does not know Grunge, such as Noise Lab v0.6.1 or earlier, refuses every Grunge recipe in the same way. See Saving and Sharing.

  • Coverage is limited for four styles: Speckles 0 to 25 %, Leaks 0 to 20 %, Cracks 0 to 40 %, and Scratches up to 10 %, set by Density and Length. With Invert each range mirrors.
  • Export sizes are 256, 512 and 1024 px in every browser. 2048 px is available only in Chromium-based desktop browsers. 4096 is not available.
  • The preview has a fixed size. With a smaller export, thin scratches, cracks and leak streaks can look more continuous in the preview than in the file, and they break into dashes at 256 and 512.
  • Linked Packed RGB has one set of controls for all three channels. At large base values the channels look alike, and the limit on Scale makes G and B alike for Speckles at its default. Use Independent for three separate masks.
  • There is no mesh-aware wear, no layer stack and no node graph. Only Scratches and Leaks have a direction.
  • Stains is the least specific style: soft mottling, with no tide-line rims.
  • Tested in Node, Chromium, Firefox and WebKit builds run as automated tests. Not tested: real Safari, memory use and GPU paths. Packed RGB of Stains, Speckles and Patches was measured in Unreal Engine 5.8.4 only, on one machine; see Import into Unreal for what was not tested.
  • Grunge is for textures. It has no effect on terrain, and it does not simulate dirt, wear or erosion. The masks are noise that you use in a material.