28 comments

[ 2.5 ms ] story [ 96.6 ms ] thread
Very nice, although it took me a few minutes to figure out how it works.
Clever and pretty. Is it possible to add an "absorb" slider to the walls? I'm having trouble making some of the effects I'm trying for.
Try decreasing the reflectivity to zero and transmissivity to max.
I wish you could save a high resolution PNG.
I dont understand what's going on ...
It's an interactive raytracing demonstration. Draw on it, and watch it simulate light diffusion, reflection, and transmission. It's pretty straightforward, actually.
Add refraction, I want to make a laser.
It would be awesome to have a little blog post about why and how, this is very cool tech! I'm lazy I don't want to go read the code, I want a beautiful and clear explanation with pictures
And about the what. What exactly am I looking at? All I can tell is it has something to do with the physics of light. What assumptions are made? What models are used?
It seems like this effect could be got much more efficiently using block lighting. you could get the gradients by storing the light's strength at each vertex. This way you would be tracing only two rays per line
That doesn't provide a way to simulate reflectivity and transparency.
(comment deleted)
Why reboot your computer when you can just load this demo and up the settings!?!
I wish there was a "best of" for this. I don't have the arts enough to make anything visually pleasing and would love to see the results of those that do.
I particularly like the "exposure" slider on the righthand side. That's a neat UI element I intend to borrow.
Fantastic! I particularly like encoding the state in the URL - makes it very easy to share good designs you've built.
My first reaction was to try the double-slit experiment, but unfortunately there was no interference pattern. Beautiful none the less. (Ok, a little less.)
That's not surprising. The double-slit experiment was used to prove the wave behavior of the light. Ray tracing simulates the photon/ray behavior.