Dynamic frontline

Hi! I’m trying to make something similar to dynamic frontline from Steel Divison.
Any ideas how to do it?
I guess they use grid to detect captured territory and some splines to visualize

253443-steel-division-5-2.jpg

it

This is not a trivial task. It would depend on many things including your grid specifications.

My first idea is to get all border edges, sort them, and then try to generate a spline through their midpoints. (maybe taking into account the edge endpoints with some weight)

The red and blue gradient falloff in the screenshots, however leads me to believe that is a bit more than that.

Maybe you should generate some kind of geometry along the spline to create this effect.