In order to receive credit for this assignment, your solution must be submitted, using the handin command, by 8AM on Tuesday, Februray 7th, 2006. I will zip your files and move them to my directory at that time. You may submit your solution before the deadline as many times as you like; only your final submission will be considered.
The purpose of this assignment is to help you to bridge the gap from 2D animation to 3D animation using the Simple Directmedia Layer (SDL) and OpenGL.
During the lectures, we have presented the basics of the Simple
Directmedia Layer (SDL) and some basics about the C
Language.
To illustrate SDL and C
,
we have also presented a 2D SDL animation that
includes a background and a crow moving across the background;
an illustration of this animation is shown in Figure 1,
and the source code can be found at:
2D SDL Crow Animation
We will also present this same animation using SDL and OpenGL, which you can use as starting point code for this first assignment. You can find the starting point code at: SDL/OpenGL Crow Animation
Your assignment is to modify the starting point code, which implements the OpenGL version of the animation, as follows:
When the user types
, try to make the crow closest to
the middle of the screen rotate!
We will leverage SDL to manage some of the tedious aspects of game development such as reading images, managing a game clock, and intercepting key strokes from the user. We will leverage OpenGL to implement additional functionality not included in SDL and to incorporate 3D into our game development. For example, SDL does does not include functionality to rotate sprites.
You should study the example code that we have provided to make sure that you understand how it works. You should feel free to modify the starting point code to suit your unique solution to the problem. Your solution must be writen in the C++ language. You can find OpenGL compatible images for your animation at: OpenGL images
Here is the handin command:
handin.481.1 1 *