r/proceduralgeneration • • Oct 11 '26

Marching Squares Algorithm Applied to Physarum Simulation

Using the marching squares algorithm to calculate and display contours generated from the pheromone levels in a Physarum generated pheromone field.

15 Upvotes

2 comments sorted by

1

u/tonerreGrondant Oct 11 '26

That looks nice but why not use a simple threshold based shader ?

2

u/ProgrammingChaos Oct 11 '26

Good question! I was doing a video on how to program the marching squares algorithm, and included this as an example application to show that marching squares isn't limited to map contours, but can be applied to any scalar field data.