main-practice2

OpenGL Practice

Due October 7, 2009

The goal of this practice program is to make sure you are able to write OpenGL programs - to get FlTk to put a window up, and get some graphics drawn.

For the actual projects, we will give you framework code that creates windows and stuff like that. But, in this practice assignment you should do it all yourself - it might be your only experience trying to make it work. If nothing else, it will give you a chance to make sure you can compile and build OpenGL/FlTk programs for this class.

Requirements

Are pretty minimal:Your program should open a window, and draw a picture in it. The window should stay open until the user closes it. The window should get redrawn properly if it is uncovered, etc.

You’ll need to use some library for creating windows. We recommend FlTk, and have provided a tutorial for it.

note: the tutorial has not yet been updated for Visual Studio 2009 this year - you can look at last year’s tutorials here but beware since they are for VS2005. updated tutorials coming soon!
There’s also an old “OpenGL Survival Kit” (here) that is still relevant, and can help you understand what is going on in the tutorials. You don’t need to worry about understanding picking or animation - it isn’t required for this practice assignment and this year, we’ll provide you with framework code to take care of it for the projects.

You should do the drawing using OpenGL. You don’t need to do anything fancy - just draw a few lines and polygons to get the hang of it. It doesn’t need to be 3D, or have lighting, or use any fancy features - you’ll have plenty of opportunities to do that later.

Your picture must be a picture of something - you can tell us what it is. It has to have lines and triangles/polygons, and it has to have different colors in it.

Of course, if you want to make a really cool picture, that’s fine by us and we won’t complain. (in fact, we’ll thank you for making our life interesting). How cool your picture is won’t effect your grade (providing that your program meets the minimum requirements).

What to turn in

You should turn in the “usual stuff” - a readme file (that describes what your program does), the source code for your program, and the .vcproj and .sln file required to build it. Please do not turn in extra files.

Please turn in a screen shot of your program in action.

How you will be graded

We will grade this check/no check. If you turn something in that seems reasonable, we’ll give you credit. If you don’t turn something in, we’ll be concerned that you won’t be able to do the projects (coming soon!). If you turn something in that doesn’t work, we’ll find out soon enough when you can’t do the project.

Page last modified on October 02, 2009, at 04:26 PM