Raytracing

Go back to the main page
This TWEAPP is written to illustrate the speed of tweapps.
Raytracing is well known to be a resource-consuming rendering method, so even in C++, we had to find optimizations to make it almost real-time. It is quite impossible to write a 3d renderer in flash, which is more specilized in 2D graphics, and Java is way too slow to be used for this. (If anyone can provide a Java raytracer as fast as this one, please send us the source!)
I won't detail the code in this page, but it took approximately 50 lines (so just a bit more than hello world).
You can move the mouse over the window to move the camera. Use 's' and 'z' to zoom.