Texel A field guide to 3D techniques

CGA Shape Grammar (Procedural Buildings) × Interactive Climbing Plant Modeling × Rotation-Minimizing Frames

Overgrown grammar cities. Ruins and old towns where vines follow what the building is: climbing drainpipes, hanging from ledges, avoiding glass. The grammar's semantic labels become growth guidance, and twist-free frames keep stems and leaves oriented.

Open in StudioReproduced7.99× · 0.248 ms

CGA Shape Grammar (Procedural Buildings)Procedural · Interactivein: layoutout: meshmeshInteractive Climbing Plant ModelingProcedural · Interactivein: meshout: curves, meshcurvesRotation-Minimizing FramesGeometry · Real-timein: curvesout: mesh, normals

Verified proof

reproduced · 2026-12-01texel-arena-seedlicense MIT
Specimen render of Grammar-guided climbing ivy (left: CGA semantic labels, right: RMF-oriented vines on facade)
Cross-proof specimen. Grammar-guided climbing ivy (left: CGA semantic labels, right: RMF-oriented vines on facade). Verified WebGL2 proof · 2026-12-01

Split-screen WebGL2 proof comparing CGA facade semantic attraction/repulsion labels (left: drainpipe/cornice attract, glazing repels) against climbing ivy stems guided by those labels with twist-free rotation-minimizing frame leaf orientation (right).

Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · steers procedural vines along semantic drainpipes and cornices while avoiding window glazing with coherent RMF-oriented foliage

Show GLSL proof (111 lines)
const float VINE_GROWTH = 0.92; // P
const float LEAF_DENSITY = 28.0; // P
const float LEAF_SIZE = 0.024; // P
float sdBox2(vec2 p, vec2 b) { vec2 q = abs(p) - b; return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0); }
// CGA grammar facade labels: 0=wall, 1=window(repel), 2=cornice(attract), 3=drainpipe(attract), 4=plinth
int facadeLabel(vec2 p, out vec2 winLocal) {
  winLocal = vec2(0.0);
  if (p.y < -0.34) return 4;
  if (abs(p.x - 0.34) < 0.024 || abs(p.x + 0.34) < 0.024) return 3;
  if (abs(p.y - 0.34) < 0.028 || abs(p.y + 0.01) < 0.022) return 2;
  vec2 cell = vec2(fract((p.x + 0.25) * 2.0) - 0.5, fract((p.y + 0.32) * 2.8) - 0.5);
  winLocal = cell;
  if (abs(p.x) < 0.29 && p.y > -0.30 && p.y < 0.31 && abs(cell.x) < 0.28 && abs(cell.y) < 0.32) return 1;
  return 0;
}
// Guided stem path climbing drainpipe, branching across cornice and around glazing
float evalIvy(vec2 p, float t, out vec3 ivyCol) {
  ivyCol = vec3(0.0);
  float alpha = 0.0;
  for (int s = 0; s < 3; s++) {
    float side = s == 0 ? 0.34 : (s == 1 ? 0.02 : -0.34);
    float phase = float(s) * 1.9;
    float yTop = -0.46 + VINE_GROWTH * (0.86 - 0.06 * float(s));
    if (p.y > yTop + 0.06) continue;
    float u = clamp((p.y + 0.46) / 0.88, 0.0, 1.0);
    float wiggle = 0.022 * sin(u * 18.0 + phase + t * 0.25);
    // Horizontal cornice spread near y = -0.01 and y = 0.34
    float branch = smoothstep(0.46, 0.52, u) * (1.0 - smoothstep(0.56, 0.62, u)) * 0.14 * sin(phase + 1.1);
    float cx = side + wiggle + branch;
    // Repel away from glass panes
    vec2 wl; int lab = facadeLabel(vec2(cx, p.y), wl);
    if (lab == 1) cx += (wl.x >= 0.0 ? 0.09 : -0.09);
    float dx = p.x - cx;
    // Tangent and rotation-minimizing normal along 2D+relief stem
    float dxdv = 0.022 * 18.0 * cos(u * 18.0 + phase + t * 0.25) / 0.88;
    vec2 tang = normalize(vec2(dxdv, 1.0));
    vec2 rmfN = vec2(-tang.y, tang.x);
    float stemD = abs(dx) - (0.0085 * (1.0 - 0.45 * u));
    if (stemD < 0.004) {
      float m = smoothstep(0.004, -0.002, stemD);
      ivyCol = mix(ivyCol, vec3(0.14, 0.22, 0.10), m);
      alpha = max(alpha, m);
    }
    // Paired leaf cards oriented strictly by RMF normal (no twist flips)
    float idx = floor(u * LEAF_DENSITY);
    for (int k = -1; k <= 1; k++) {
      float li = idx + float(k);
      float lu = (li + 0.5) / LEAF_DENSITY;
      if (lu < 0.02 || lu > VINE_GROWTH) continue;
      float ly = -0.46 + lu * 0.88;
      float lcx = side + 0.022 * sin(lu * 18.0 + phase + t * 0.25);
      float lr = mod(li, 2.0) > 0.5 ? 1.0 : -1.0;
      vec2 stemPt = vec2(lcx, ly);
      vec2 leafCtr = stemPt + rmfN * (lr * LEAF_SIZE * 0.95);
      vec2 rel = p - leafCtr;
      vec2 luv = vec2(dot(rel, rmfN * lr), dot(rel, tang));
      float sz = LEAF_SIZE * (1.0 - 0.35 * lu);
      // Cordate ivy leaf silhouette
      float ld = length(vec2(luv.x * 0.95, luv.y * 1.25)) - sz * (0.85 + 0.25 * cos(atan(luv.y, luv.x) * 3.0));
      if (ld < 0.003) {
        float lm = smoothstep(0.003, -0.002, ld);
        float vein = smoothstep(0.004, 0.0, abs(luv.y));
        float shade = 0.55 + 0.45 * dot(normalize(vec3(rmfN * lr, 0.8)), normalize(vec3(0.5, 0.7, 0.6)));
        vec3 lcol = mix(vec3(0.12, 0.30, 0.11), vec3(0.26, 0.48, 0.16), shade) + vein * 0.05;
        ivyCol = mix(ivyCol, lcol, lm);
        alpha = max(alpha, lm);
      }
    }
  }
  // Cornice horizontal runner
  float cy = -0.01 + 0.012 * sin(p.x * 26.0 + t * 0.2);
  if (p.x > 0.0 && abs(p.y - cy) < 0.036) {
    float ld = abs(p.y - cy) - 0.007;
    float lm = smoothstep(0.004, -0.002, ld);
    ivyCol = mix(ivyCol, vec3(0.16, 0.34, 0.12), lm);
    alpha = max(alpha, lm);
  }
  return alpha;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
  vec2 wl; int lab = facadeLabel(uv, wl);
  vec3 col = vec3(0.76, 0.73, 0.68);
  if (uv.x < 0.0) {
    // Semantic CGA label field: pipe/cornice attract (+1), glass repels (-1), masonry neutral
    if (lab == 0) col = vec3(0.84, 0.83, 0.80);
    else if (lab == 1) col = vec3(0.76, 0.30, 0.26);
    else if (lab == 2) col = vec3(0.24, 0.54, 0.36);
    else if (lab == 3) col = vec3(0.16, 0.44, 0.28);
    else col = vec3(0.56, 0.55, 0.52);
    float grid = smoothstep(0.006, 0.0, min(abs(fract(uv.x * 16.0) - 0.5), abs(fract(uv.y * 16.0) - 0.5)));
    col = mix(col, vec3(0.15), grid * 0.12);
  } else {
    // Shaded architectural facade + RMF climbing ivy
    float mortar = smoothstep(0.012, 0.0, abs(fract(uv.y * 18.0) - 0.5)) * 0.08;
    if (lab == 0) col = vec3(0.78, 0.74, 0.67) - mortar;
    else if (lab == 1) {
      float mullion = step(abs(wl.x), 0.022) + step(abs(wl.y), 0.022);
      vec3 glass = mix(vec3(0.18, 0.26, 0.34), vec3(0.42, 0.54, 0.64), clamp(wl.y + 0.5, 0.0, 1.0));
      col = mix(glass, vec3(0.22, 0.20, 0.18), clamp(mullion, 0.0, 1.0));
    } else if (lab == 2) col = vec3(0.64, 0.60, 0.54);
    else if (lab == 3) {
      float cyl = sqrt(max(0.0, 1.0 - pow((uv.x - 0.34) / 0.024, 2.0)));
      col = vec3(0.24, 0.26, 0.28) * (0.45 + 0.65 * cyl);
    } else col = vec3(0.52, 0.50, 0.47);
    vec3 ivyCol; float ia = evalIvy(uv, iTime, ivyCol);
    col = mix(col, ivyCol, ia);
  }
  if (abs(uv.x) < 0.0028) col = vec3(0.08);
  fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}

