Texel A field guide to 3D techniques

Point-E × Space Colonization Tree Modeling

Trees grown into a described shape. Describe a silhouette in words and grow a botanically plausible branching structure that fills it. A text-to-point-cloud model's coarse output is exactly what space colonization needs: attractors that mark a volume.

Open in StudioReproduced80.4× · 2.49 ms

Point-EGeneration · Interactivein: text-promptout: point-cloudpoint-cloudSpace Colonization Tree ModelingProcedural · Interactivein: point-cloudout: graph, curves, mesh

Verified proof

reproduced · 2026-12-01texel-lablicense MIT
Specimen render of Text-shaped tree crowns (left: raw Point-E coloured point cloud, right: space-colonization branches + leaf colour transfer)
Cross-proof specimen. Text-shaped tree crowns (left: raw Point-E coloured point cloud, right: space-colonization branches + leaf colour transfer). Verified WebGL2 proof · 2026-12-01

Split-screen WebGL2 proof comparing a coarse hollow Point-E text-generated coloured point cloud describing a sculpted crescent-arch crown (left, floating as lumpy disconnected dots) against feeding those exact coloured points as space-colonization attractors to grow a tapered pipe-model branching tree whose terminal leaf clusters inherit the prompt's foliage hues (right).

Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · converts a coarse lumpy text-to-point-cloud silhouette into a structurally plausible space-colonized branching tree with colour-transferred foliage

Show GLSL proof (202 lines)
const float P_CROWN_ARC = 0.78; // P Prompted Crescent Shape [0.2, 1.2, 0.05]
const float P_FOLIAGE_DENS = 1.00; // P Terminal Leaf Density [0.25, 1.6, 0.05]
const float P_AUTUMN_TINT = 0.58; // P Point-Cloud Colour Shift [0.0, 1.0, 0.05]
const float P_TURNTABLE = 0.55; // P Turntable Speed [0.0, 1.5, 0.05]

float sdCapsule(vec3 p, vec3 a, vec3 b, float rA, float rB) {
  vec3 pa = p - a, ba = b - a;
  float h = clamp(dot(pa, ba) / max(dot(ba, ba), 1e-5), 0.0, 1.0);
  return length(pa - ba * h) - mix(rA, rB, h);
}

float hash31(vec3 p) {
  p = fract(p * 0.1031);
  p += dot(p, p.yzx + 33.33);
  return fract((p.x + p.y) * p.z);
}

// Target prompted silhouette volume: sculpted windswept crescent-bonsai arch
float sdPromptEnvelope(vec3 p) {
  vec3 c1 = p - vec3(0.0, 0.52, 0.0);
  float outer = length(vec3(c1.x * 0.85, c1.y * 1.12, c1.z * 1.15)) - 0.68;
  // Carve asymmetric crescent hollow on upper-right to make the prompted shape unmistakable
  vec3 c2 = p - vec3(0.32 * P_CROWN_ARC, 0.72, 0.0);
  float cut = length(vec3(c2.x * 0.92, c2.y * 0.92, c2.z * 0.72)) - (0.48 * P_CROWN_ARC);
  float d = max(outer, -cut);
  // Add secondary lower canopy pad on right tip
  float pad = length((p - vec3(0.54, 0.18, 0.06)) * vec3(0.95, 1.65, 1.15)) - 0.30;
  return min(d, pad);
}

// Point-E colour field transferred from prompted point cloud to terminal leaves
vec3 promptColor(vec3 p) {
  float h = clamp((p.y + 0.1) * 0.85, 0.0, 1.0);
  float side = clamp(p.x * 0.7 + 0.5, 0.0, 1.0);
  vec3 emerald = vec3(0.14, 0.42, 0.18);
  vec3 sakuraGold = mix(vec3(0.82, 0.48, 0.14), vec3(0.92, 0.36, 0.34), P_AUTUMN_TINT);
  vec3 sage = vec3(0.28, 0.52, 0.22);
  return mix(mix(emerald, sage, h), sakuraGold, smoothstep(0.25, 0.85, side * 0.75 + h * 0.45));
}

