Generate ShadowHull for a Texture2D

Oct 17, 2011 at 11:53 PM
Edited Oct 17, 2011 at 11:54 PM


How can I generate a Convex ShadowHull for any Texture2D with transparent background?

Thank you.

Oct 21, 2011 at 6:11 PM

Are you asking how to create a convex shape from an image that has an outline of a convex shape?

If so, Farseer physics engine has some functionality that does just that. You could then take the resulting vertices and create a shadow hull.