Hi, I've been working on this little shadow engine for the Nspire the last 2 days:
It dynamically calculates and renders the shadows of a variable number of objects, relative to the position of the light source and draws their illuminated sides.
With 6 objects, it runs smoothly with 12-16 frames per second on the handheld.
Controls:
- click to enable/disable mouse control
- press m to change the render mode
- press r to enable/disable the illuminated rims
- in the upper left corner, there's a little fps counter
Note: There are some bugs, if objects are too close to each other or if the light source is too close to an object (but I didn't encounter a crash yet)
I made this engine just for fun, I don't think I'll do something with it or improve it soon; so you can do anything you want with it (but giving credit would be nice
)