// Space-colonization branching skeleton growing from plinth root into the crescent attractor envelope
float mapBranches(vec3 p) {
  // Curved main trunk climbing from root (0, -0.68, 0) into crown heart
  vec3 r0 = vec3(0.0, -0.68, 0.0);
  vec3 r1 = vec3(-0.08, -0.22, 0.03);
  vec3 r2 = vec3(-0.18, 0.20, -0.02);
  float d = sdCapsule(p, r0, r1, 0.105, 0.082);
  d = min(d, sdCapsule(p, r1, r2, 0.082, 0.062));

  // Primary & secondary space-colonized limbs reaching upper crescent arc & right pad
  vec3 bL1 = vec3(-0.46, 0.48, 0.08);
  vec3 bL2 = vec3(-0.56, 0.82, -0.04);
  vec3 bTop = vec3(-0.14, 0.94, 0.05);
  vec3 bMid = vec3(-0.32, 0.56, -0.22);
  vec3 bR1 = vec3(0.14, 0.12, 0.04);
  vec3 bR2 = vec3(0.48, 0.20, 0.07);
  vec3 bR3 = vec3(0.32, 0.32, -0.14);

  d = min(d, sdCapsule(p, r2, bL1, 0.058, 0.038));
  d = min(d, sdCapsule(p, bL1, bL2, 0.038, 0.022));
  d = min(d, sdCapsule(p, bL1, bTop, 0.034, 0.020));
  d = min(d, sdCapsule(p, r2, bMid, 0.042, 0.024));
  d = min(d, sdCapsule(p, r1, bR1, 0.052, 0.036));
  d = min(d, sdCapsule(p, bR1, bR2, 0.036, 0.020));
  d = min(d, sdCapsule(p, bR1, bR3, 0.032, 0.018));
  return d;
}

// Terminal leaf clusters filling the prompted silhouette around branch tips
float mapFoliage(vec3 p) {
  float env = sdPromptEnvelope(p);
  if (env > 0.24) return env;
  // Multi-scale clustered leaf puffs sculpted tightly inside the Point-E attractor volume
  float lump = 0.075 * sin(p.x * 13.0 + p.y * 7.0) * cos(p.z * 13.0 - p.y * 9.0)
             + 0.042 * sin(p.y * 23.0 + p.x * 17.0) * sin(p.z * 19.0);
  float shrink = mix(0.10, -0.03, clamp(P_FOLIAGE_DENS * 0.72, 0.0, 1.0));
  return env + shrink + lump;
}

float mapTreeScene(vec3 p, out int matId) {
  // Pedestal cylinder + ground floor
  float dFloor = p.y + 0.85;
  float dPlinth = max(length(p.xz) - 0.54, abs(p.y + 0.76) - 0.10);
  float dWood = mapBranches(p);
  float dLeaf = mapFoliage(p);

  float d = dFloor; matId = 0;
  if (dPlinth < d) { d = dPlinth; matId = 1; }
  if (dWood < d) { d = dWood; matId = 2; }
  if (dLeaf < d) { d = dLeaf; matId = 3; }
  return d;
}

vec3 calcN(vec3 p) {
  float e = 0.004;
  int m;
  return normalize(vec3(
    mapTreeScene(p + vec3(e, 0.0, 0.0), m) - mapTreeScene(p - vec3(e, 0.0, 0.0), m),
    mapTreeScene(p + vec3(0.0, e, 0.0), m) - mapTreeScene(p - vec3(0.0, e, 0.0), m),
    mapTreeScene(p + vec3(0.0, 0.0, e), m) - mapTreeScene(p - vec3(0.0, 0.0, e), m)
  ));
}

vec3 acesTone(vec3 x) {
  return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0);
}

