I've added a wind effect to my Fenozix physics engine.
Combined with DynaShape, I created this flag distortion effect.
The principle behind this is rather simple:
I created the nodes and the spring links among them with Fenozix.
Then I visualized the flag through DynaShape.drawTriangles().