Homework 5

Short Description:

Develop a program which can display multiple mesh based objects. Your program should allow the user to navigate about the scene.

This assignment is worth 50 points.

Goals

When you finish this homework, you should have

Formal Description

Write a program which will load models based upon the format described here. You should build a class that supports models stored in this format. Your class should support the following: If your class encounters a polygon object which is not a triangle, it should convert it to a set of triangles. IE a five sided object becomes three triangles, (p1, p2, p3, p4, p5 ) => (p1, p2, p3), (p1, p3, p4) => (p1, p4, p5)

Your class should not retain the model data after it has been stored in a buffer. . You may wish to retain model meta-information however.

I would maintain two (or possibly three) sets of transformation information per object. A move to default location transformation, a position transformation, and a move transformation.

Your program should display a number of objects, including two or more of a single object to demonstrate your ability to create multiple instances of your class.

Your program should support the following keypresses.

You should work in whatever coordinate system you find comfortable. For this reason, no amounts are given, but you should provide reasonable defaults for moving about in your scene.

You should start in a reasonable position with several objects in view.

Discussion

Required Files

Your code, a Makefile, and a README file.

Submission

You should email tar file as an attachment to a message to danbennett360@gmail.com.