void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
  bool grown = uv.x > 0.0;
  vec2 suv = vec2(grown ? (uv.x - 0.25) : (uv.x + 0.25), uv.y);
  suv.x *= 1.85;

  float ang = 0.35 + iTime * 0.42 * P_TURNTABLE;
  vec3 ro = vec3(sin(ang) * 2.85, 0.32, cos(ang) * 2.85);
  vec3 target = vec3(0.0, 0.16, 0.0);
  vec3 fwd = normalize(target - ro);
  vec3 right = normalize(cross(vec3(0.0, 1.0, 0.0), fwd));
  vec3 up = cross(fwd, right);
  vec3 rd = normalize(fwd * 1.65 + right * suv.x + up * suv.y);

  vec3 sky = mix(vec3(0.09, 0.12, 0.18), vec3(0.26, 0.34, 0.46), clamp(rd.y * 1.4 + 0.45, 0.0, 1.0));
  vec3 col = sky;
  vec3 sunDir = normalize(vec3(0.62, 0.76, 0.42));

  if (!grown) {
    // Left: raw sparse Point-E coloured point cloud floating above empty plinth
    // Render plinth + floor first
    float tBase = 15.0;
    if (rd.y < -0.005) {
      float tf = (-0.85 - ro.y) / rd.y;
      if (tf > 0.0 && tf < tBase) {
        tBase = tf;
        vec3 fp = ro + rd * tf;
        col = vec3(0.16, 0.18, 0.22) * exp(-length(fp.xz) * 0.22);
      }
    }
    // March sparse 3D lattice inside Point-E surface shell to draw coarse glowing point-cloud dots
    float t = 1.2;
    for (int i = 0; i < 42; i++) {
      vec3 p = ro + rd * t;
      float env = sdPromptEnvelope(p);
      if (abs(env) < 0.12) {
        vec3 cell = floor(p * 11.5);
        vec3 fc = fract(p * 11.5) - 0.5;
        vec3 jitter = (vec3(hash31(cell), hash31(cell + 7.1), hash31(cell + 13.7)) - 0.5) * 0.52;
        float dDot = length(fc - jitter);
        if (dDot < 0.22 && hash31(cell + 29.3) < 0.62) {
          vec3 pCol = promptColor(p);
          float core = smoothstep(0.22, 0.06, dDot);
          col = mix(col, pCol * (0.95 + 0.45 * core), 0.92);
          break;
        }
      }
      t += max(abs(env) * 0.55, 0.048);
      if (t > 4.8) break;
    }
  } else {
    // Right: space-colonized pipe-model branching skeleton + Point-E colour-transferred foliage
    float t = 0.0;
    int matId = 0;
    for (int i = 0; i < 68; i++) {
      vec3 p = ro + rd * t;
      float d = mapTreeScene(p, matId);
      if (d < 0.003 || t > 10.0) break;
      t += d * 0.76;
    }
    if (t < 9.5) {
      vec3 wp = ro + rd * t;
      vec3 N = calcN(wp);
      float ndl = max(dot(N, sunDir), 0.0);
      // Soft shadow probe
      float sh = 1.0;
      int sm;
      float ts = 0.06;
      for (int s = 0; s < 12; s++) {
        float sd = mapTreeScene(wp + N * 0.02 + sunDir * ts, sm);
        sh = min(sh, clamp(6.0 * sd / max(ts, 0.05), 0.0, 1.0));
        ts += clamp(sd, 0.05, 0.22);
      }
      if (matId == 0) {
        col = vec3(0.18, 0.20, 0.24) * (0.35 + 0.65 * sh) * exp(-length(wp.xz) * 0.22);
      } else if (matId == 1) {
        col = vec3(0.56, 0.52, 0.46) * (0.28 + 0.92 * ndl * (0.3 + 0.7 * sh));
      } else if (matId == 2) {
        // Pipe-model bark shading
        float bark = 0.82 + 0.28 * sin(wp.y * 38.0 + wp.x * 16.0);
        col = vec3(0.32, 0.21, 0.14) * bark * (0.26 + 1.05 * ndl * (0.35 + 0.65 * sh));
      } else {
        // Terminal foliage inheriting exact Point-E colour field + backlit subsurface translucency
        vec3 leafAlb = promptColor(wp);
        float leafNoise = 0.78 + 0.34 * hash31(floor(wp * 28.0));
        float sss = pow(clamp(dot(-rd, sunDir), 0.0, 1.0), 3.0) * 0.35;
        col = leafAlb * leafNoise * (0.26 + 1.12 * ndl * (0.30 + 0.70 * sh) + sss);
      }
    }
  }

  col = acesTone(col * 1.12);
  if (abs(uv.x) < 0.003) col = vec3(0.95, 0.93, 0.89);
  fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}

Why they connect

Point-E takes a text prompt and outputs a coloured point-cloud of a few thousand points. Space Colonization Tree Modeling consumes a point-cloud of attractors and grows a branch graph, curves and mesh toward them, deleting attractors as branches reach them. Point-E's sparse, lumpy surfaces are a weakness for meshing but not here, since attractors only have to mark where the crown should be. Point colours are kept and transferred to the nearest leaves to tint the foliage.

How to build it

Python. Sample Point-E, normalise the scale, and densify inside the cloud (jittered resampling or Poisson sampling inside its alpha hull) so the interior has attractors, or keep only the shell for topiary. Put the root below the lowest point and optionally add a trunk guide column. Run space colonization with influence and kill radii set relative to point spacing. Compute branch radii with the pipe model, sweep tubes with Rotation-Minimizing Frames, and scatter leaves near terminal nodes, coloured from the nearest point. Export to Blender or glTF.

Field marks

  1. Point-E clouds describe surfaces, so crowns come out hollow unless densified.
  2. Prompts for non-tree shapes give clouds with no sensible trunk position.
  3. An influence radius mismatched to point spacing stalls growth or produces straight bundles.
  4. The generated cloud may already misread the prompt.

Prior art

No prior art found on 2026-11-29.

Searches run (4)
  • arXiv: all:"space colonization" AND all:"point cloud" AND all:"tree" → 0 results
  • GitHub repos: "space colonization" "point cloud" tree → 0 results
  • arXiv: all:"text-to-3D" AND all:"tree modeling" → 0 results
  • GitHub repos: text-to-3D "tree modeling" → 0 results