How it Works
The ground is a grid of cells. Amber termite agents random-walk across it, each step biased toward the neighbouring cell with the highest pheromone reading rather than moving perfectly randomly. When a termite is adjacent to existing mud or the ground floor, it may drop a mud pellet there; the chance of dropping rises with local pheromone concentration through a logistic threshold function, so termites overwhelmingly build where scent is already strong rather than at empty, unscented ground.
Every dropped pellet also deposits fresh pheromone into that cell, and the whole pheromone field diffuses to neighbouring cells and evaporates a little each frame. This creates a positive feedback loop: a lucky early deposit raises local pheromone, which attracts more termites to deposit nearby, which raises pheromone further — concentrating mud into tall pillars instead of a flat smear. When two pillars grow close enough that their pheromone plumes overlap, the gap between them crosses the drop threshold too, so termites bridge it, and the pillars fuse into an arch, exactly the mechanism believed to produce real Macrotermes mound pillars and arches.
Drop probability: P(drop) = 1 / (1 + exp(-k · (pheromone - threshold)))
Deposit: pheromone(x,y) += depositRate on successful drop
Field update: pheromone = blur3x3(pheromone) · (1 - evapRate)
Frequently Asked Questions
What is stigmergy in the context of termite building?
Stigmergy is coordination through the environment rather than direct communication. A termite that drops a mud pellet laced with pheromone changes the local environment, which then influences the building decisions of other termites that pass by later.
Why do isolated pillars appear instead of a flat wall of mud?
Random early deposits create small pheromone peaks. Because drop probability rises with local pheromone, those peaks attract more deposits, which raises the peak further, a positive feedback loop that concentrates mud into a few tall pillars rather than spreading it evenly.
How do two separate pillars end up joining into an arch?
As a pillar grows taller its pheromone plume diffuses outward. When two plumes from nearby pillars start to overlap, the combined pheromone in the gap between them exceeds the drop threshold, so termites are drawn to build there too, bridging the gap into an arch.
What does the pheromone evaporation rate control?
Evaporation rate sets how quickly deposited pheromone fades each frame. Low evaporation lets scent linger and spread, encouraging fewer, larger structures, while high evaporation keeps signals localized and short-lived, favouring many small, slow-growing pillars.
Is this how real termites build mounds?
Yes, in principle. Field and laboratory studies of species such as Macrotermes show workers depositing pheromone-marked mud pellets and preferentially building near existing pheromone-rich structures, a stigmergic process that produces pillars, arches, and eventually chimneys without any centralized plan.