Original Post
Hello again. It seems my quest for shadows and light is still underway, and I have come to another snag. take a look at this: lights WASD to move camera, click+drag to rotate, CTRL to pause/resume box rotation, SHIFT to toggle view between light and camera, SPACE to toggle light movement as you can see the shadow projected onto the plane are a little funny looking. The projections are fine, its the drawing of the shadow that isn't. My problem is finding a way to draw projected points so that it always forms a convex polygon. Some initial ideas have been testing every point to every other point to see if a line between them intersects any line between another, if so don't link those points together. However, that seems very very greedy. I've also heard about some algorithms that determine maximum polygon boundaries given a set of points. But in a way, that's what I already have. Unless these algorithms return points in order its not much use to me. any ideas? Thanks. [Edited by - mr_malee on January 31, 2010 7:46:52 PM]