Computer Graphics (CMSC 427) - Spring 2000

                                                Prof. Ben Bederson

                                                Homework Two: Antialiasing

                                                Due: Tuesday, Feb 15th, 2000

 

The purpose of this homework is to continue your understanding of pixels and rasterization.

Your assignment is to create a program that allows a user to interactively render a regular circle using an integer-only incremental rasterizing algorithm, and an antialiased circle using the same algorithm, but possibly with floating point operations for the antialiasing feature. You should allow the user to specify two points - center, and point on the circle.  Your code should then render the circle.  There should be a checkbox which controls antialiasing.  Turning the box on or off should re-render the circle appropriately so you can easily compare the difference between regular and antialiased rendering.

Note that memory allocation takes time, so you should avoid any memory allocation in the core of your rasterization loop.  To avoid this, you will probably want to allocate an array of gray-scale colors in advance, and then use the pre-allocated colors in your loop.

Please submit this assignment using the WAM submit program after making a zip (or tar) file containing all of your source code and Visual J++ project files.  Put them in a directory with your last name, and include a README file if you want to tell us anything about your code, the algorithm you used, how to use it, etc.