Skip to content

gotcha84/rendering

Repository files navigation

CSE 167 - Introduction to Computer Graphics Project 3: Rendering / Rasterization

(See full project specifications here: http://ivl.calit2.net/wiki/index.php/Project3Fall13)

Render objects (some from given .obj files). Upon pressing 'o' to toggle rasterization, toggle between OpenGL's default rasterization and my implemented rasterization, printing out time taken to render object if using my rasterizer. Upon pressing 'b', toggle the implementation and bounding boxes for two-level hierarchy to determine which triangles to rasterize. Number of boxes in hierarchy determined by divisor variable at the top of Rasterizer.cpp. Objects can be translated, rotated, and scaled using keyboard commands as in cube.

Objects:

  • F1: cube
  • F2: dragon
  • F3: bunny
  • F4: sandal
  • F8: house (view1)
  • F9: house (view2)

Rendering:

  • o: Toggle using OpenGL's default rasterizer and my implementated rasterizer (print time taken to render object if using my rasterizer).
  • b: Toggle implementation and bounding boxes for two-level hierarchy (determines which triangles need to be rasterized).

house view1 with rasterizer and bounding boxes

About

CSE167 PA3 - Rasterization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published