Lab 3: Transformations and Scene Graphs
CS 445: Computer Graphics, Fall 2017


Due Dates:
Monday, Sept 18, at the beginning of lab, have ready your object drawing and scene graph sketch.
Friday, Sept 22, at the beginning of lab, be ready to demo the finished program.

Goals

You will be working with a randomly assigned partner.

Practice the mathematics of Transformations

Get together with your partner and work through practiceTransforms.pdf:

Directions - Part 1

In this part you are to display your primitive objects all at once in the scene. To do this, you will need to add transformations to your code to prevent the objects from sitting on top of each other.

Begin by downloading the code Lab3_Transformations.zip. Unzip and add the Lab3_Transformations folder to your project folder from Lab 2 (you will need the files in the Common folder in order to run this code.) Run the start_here.html file. It should look like the image on the left and should be rotating.

Follow the directions below.

Directions - Part 2

The goal of this lab is learn about the matrix stack and scene graphs, and then to use them to build a composite object (e.g. car, robot, house, etc) which is made using your primitive shapes. Feel free to create additional primitive shapes if need be. Your composite object should make use of transformations in a non-trivial way. Ideally, include some kind of moving component (e.g. a rotating wheel, arm, etc). If you do have some kind of movement (e.g. a wheel rotating) it is best to turn off the animation so that the two motions don't interfere (do you see how to turn off the y rotation?)

A car made from a cube (lower car body),
cylinders (wheels & headlights) and
a wedge ( upper car body). The car's wheels
turn as it moves forward or backwards
along the x-axis.

To Hand In

By the beginning of lab on Monday, Sept 18, be ready to show your object drawing and scene graph to the instructor.

By the beginning of lab on Friday, Sept 22: