Menu

#3 Encapsulate camera into class and make pluggable

open
nobody
None
5
2007-10-20
2007-10-20
brandon
No

A camera is nothing in a raytracer except a source of rays. The camera logic should be extracted from the main parsing loop and placed in a class. This will allow other implementations of cameras to be loaded at runtime, such as fish-eye and orthographic cameras.

Discussion


Log in to post a comment.