I’m trying to find out if any sample Cloth simulation exists with code in WPF or Silverlight.
So far this is what I’ve found:
-
It’s been done in DirectX and then used as an ImageBrush in WPF, but I mean without a DirectX and without a C++ dependency.
-
It’s been done in Flash and even Javascript so it’s definitely possible performance wise:
http://www.andrew-hoyer.com/experiments/cloth -
There are a few .NET physics libraries but are mostly 2d only (or don’t support soft body systems)
So would I really be the first one on the planet to do this in Silverlight? That’s hard to believe.
I’m sorry, but you are not the first ;).
Check this demo from Oscar Oto: http://www.raonalab.com/silverlightme (under the Real3D Tab). Behind the scene it uses Kit3D – a 3D C# graphics engine for Microsoft Silverlight.