THE GEORGE WASHINGTON UNIVERSITY

Department of Computer Science

CS 6554 - Computer Graphics II - Spring 2014

Assignment 1, Shading and Illumination Modeling

Yan Meng

Description:

The implemented system reads-in geometric data of a polygon object and displays the object using perspective transformation with back faces removed. Back face culling is performed in the view space by calculating the dot product of each polygon’s line-of-sight and its surface normal; the polygon is visible if the product is negative. Viewing specification _including camera position, reference point, up vector, near clipping plane, far clipping plane, and height of the view frustum_ are built in the system and can be easily modified.

 

Result comparison

Viewing Specification

Perspective View Without Back Face Culling

Perspective View With Back Face Culling

 

Camera: (2.2, 0.0, 2.0)

Reference: (0, 0, 0)

Up: (0, 1, 0)

d: 1.8

f: 50

fov: 60o


Number_of_Objects: 1

Object name: house.d

scale: (1, 1, 1)

translate: (0, 0, 0)

 

Camera: (2.2, 0.0, 2.0)

Reference: (0, 0, 0)

Up: (0, 1, 0)

d: 1.8

f: 50

fov: 60o


Number_of_Objects: 1

Object name: cow.d

scale: (1, 1, 1)

translate: (0, 0, 0)

©2014 - Yan Meng