W Randolph Franklin home page
... (old version)
AdvancedComputerGraphicsSpring2009/ home page Login


Homework 2 - due Feb 12 2009

  1. Plan to give 2 talks of 10-20 minutes each on a lab from Presentation Topics, or from other similar labs you'd like to cover.
    Pick three labs that, and three class dates from Feb 17 to March 19. I'll respond with two labs and two dates, trying to give you your first 2. We'll do two talks each class.
  2. Research how the 3D Superbowl ad worked, and tell me.

Homework 1 - due Jan 29 2009

Quaternions

  1. What is the quaternion {$q_1$} for a {$90^o$} rotation about the X axis?
  2. What is the quaternion {$q_2$} for a {$90^o$} rotation about the Y axis?
  3. Compute {$q_1q_2$}. What rotation does that represent?
  4. Compute {$q_2q_1$}. What rotation does that represent?
  5. Are those two rotations equal?

Povray

In this exercise, you need to generate a few pictures with increasing complexity using POV-Ray. We will, in particular, look at how to input a mesh into the scene, and how to improve the rendering of meshes. We use a simplified version of a famous model - Stanford bunny - with 880 triangles.

Helpful links

  1. POV-Ray Tutorial.pdf
  2. POV-Ray
  3. POV-Ray documentation

Directions

  1. We start with an empty scene.
    1. Template file: start.pov. Download, read, and render it.
    2. Replace the floor with checker board.
    3. Try the different colors specified in colors.inc (list of colors). Notice the first line the beginning of start.pov.
  2. We next add a sphere and a cone to the scene.
    1. Put the center of the sphere at (x,y,z)=(-2, 0, 0), and radius=1.
    2. Put one end of the cone at the center (x,y,z)=(2, -1, 0), and with radius=1. Put the other end of the cone at the center (x,y,z)=(2, 1, 0), and with radius=1.
    3. Notice that you only see half the sphere. Try modifying the plane to see the entire sphere and cone.
    4. Adjust your camera so that your output and the relative positions of sphere and cone are as follows:
    5. Is the image too dark? Try adding another light source.
    6. Try out some highlights and glass effects.
  3. We add a simple cube between the sphere and the cone.
    1. Put the content of cube_triangle into your .pov file.
    2. Read the code and understand how the cube is constructed out of triangles.
    3. Render your image, you should get something similar to:
  4. Replace the cube mesh with the Stanford bunny.
    1. Replace the triangles with the content of bunny_1.
    2. Render the image and notice the flat surface.
    3. Again replace the triangles with the content of bunny_2.
    4. Render the image and compare the result with the previous one. Explain why.
    5. Experiment with texture mapping, with simple and advanced options.
  5. Hand in or email some screen dumps showing that you got it to work.