Why they connect

CGA Shape Grammar (Procedural Buildings) outputs a mesh whose faces keep the labels of the rules that made them (window, ledge, pipe, wall). Interactive Climbing Plant Modeling consumes that mesh as its support surface, and the labels become attraction and repulsion fields for growing tips: attraction along pipes and cornices, repulsion from glazing and doors. It outputs stem curves and a mesh. Rotation-Minimizing Frames takes the curves and sweeps tubes without twist flips, and its normals orient leaves consistently, so dense ivy reads as one plant rather than noise.

How to build it

Houdini: generate buildings with a CGA-style grammar and write each rule label as a primitive attribute. Convert labels to a per-face scalar (+1 climb, −1 avoid) and splat it into a voxel field the tips can sample. Implement climbing growth as a solver over stem segments with attachment, gravity sag and a bias from the field; seed at ground contact points and set thickness by age. Sweep stems with rotation-minimizing frames (Houdini's sweep can use them) and copy leaf cards along the frames, sized by age. Run per building and cache the result.

Field marks

  1. Stems penetrate the thin or non-manifold geometry grammars often produce.
  2. Leaf counts explode on large districts, so cards or impostors are needed.
  3. Unguided seeds leave bare walls or clumps in corners.
  4. Semantic labels are lost if grammar output is merged before growth.

Prior art

No prior art found on 2026-11-29.

Searches run (4)
  • arXiv: all:"climbing plants" AND all:"procedural buildings" → 0 results
  • GitHub repos: "climbing plants" "procedural buildings" → 0 results
  • arXiv: all:"ivy" AND all:"shape grammar" → 0 results
  • GitHub repos: ivy "shape grammar" → 0 results