Uploaded February 2010 | Updated November 2026, 1 hour ago
This is an effect that I wrote many years ago (around 2002-2003), with Direct3D 8.1 on a GeForce2 GTS video card (no programmable shaders).
At the time, realtime raytracing was all the hype. Simple scenes, mostly consisting of planes, cubes and spheres, were rendered with per-pixel lighting, reflections and shadows, in realtime.
The speed and quality however were not that impressive. I figured that some of these 'typical raytracing' scenes/effects would be faster and have better quality when implemented with conventional triangle rasterization techniques, using hardware acceleration.
So I made this demo, showing three reflecting spheres (a red, green and a blue one, so it's not three copies of the same sphere). I use dynamic cubemaps for the reflections, stencil shadowvolumes, and per-vertex lighting, but with the vertexcount pumped up far enough that the difference with per-pixel lighting is negligible in a scene like this.
The result is a scene with a definite 'realtime raytracing' look-and-feel to it, but because of the 3d acceleration, better quality texturing, higher resolutions, and better framerates could be achieved.
It was featured on the Flipcode Image Of The Day: flipcode.com/archives/08-29-2002.shtml
Original binaries can be downloaded here: bohemiq.scali.eu.org/Shadows.rar
This is an effect that I wrote many years ago (around 2002-2003), with Direct3D 8.1 on a GeForce2 GTS video card (no programmable shaders).
At the time, realtime raytracing was all the hype. Simple scenes, mostly consisting of planes, cubes and spheres, were rendered with per-pixel lighting, reflections and shadows, in realtime.
The speed and quality however were not that impressive. I figured that some of these 'typical raytracing' scenes/effects would be faster and have better quality when implemented with conventional triangle rasterization techniques, using hardware acceleration.
So I made this demo, showing three reflecting spheres (a red, green and a blue one, so it's not three copies of the same sphere). I use dynamic cubemaps for the reflections, stencil shadowvolumes, and per-vertex lighting, but with the vertexcount pumped up far enough that the difference with per-pixel lighting is negligible in a scene like this.
The result is a scene with a definite 'realtime raytracing' look-and-feel to it, but because of the 3d acceleration, better quality texturing, higher resolutions, and better framerates could be achieved.
It was featured on the Flipcode Image Of The Day: flipcode.com/archives/08-29-2002.shtml
Original binaries can be downloaded here: bohemiq.scali.eu.org/Shadows.rar










