Browse article archive

GenPlant: Grow a 3D plant from a number

Read the Chinese original

GenPlant grows 3D plants in your browser. A seed is a number that sets the outcome: reuse the same seed to grow the same plant. The generator models plant growth, the controls adjust its shape, and Three.js renders the result live. Generation doesn’t require a server.

Open GenPlant · View the source

The GenPlant browser interface

Grow a plant

  1. Enter a number and choose Generate Plant, or choose Random Plant.
  2. Drag to rotate and scroll to zoom. Choose Reset Camera to reset the view.

Nine randomly generated plants

How it works

The controls pass settings to the generator, which builds the plant’s structure, geometry, and materials. The renderer uses Three.js and WebGL to draw the model on a canvas. The source uses JavaScript modules and loads Three.js from esm.sh. To preview the source locally, serve it from a local HTTP server.

Plants generated from seeds 2025, 1314, 42, and 999