White sphere

Created 2014-09-12T05:18:27.500Z, last edited 2018-07-31T04:38:48.640Z

White sphere

This initial test image uses parallel rays and hard coded surface physics to draw the sphere — even the ambient light has a hard coded value. It checks that the ray/sphere intersection functionality works as it should and creates appropriate position and surface normals.

The code for this is in Scenes/early/white-sphere.cpp. Because the model is so simple and so much of the rest of the ray tracer is hard coded this image only takes 0.031s to generate.

Other sizes