This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Virtual Reality Systems Assignment 4 Assignment 4 – Rendering Engine – Due (3/21/2012) Submission: Submit your python code files in a single zipped file (as a .zip) and e-mail to your instructor with this naming convention: Assignment_##_$$$ where ## is the assignment number and $$$ is your first and last name: Example: Assignment_04_GeorgeLecakes.zip This assignment is broken into three parts. Please have a separate python file for each part. Assignment_04_Part1_GeorgeLecakes.py Assignment_04_Part2_GeorgeLecakes.py Assignment_04_Part3_GeorgeLecakes.py Make sure all classes created here are in a single file called Geometry.py Failure to follow this submission format will result in a zero for your grade Deliverables: Part 1 – The Geometry Classes In this first part of the assignment, you will create the necessary classes to help you manage your 3D scene. You should expect to need a week to work on this portion of the assignment and test that all the functionality works before moving on to part 2 of the assignment. 1) Create a Vertex Class: a. Will hold an x, y, z, and homogenous coordinate w (4x1 Vector). b. You can just inherit the Vector class if you like. 2) Create a Polygon Class: a. Will hold a list of vertices. b. Needs the following methods: i. addVertex() – Add a vertex to the list ii. getVertex() – Get a vertex from the list c. You will want to consider making the polygon class only support triangles. 3) Create a Mesh Class: a. Will hold an array of polygons that make up a mesh or representation of some object. b. Needs the following methods: i. addPolygon() – Adds a polygon to the list ii. getPolygon() – Gets a Polygon from the list 4) Create an Object Class: a. Will reference a mesh object....
View Full Document
- Spring '11
- Geometry, Virtual reality systems