Ant colony trails

Ants wander between the nest and four food sources, leaving behind pheromone trails. Each nest cell accumulates 'intensity' of scent when an ant passes over it, and a hidden shader paints it more vividly greenish-blue. Over time, the trail fades slowly (exponential decay), so the most active, shortest paths between the nest and food remain brightest longest — this creates an effect of self-organization similar to real ant logistics. Each ant slightly meanders (sinusoidal wandering), so trails are not perfectly straight but organic. This is a visual representation of how simple local rules (go to here + leave a trail) generate complex collective behavior.

Characteristics

26 cones (ConeGeometry) 4 food sources 60×60 trail grid (3600 cells) THREE.Points + custom shader (alpha) AdditiveBlending Trail color: #66ffcc Background #0d0a06

Controls