I have been playing a bit this afternoon with my old raytracer and decided to wrote a a small implementation in j2me.. yes.. it sounds completely useless but it was quite fun to remember the old days.
It’s a very basic raytracer, it only supports spheres and planes and then some hard shadows and reflections. I haven’t done any optimitzation, for example checks if the camera ray intersects all objects for every single pixel and, obviously, it runs pretty slow on the real device (even on the emulator..)
Just three screenshots of the ‘realtime’ (ehem..) raytracing: