Lecture 5:
Scene Modeling

Contents

Lecture Objectives

5-1

Modeling Transformation Order

5-2

Example: order.c

5-3

Why Is Order Important?

5-4

Effects of Transformation Order

5-5

Compositing Modeling Transformations

5-6

Moving Coordinate System

5-7

Composition Example 1: Robot Arm

5-9

Example: robot_arm.c

5-10

Independent Models

5-11

Example of Models That Are Not Independent

5-12

Example of Models That Are Independent

5-13

Composition Example 2: Robot Claw

5-14

Robot Claw Example

5-15

Example: robot_claw.c

5-18

3D Models Provided by the GLUT Library

5-19

Lab: Solar System Matrix Stack Exercise

5-20

Lab: Scene Modeling

5-21

Lab: Bike Matrix Stack Exercise (Optional)

5-22

Lecture Summary

5-23

Worksheet for Solar System Matrix Stack Exercise

5-24

Worksheet for Bike Matrix Stack Exercise

5-28

Sample Solution to Solar System Matrix Stack Exercise

5-32

Sample Solution to Bike Matrix Stack Exercise

5-33

GLUT Quick Reference

5-34