Reflecting Spheres @Scalibq
Reflecting Spheres  @Scalibq
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
Reflecting Spheres1991 donut by DESiRE (60 fps)Eric Clapton JamDaniele Gottardos Guitar Competition - Take 2SweepsMetroDonut running on (emulated) Windows Phone 8Dragons Lair 3 cracktro - Genesis Project (DOSBox)Sunday MorningAppie X jam in Bmin (take 4, day 4)Subpixel-corrected flatshaded cube on HerculesSexy JamJamming on Larry Carlton backingtrack
Scali Bohemiq |

Reflecting Spheres

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER