LookLightweight
Procedural geometry
Shapes made by a formula, no file to load.
Shapes made by a formula, with no file to load. Change a number and the shape changes; every ring, blade or column is a variation of one rule. Nothing to download, endless variety.
- Breaks when
- normals forgotten, lighting looks flatindex/winding mistakes give holes
- Also called
- parametric, BufferGeometry from scratch, generative mesh
Prompts
Grown hero object
Three.js BufferGeometry built in code: a parametric tube that sweeps a spine defined by three sine terms (amplitudes 0.8/0.35/0.15, frequencies 1/3/7), 400 segments along the spine and a 24-vertex ring whose radius follows 0.12 + 0.08·sin(u·11). Compute normals from the Frenet frame, not computeVertexNormals. Expose the six numbers in a lil-gui panel and rebuild the geometry on change in under 8 ms (reuse the typed arrays, only call needsUpdate).
Terrain from a formula
A 256×256 PlaneGeometry displaced on the CPU by a 5-octave simplex FBM (lacunarity 2.1, gain 0.48) with a ridged transform (1 − |n|) on the two highest octaves, scaled 0.0–1.6 units. Vertex color from height and slope: ink in valleys, mint on slopes, paper on ridges. Recompute normals after displacement. Provide a seed input; the same seed must give the same terrain.
Family of variations
Generate 12 chairs from one procedure: seat width, leg splay, back height and slat count as parameters, each drawn from a seeded random range. Build each as merged BufferGeometries (mergeGeometries), lay them out on a 4×3 grid, and print the parameter set under each in an HTML overlay. No model files.
Related
Resources · 3
- three.js example: marching cubesmrdoobsite · code · demoJul 30, 2026
- Coding Adventure: Marching CubesSebastianLaguevideo · codeJul 3, 2026
- three.js example: terrainmrdoobsite · code · demoMar 20, 2026