CPTR 425 Computer
Graphics Assignment 4
Do the following:
- Read Appendix 3 in your textbook,
Useful Class and Routines & SDL.
Familiarize yourself with the SDL implementation and
makeup of an SDL data file.
- The SDL source files are available here.
Type in Figures 5.64 and 5.65 of your textbook and ensure
that you can indeed render the table scene.
- Add keyboard and/or mouse controls that permit the
viewer to move around within the scene. Simply just
reposition the "eye" coordinates of the camera; always
look at the origin. Being able to move the eye along the
x-, y-, and z-axes is sufficient.
- Figure 5.65 produces a pretty meager image. Play with the
light sources and colors to produce an image similar to
this one:
- Create a new, interesting SDL file that contains at least
ten objects.
- Once your program has been checked out, please submit
your source code (no need to submit sdl.h
and sdl.cpp
unless you modify them)
and your custom SDL scene file to eclass.