2d Mesh deformation

Hi everyone,

For my game I was thinking about procedurally animating things like mantles and flags, so that I can have a good enough physic simulation on them. (wind, fire, ecc).

My high level idea was this:

-define what the "bones" of the object are, just like you do in normal skeletal animation.
-produce a mesh that "follows" these bones, defining many triangles that will constitute the mesh.
-texture mapping the triangles generating UV coordinates based on their position relative to the "idle" position of his respective bone.
I basically want to do something like spine do with mesh deformation.
Of course I don't need a cutting edge method, I don't want to have hundreds of triangles on a single mesh, I just want to make a mantle deform in a decent way following a skeleton of bones.

Have you some good resources I can study that can help me with this? I googled a bit but I wasn't able to find anything "clearly" useful, so I thought that asking here was the smartest thing to do :)

Thank you,
Leonardo


Edited by erpeo93 on Reason: Initial post
I would look into simulating springs. Subdivide your flag surface into smaller quads (or triangles) and use spring for each edge of quad. Then simulate physics and calculate back the position of vertices in each with physics update step. Something like this:
https://steven.codes/blog/cloth-simulation/
https://graphics.stanford.edu/~mdfisher/cloth.html
https://pdfs.semanticscholar.org/...86573b1a45ec54be65ba70c24f503.pdf
http://download.nvidia.com/develo...GRAPH/ClothSimulationOnTheGPU.pdf
https://www.scss.tcd.ie/Michael.M...-1516-14-MassSpringSystems-mm.pdf


Edited by Mārtiņš Možeiko on
mmozeiko
I would look into simulating springs. Subdivide your flag surface into smaller quads (or triangles) and use spring for each edge of quad. Then simulate physics and calculate back the position of vertices in each with physics update step. Something like this:
https://steven.codes/blog/cloth-simulation/
https://graphics.stanford.edu/~mdfisher/cloth.html
https://pdfs.semanticscholar.org/...86573b1a45ec54be65ba70c24f503.pdf
http://download.nvidia.com/develo...GRAPH/ClothSimulationOnTheGPU.pdf
https://www.scss.tcd.ie/Michael.M...-1516-14-MassSpringSystems-mm.pdf



Thank you very much Martin, that's a lot of material to look at. :)