Granite renders — ashlar_test_sawn_honed on material_plane_uv
Cycles (Metal), 512×512, seed 0. Distance is the material_plane_uv camera dist_mult (default 0.8).
Rectangular crystals: pink color matched to photo (round 25)
Median rendered pink-crystal color vs photo (sRGB): photo 0.702 / 0.608 / 0.537 (hue .071, sat .23, value .70). r25_b: 0.698 / 0.600 / 0.533 (hue .067, sat .24, value .70). Material pink: a h.050 s.52 v.15; b h.055 s.56 v.15; c h.050 s.58 v.16; d h.055 s.52 v.16.
Rectangular crystals: lighter red crystals (round 24)
Base r23_b (white crystals 0.24). Pink crystal value a 0.15, b 0.18, c 0.21 (was 0.125), saturation lowered slightly as value rises; d = b with white crystals 0.32.
Rectangular crystals: brighter white crystals (round 23)
a/b: r22_a with white crystal value 0.18 / 0.24 (was 0.13). c/d: r22_c with 0.18 / 0.24.
Rectangular crystals: darker overall, more matrix showing (round 22)
Smaller crystals relative to their cells so more dark matrix shows; white crystals fewer/dimmer; matrix 0.008–0.012, specks 0.0025. a: pink fill .24 white .22; b: .22/.20, dimmer white; c: .24/.20, darker matrix; d: .21/.18, darker matrix.
Rectangular crystals: matrix just slightly lighter than black specks (round 21)
Matrix gray value a 0.012, b 0.016, c 0.020 with specks 0.004; d matrix 0.016 with darker specks 0.0025.
Rectangular crystals: lighter matrix (round 20)
Based on r19_d; matrix gray value raised: a 0.045, b 0.055, c 0.065, d 0.055 with more matrix-grain coverage. Black flecks unchanged.
Rectangular crystals: matrix lighter than black specks, brighter pink (round 19)
Matrix raised to mid-dark gray so black flecks stand out against it; pink crystals brighter. Stats (mean / dark<0.25 / light>0.6): photo 0.55 / 8% / 46%; r19_a 0.54 / 6% / 37%; r19_d 0.56 / 6% / 46%.
Rectangular crystals: no matrix sparkles, two white-crystal sizes, black flecks on top (rounds 16–18)
Photo then variants; top full view, bottom zoom. Tiny bright grains removed from the matrix; white crystals in two size populations; irregular black flecks (thresholded warped noise) drawn on top of pink and white crystals.
Round 18 (current): more exposed dark matrix, larger/more black flecks. Stats (mean / dark<0.25 / light>0.6): photo 0.55 / 8% / 46%; r18_a 0.50 / 10% / 25%Round 17: irregular black flecks — too few and smallRound 16: round black dots (rejected shape)
Rectangular crystals: streaks in white crystals too (round 15)
White crystals get their own per-crystal streaks along their long axis. a/b: round-14 a + white streak 0.3 / 0.45. c/d: round-14 d + white streak 0.35 / 0.5. Top full view, bottom zoom.
Patches 0.35–0.5× crystal cell; streaks computed in each crystal’s own frame, running along its long axis, offset per crystal. Photo then variants; top full view, bottom zoom.
Each strip: photo then variants; top full view, bottom zoom. Same geometry as round 10 (r10_a).
Round 13: crisp medium-scale lighter/darker patches (thresholded noise) + moderate grain and specks; patch size 0.15 / 0.1 / 0.2 / 0.12 × crystal cell, strength 0.8–1.2Round 12: fine sandy grain + small dark/light specks — reads as fine noiseRound 11: r10_a (no mottle) then soft multi-scale clouds at strength 0.6 / 0.8 / 1.0 — blurry blotches
Rectangular crystals: white crystals + per-crystal variation (rounds 7–10)
Each strip: photo then variants; top full view, bottom zoom.
Round 10 (current): per-crystal aspect (1–3), size (±45%), rotation jitter; white crystals; fewer layers, larger crystals so matrix showsRound 9: smaller crystals within cells — too many layers, matrix mostly hiddenRound 8: first per-crystal aspect/size — too large, clipped to polygonal cellsRound 7: added white rectangular crystals — but uniform rectangles
Rectangular crystals: look tuning (rounds 3–6)
Each strip: photo then four variants; top row full view, bottom row zoom.
Round 6 (current): crystals separated again, grayer matrix (less white, fewer black flecks)Round 5: denser crystals — merged into a pink fieldRound 4: deeper salmon crystals, coarser matrix grains, rougher edgesRound 3: soft edges, per-crystal gray/dull variation — still pastel, matrix too bright
Rectangular crystals (prototype): Chebyshev Voronoi instead of warped Voronoi
Pink laths come from square-metric (Chebyshev) Voronoi cells, stretched and rotated, each shrunk by its own random size so it reads as a separate rectangle; several layers at different angles overlap; only a tiny edge warp. Matrix = granite() with feldspar off (dark background, gray/white quartz, black mica). Prototype module outside the repo.
Round 2: smaller, denser, 3–5 orientations, darker matrix, crystal mottleRound 1: rectangles work but too large, too few, flat
Lath-shaped crystals (new feldspar_elongation / feldspar_orientation in granite())
Pink porphyritic tile test via granite(): pink feldspar laths over a dark background with a gray/white quartz layer and black mica. e = elongation, warp = per-grain warp strength, spread = crystal coverage, lac = edge lacunarity, qs = quartz spread.
Palette: green made rare (2%), dark only, with green-black matrix
Each feldspar family forced, geometry fixed. Top: granite_porphyritic_rand. Bottom: granite_salt_pepper_rand. Green now hue 0.30, saturation 0.22, value 0.03 (was 0.05), always over a green-black matrix; never used as a second shade; green-black matrix no longer paired with other families.
New shared palette sampler (both generators)
Feldspar (light-grain) color from 8 natural families weighted by commonness (white .12, gray .24, cream .18, pink .12, red .06, gold .08, green .06, near-black .14); 30% of stones mix a second family as the second shade; base/matrix hue sampled independently (neutral, smoky brown, blue-gray, green-black); base/matrix value set below the grain value.
Each feldspar family forced (geometry fixed at range midpoints)
Full mosaic of base grains with a sparse, clustered sprinkle of small light grains and dark grains. Head-on, frame ~0.3 m crop, 512×512.
granite_salt_pepper_rand: each parameter at its min and max
One random draw pinned to its range min or max, all others at midpoint; geometry rows in neutral gray.
(granite_inset_rand is now named granite_porphyritic_rand.)
granite_inset_rand (current, with global warp axis): 32 random samples
Interiors unwarped; global warp strength 0.3–6 at 0.1–2× grain size. Head-on, frame ~0.3 m crop, 512×512.
granite_inset_rand: each parameter at its min and max
The real generator with one random draw pinned to its range minimum or maximum and every other draw at its range midpoint. Geometry rows use a neutral gray palette ("all mid" = every draw at midpoint). Color rows pin the palette draw only.
Specks and streaks with their own warps (independent of global warp)
Each preset, full + zoom: original (top), interiors unwarped (middle), plus own speck/streak warp (bottom). Speck warp: 1× speck size, strength 1.5. Streak warp: 0.5× grain size, strength 3.
All presets with interior textures unwarped (small 0.1×-grain warp only)
Top two rows: before (full + zoom). Bottom two rows: after. Grain shapes and gaps unchanged; only grain-interior color texture, mottle, specks, and streaks changed.
New optional granite() parameter. Top two rows: texture_warp=1 (current behavior; full view + zoom). Bottom two rows: texture_warp=0 (interior mottle, color texture, specks sampled unwarped; grain shapes and gaps still warped). Columns: tile red with global warp 4 @ 6 mm; @ 12 mm; gray coarse with global warp 4 @ 6 mm; black preset as-is.
Ablations: why out-of-range presets still look acceptable
Row 1: black preset with each out-of-range value moved into granite_inset_rand's range (b6 = all at once). Row 2: same for gray coarse (c7 = all at once). Row 3: tile red with global warp strength 4 (t5: 2) at increasing warp scale (grain = 12 mm). Rendered on Ionic, 4 GPUs.
granite_inset_rand: verification sweep within its ranges (keep fixed at 1)
Baseline = range midpoints, neutral gray. Rows: one axis at a time; last row: worst-case swirl corners (least swirl = strength 2.5, scale 0.4, lacunarity 2.0; most swirl = strength 4.5, scale 1.5, lacunarity 1.5).
granite_inset_rand: 32 random samples
Head-on, frame ~0.3 m (crop shown), 512×512, 32 spp. Geometry and palette sampled independently.
Inset-grain generator: per-axis geometry sweeps
Baseline: neutral gray, 12 mm grains, spread 0.8, per-grain warp 3 at 0.5× grain size, global warp 0.3. Each row varies one parameter (value under each tile); everything else at baseline.
Color sweep: fixed geometry (red tile h5), 12 sampled palettes
Geometry identical in every tile; only grain color (hue/saturation/value) and matrix hue/tint/value are sampled. Warm hues 0–0.12 (60%) or cool 0.5–0.65; grain value log-uniform 0.04–0.16; matrix value 0.002–0.006; matrix hue matches grains 60% of the time. Labels: h=hue, s=saturation, v=value.
Paving tiles: h5 streak structure applied to all three
Same grain/streak settings for every tile (12 mm grains, spread 0.915, per-grain warp, global warp nearly off); only color and speckle differ. Photo left, render right: red, light gray, dark gray.
Current presets: red h5, light s3, dark s3 (dark specks enabled)s2 — dark overshot into splatter; light still had no speckss1 — first transfer: light/dark interiors too plain
Paving tiles (red): h5 — between h1 and h2
h1 (spread 0.90), h5 (0.915, current), h2 (0.93)
Paving tiles (red): h4 — between h2 and h3
h2 (spread 0.93), h4 (0.94), h3 (0.95)
Paving tiles (red): broken-up individual streaks
Same as g3 with narrower gaps (higher spread): gaps close where grain edges overlap, leaving separate short streaks.
h1 (spread 0.90), h2 (0.93), h3 (0.95)
Paving tiles (red): per-grain warp only, no global stretch
Large spread tile-colored grains (12 mm), each warped by its own grain-scale warp; global warp nearly off. Matrix shows through as warped streaks.
Paving tiles (red): streaks from exposed matrix only — no vein layer
Tile color on large crystals with straight-sided cells (high lacunarity) and a gentle, large-scale warp; the near-black matrix shows only in the thin gaps between crystals.
q4, q5, q6 — thin continuous dark lines from the matrix; grain interiors look smeared/marbledq7, q8 — granular interiors, lines clearer, but color flattened to pinkish grayq1–q3 — first continuous matrix lines, gaps too wide (crazy paving)n1 (red), n1 (dark), n2 — strong warp: gaps stretch into blotchesm1–m3 — 3-octave grain edges: gaps break up into patches
Paving tiles: continuous squiggly veins (new vein layer in granite())
Each strip: photo crop (left) vs render; red, light gray, dark gray top to bottom.
f1 (current presets): vein cells 10 mm, 55% of network keptf3: bolder, but bunched into patches with ink-blot junctionsf2: shorter, sparser strokes — too faintfirst visible veins on the red tile (v9, v10)vein layer alone (debug): width 0.05 vs 0.01
Paving tiles: thin swirly dark streaks (red / dark gray)
Same mechanism as the light tile: narrow gaps between large warped grains with near-black showing through.
c3 (current presets): 14 mm grains, thin gaps, strong warp — red (top), dark gray (bottom)c1, c2 for red then dark — smaller grains: lines short and lost in texture
Fourth photo: three paving tiles (red / light gray / dark gray)
Current presets — photo crop (left) vs render (right): granite_tile_red_preset (r7), granite_tile_light_preset (l8), granite_tile_dark_preset (d7)
Reference photo 4
Iterations
red r8 / dark d8 — more flecks: lost color (rejected)red r7 / dark d7 (current) — no banding, swirldiagnostic: banding removes quartz, exposing a pale backgroundr6 / d6r5 / d5r4 / d4r3 / d3r2 / d2light l8 (current) / l9 — crack networklight l6 / l7light l4 / l5light l2 / l3first pass r1 / l1 / d1
granite_black_rand: random samples, seeds 1–8
Preset granite_black_preset = s5 below. Head-on, frame ~0.3 m, 512×512, 32 spp (shown at 256 px).
seed 1seed 2seed 3seed 4seed 5seed 6seed 7seed 8
Black granite: more swirl
s4 (top), s5 (bottom, current preset): large-scale warp (ratio 0.6 / 1.0 of grain size, strength 3.5 / 4) with grain contrast restored. Each strip: photo edge, full render, zoom.s1–s3 — stronger warp: grains smear into flat blotches, contrast lost
Third photo: black granite — granite_black_preset
Matched against the flamed top edge, where the texture is visible (the polished front face is the same stone at lower contrast). Each strip: photo edge crop, full render (frame ~0.3 m), zoomed render.
b5 (top), b6 (bottom): mid-gray blue-gray grains inset in a near-black network. Photo edge: mean 0.165, 47% below 0.15. b6: mean 0.211.
Reference photo 3
b7 — textured matrix: too speckled and bright (rejected)b4 — blue-gray, grains merge into blobsb3 — larger grains, mergedb2 — darker, still fine and uniformb1 — first try: too bright, too fine
granite_gray_coarse_rand: random samples, seeds 3–14
Head-on, frame ~0.3 m, 512×512, 32 spp (shown at 256 px). Reference photo for comparison:
Refactor: presets call granite() directly; new granite_gray_coarse_rand
Photo, granite_gray_coarse_preset (identical to bk1), granite_gray_coarse_rand seed 1, seed 2
Current preset: c3 + cool tint + a few black specks on crystals (bk1)
Photo, c3+tint, bk1 (current preset: 80% of black flecks may sit on crystals), bk2 (all). Tone shares (black/gray/light/white): photo 17/42/21/20%, bk1 15/40/25/20%.
c3 layout + cool tint
Photo, c3 (your pick, original tint), c3 with hu6 tint
Second photo, round 17: tint (cool matrix, near-neutral crystals)
Photo, c2 (warm cast), hu6, hu4 (stronger, teal fringes). Color offsets by brightness, darks → lights. Photo: R−G −0.010→+0.002, B−G +0.008→−0.012. c2: R−G +0.005→+0.014, B−G −0.005→−0.013. hu6: R−G −0.002→+0.009, B−G −0.004→−0.014.c2, hu4, hu5 — closer tint numbers but saturated dark grains show teal fringesc2, tt1–tt3 — more blue saturation only: red cast stays
Second photo, round 16: matrix between crystals so they don't merge
Photo, z3, c1, c2 (tentative preset), c3. Each crystal inset so irregular dark matrix separates neighbours; fewer crystals dropped to keep the matrix share. Tone shares (black/gray/light/white): photo 17/42/21/20%, c2 14/38/27/21%.a2, b1–b3 — sharper per-crystal shades and slight inset: still mergingz3, a1–a3 — distinct shades only: still merging
Second photo, round 15: more variation inside each crystal
Photo, v1 (picked), z1, z2, z3 (tentative preset). Stronger, larger-scale shade-preserving mottle plus more dark flecks allowed on crystals (25% → 45–55%).Photo, v1, y1, y2, y3 — stronger mottle alone: barely visible change
Second photo, round 14: more specks, denser and more gradual mosaic
Photo, k3, v1 (current preset Photo, k3 (previous closest), v1, v2, v3mdash; picked), v2, v3. More, smaller specks; more crystals kept; more in-between gray crystals with softer shade blending; crystal shades lowered to compensate. Tone shares (black/gray/light/white): photo 17/42/21/20%, k3 14/28/31/27%, v3 12/37/30/20%.Photo, k3, u1, u2, u3 — denser mosaic without dimming: far too white
Second photo, round 13: white specks inside the larger crystals
Photo, r1 (no crystal specks), k3 (current preset), k4 (larger specks). New speck layer scatters small bright grains inside each crystal.Photo, r1, k1, k2 — first try: specks too many, small and sharp (confetti look)
Second photo, round 12: lower contrast, larger white specks
Photo, q1, r1 (current preset), r2. r1: compressed tonal range plus larger matrix grains (larger white specks). Std of brightness: photo 0.184, p1 0.192, r1 0.178.Photo, p1, q1, q2 — contrast reduction alone
Second photo, round 11: less black matrix, lighter darkest tone, smaller crystals
Second photo, round 10: three tones with mottling inside each crystal
Photo, i1 (flat three tones), o1 (current preset), o2. New shade-preserving mottle: scales each crystal’s own shade up/down in soft patches instead of pulling all crystals toward one gray. Tone shares (black/gray/light/white): photo 17/42/21/20%, o1 22/36/22/21%.Diagnostic: mottle 0.9 (too strong)m1–m3 — first mottle attempt, too weak to see
Second photo, round 9: visible mid-gray crystals, wider tonal range
Photo, h2, i1 (current preset), i2. Three crystal shades (white / light gray / mid gray) plus darker matrix. Tone shares (black/gray/light/white): photo 17/42/21/20%, i1 22/35/20/24%. 2nd–98th percentile: photo 0.08–0.76, i1 0.04–0.75.Diagnostic: left all crystals gray with mottling on (gray dissolves into matrix); right mottling off (three shades clearly visible) — per-crystal mottling was washing out the shade differences.Photo, h1, h2, h3 — shades visible but too much crystal / too little matrixPhoto, x1, g1, g2, g3 — third gray shade added but still invisible (mottling washed it out)
Second photo, round 8: no tile seams, swirly small white grains
Photo, w2, x1 (current preset), x2. Crystals touch with no grout seam; matrix gaps come from dropped crystals; matrix now carries small swirly white grains. Tone shares (black/gray/light/white): photo 17/42/21/20%, x1 23/32/23/23%.Photo, s2, w1, w2, w3 — more warp + varied matrix grains add swirly white bits; too much white overallPhoto, t1, s1, s2, s3 — removing the inset removes the thin seams, but same-shade crystals fuse
Second photo, round 7: less polygonal, less terrazzo
Photo, vZ2, t1 (current preset), t2, t3. t1: continuous range of crystal shades, soft internal tone variation, some black flecks on crystals. t2 too noisy; t3 dark blotches inside crystals.Photo, vX, vY, vZ, vZ2 — lower lacunarity + a little warp breaks the polygon edges
Second photo, round 6: visible mid-gray crystals, even mixing
Photo, vU, vX (current preset). White and mid-gray crystals of the same size, randomly mixed, dark matrix with black flecks between. Tone shares (black/gray/light/white): photo 17/42/21/20%, vX 15/36/23/26%.Photo, vU, vV, vW — darker matrix so gray crystals separate from it; random mixing instead of clusteringPhoto, vP, vR, vS — gray crystals same brightness as matrix, so only two tones visible; matrix clumped by clustering field
Second photo, round 5: three tones (white / gray / black), less black
Photo, vO, vP (current preset), vQ. Tone shares (black<0.25 / gray / light-gray / white≥0.62): photo 17/42/21/20%, vO 13/41/32/14%, vP 10/37/28/26%, vQ 9/37/24/30%.Photo, vL, vM, vN, vO — less dark matrix, softer black
Second photo, round 4: middle tone, less dark matrix
Photo, vH, vJ, vK (current preset) — lighter mid-grey matrix, less black, less blue. vK: mean 0.46 vs 0.44, dark 14% vs 17%, light 21% vs 23%.Photo, vG, vH, vI — vG too contrasty/dark; vI matrix too light, crystals dissolve
Second photo, round 3: irregular crystals, uneven spacing, textured interiors
v22 rejected (polygon tiles, uniform texture, even spacing). Photo is leftmost in each strip.
vF, vG (current preset) — medium-scale tone zones inside crystals, faint cleavage lines, some black on crystalsvD, vE — fine grit inside crystals: overshoots into salt noisevA, vB, vC — subangular crystals (lacunarity ~2), clustered spacing; interiors still too clean
Second photo: granite_gray_coarse_preset — v22 (rejected)
Photo (left) vs v22 (right); top full view, bottom zoomed. Stats: mean 0.44 vs 0.44, 5–95% 0.14–0.73 vs 0.04–0.66, dark 17% vs 20%, light 23% vs 22%.
v12 — crisp per-crystal shadesv13 — flat crystals (mottling off)v14 — more warp: blobs mergev15 — less warp, separate crystalsv16 — high lacunarity: straight-sided polygons, but uniform matrix webv17 — random whole-crystal drop (light_keep)v18 — touching crystals, jagged edgesv19 — finer texture, larger blackv20 — matrix too lightv21 — stats match; matrix only in dropped cellsv22 — FINAL — matrix around every crystal, two crystal shadesv23 — smaller crystals: matrix shrinks to lines (reverted)
Second photo: distinct crystals, black in matrix, fine mottling (v10, v11)
v11 (current) — 14 mm crystals, black grains hidden under crystals, fine feldspar texture, more matrix black. Stats: mean 0.44 vs 0.44, dark 18% vs 17%, light 24% vs 23%.v10 — same structure, too little matrix black
Second photo: less swirl, squarish crystals (v8, v9)
v9 (current) — warp strength 0.2, streaks off, crystals inset more, each crystal shaded independently. Stats: mean 0.45 vs 0.44, dark 17% vs 17%, light 23% vs 23%.v8 — low warp alone: exposes granite()'s straight streak lines
Second photo: mottled light crystals (v6, v7)
v7 — photo (left) vs render (right); top full view, bottom zoomed. Mottling 0.35, shade contrast 0.25, 22 mm crystals.v6 zoom — mottling 0.7, shade contrast 0.4: crystals dissolve into the matrix (overshoot)
Second photo: granite_gray_coarse_preset (large light crystals in a dark speckled matrix)
Same builder as salt-and-pepper (_granite_mosaic) with roles swapped: small dark base grains, large light grains inset so matrix shows between them, black inclusions.
Photo (left, crop) vs v5 (right), head-on, frame ~0.3 m
Stats — photo (sunlit area): mean 0.44, dark<0.25 17%, light>0.6 23%, light-grain tint B−R −0.013 ·
v5: mean 0.45, dark 17%, light 25%, light-grain tint −0.027.
Reference photo 2v1 — light grains gated by clustering field: merge into huge clumpsv2 — inset light cells, no clumping: separate angular crystalsv3 — lower contrast; stats match, crystals too warmv4 — black moved under crystals: reads as cracks (reverted)v5 (current) — v3 structure, cooler light grains, smaller black
Generator: granite_gray_salt_pepper_rand
infinigen granite_gray_salt_pepper_rand material_plane_uv render_cycles --seed N — plain material on the plane (no ashlar), head-on, frame ~0.3 m, 1024×1024, 32 spp.
Random per seed: grain sizes, white/black grain shares, brightness, cool tint, boundary twist.
Side by side: reference photo (left) vs granite_gray_salt_pepper v14 (right)
Head-on camera, frame ~0.3 m, 1024×1024. Large gray grains = quartz layer, small white = feldspar layer (20% of grains kept), small black = mica inclusions.
Full view (photo crop resized to match)Zoomed crops
Stone-only stats — photo: mean 0.41, 5–95% 0.09–0.69, dark<0.25 21%, light>0.6 16% ·
v14: mean 0.41, 5–95% 0.07–0.67, dark 22%, light 21%.
Grain-structure iterations (1024px, frame ~0.3 m)
v12 — full-cell mosaic, whole-grain gatingv13 — large gray / small white / small blackv14 (current) — fewer white grains, calmer gray, neutral black