Ray tracing as an object-oriented example for CS 1

  • Authors:
  • Ryan L. McFall;Charles A. Cusack

  • Affiliations:
  • Hope College, Holland, MI;Hope College, Holland, MI

  • Venue:
  • Journal of Computing Sciences in Colleges
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

The object-oriented paradigm is the most popular programming paradigm in use today. The benefits of object-oriented programming, such as polymorphism, inheritance, and support for encapsulation are well-known. However, smaller applications such as those typically assigned in a standard CS1 course cannot fully demonstrate the utility of the object-oriented approach. In this paper, we describe the use of an object-oriented ray-tracer in our CS1 course. This application is sufficiently large for the benefits of the object-oriented approach to be seen, and has the benefit of being intrinsically interesting and motivating to students. Students have successfully completed the tasks we have given them and have found the application to be challenging, yet interesting. The software and accompanying assignments are freely available to faculty wishing to use them in their courses.