Lab 10: Fractals

CS 142: The Mathematics of Computer Graphics,Spring 2007



Due Date: Thursday, April 19

Goals

Programs

Try running the FractalProject.jar file that you downloaded last week from the \home\classes drive in the folder \gorr\cs142\JarFiles. It allows you to interactively generate and to zoom-in on several different types of fractals.

Create an image you like and save it. Note, the save button on the "Fractal Controls" window does not work - you need to use the pull-down File menu to save. Make sure the image that you want to save is selected (with mouse). Write down the values that were used, e.g. fractal type, xmin, ymin, size, iterations, and parameters (these vary depending on fractal type). Place the image on your web page, including the values that were used.

Imaginary and Complex Numbers

  1. Complex numbers are of the form x + i y, where i= .
    If z1 = 2 - 3 i and z2 = 1 + 7i, Compute the following:

    1. z1 + z2
    2. z1 - z2
    3. 2*i*z1
    4. z1*z2
    5. | z1 |    (this is the magnitude of z1)
  2. The Mandelbrot Set: For each point C in the complex plane, one computes the squence of

    zt = (zt-1)2 + C,    for t = 0, 1, 2, ..., and z0 = 0.
    If the magnituded of zt does not go to infinity as t increases, then we say that C is in the Mandelbrot set.

    For C = 1 + i, what is z3? What is it's magnitude? It can be shown that if the magnitude ever exceeds 2, then C is not in the Mandelbrot set. Is C in the Mandelbrot set?

Fractals in Povray

  1. Review the Povray Fractal examples discussed in class. Experiment by varying each of the parameters: e.g. complex number, type (julia, mandel, ...), exponent, interior parameters, exterior parameters, colors, etc. Try using a fractal in a normal map. Also, try out the 3D fractal object (julia_fractal) and vary its parameters.

  2. Create at least 2 images for each of the following:
    1. julia pigment map
    2. mandel pigment map
    3. julia_fractal object
    For each image, save the parameters that were used. Please these 6 images on your web page.

Summary of what to turn in

No later than class time on Thursday, April 19, please do the following:

We will look at your images during class on April 19.


[top]  [Schedule]  [Home]