Project 2.Required image:![]() ![]() Code listing:Program 2 zippedDesign Choices:I made a base class for everything that had multiple types of the same thing. What I mean by that is that if I had two types of materials (or will in the future), or two types of cameras, I made a base class for it. Really I just made base classes for everything we were told to make base classes for. I added in the primitive class because it was suggested, and I didn't want to cause complications in the future.I implemented two-sided lighting so that surfaces weren't see through because I thought they ought not to be. Creative Image:
Extra Credit:I added the interactivity for the viewpoint in both the pinhole and orthogonal camera classes.
![]() These are images of different views, and the interface. The images are cut off at the width of the glui just to keep things rectangular. I added directional lights to my viewer. ![]() I also added an orthographic camera to my renderer. ![]() Time it took:The assignment took me 13 hours.The extra credit took me 1.5 hours. Difficulty:The assignment took me quite a while, but wasn't too difficult. |