Re: Winter fun 2016 Light Table
« Reply #1 on: Nov 2nd, 2016, 5:17pm »
I've put up a quick lashup on JB forum. The round source aims a beam/ray at a fixed point on a glass surface, and shows the reflected/refracted rays.
But if I have time I'd like to do it in LB, where I can place coloured objects with rectilinear or curved shapes and detect when a ray (shown as an animated progressing line) hits them, with getpixel. It's not entirely trivial then to find the angle of incidence, and hence reflections/refracted rays. Not entirely un-related is my rainbow stuff on http://diga.me.uk/rainbow/rainbow.html