In this project we add antialiasing support to our ray tracers.
Requirements
Implement adaptive antialiasing with multiple samples per pixel.
Render multiple images of one or more scenes using antialiasing with different parameters and compare results.
Generate images that show the number of samples per pixel as pixel intensity, and report minimum and maximum number of samples per pixel.
Source Code
The following source code files are provided to help you with this and upcoming projects. You are not required to use them, but it is highly recommened that you use them and refrain from modifying them. Some of these files include additional code as compared to the same files in the previous project, so make sure to download them all again.
scene.h: Includes the new Halton function and modifications to the RenderImage class for storing sample count per pixel.
viewport.cpp: OpenGL based preview and user interface launched by calling the ShowViewport() function. It requires GLUT or FreeGLUT.
You can check out the Halton Sequence Demo page to see what Halton sequences look like with different bases.
Optional Feature Suggestions
Implement reconstruction filtering.
Implement adaptive subdivision for antialiasing.
References
[Amanatides 1984]
John Amanatides. 1984. Ray tracing with cones. In Proceedings of the 11th annual conference on Computer graphics and interactive techniques (SIGGRAPH '84), Hank Christiansen (Ed.). ACM, New York, NY, USA, 129-135.
[Dippé and Wold 1985]
Mark A. Z. Dippé and Erling Henry Wold. 1985. Antialiasing through stochastic sampling. In Proceedings of the 12th annual conference on Computer graphics and interactive techniques (SIGGRAPH '85). ACM, New York, NY, USA, 69-78.
[Kajiya 1986]
James T. Kajiya. 1986. The rendering equation. In Proceedings of the 13th annual conference on Computer graphics and interactive techniques (SIGGRAPH '86), David C. Evans and Russell J. Athay (Eds.). ACM, New York, NY, USA, 143-150.
[Mitchell and Netravali 1988]
Don P. Mitchell and Arun N. Netravali. 1988. Reconstruction filters in computer-graphics. In Proceedings of the 15th annual conference on Computer graphics and interactive techniques (SIGGRAPH '88), Richard J. Beach (Ed.). ACM, New York, NY, USA, 221-228.
[Painter and Sloan 1989]
J. Painter and K. Sloan. 1989. Antialiased ray tracing by adaptive progressive refinement. In Proceedings of the 16th annual conference on Computer graphics and interactive techniques (SIGGRAPH '89). ACM, New York, NY, USA, 281-288.