Coming Up for Air

It’s been a few days since I’ve posted an entry. Not because I haven’t had anything to say, just because I haven’t had the time to say it. All of my CS classes had projects due this week (1 on Tuesday and 2 on Wednesday). Now that I have them behind me I thought I’d take a minute to post. The project I did for my graphics class was kind of interesting. I wrote a program in C++ using openGL to draw a 3D sphere. Then added some functions to put the sphere in motion and have it bounce off the walls and such. We were only allowed to use the openGL functions to change the color and paint a single pixel. I added the ability to change the radius of the sphere, change it’s velocity components, add or take away gravity, etc. I also added a second sphere that would “cut away” part of sphere 1. All of this really wasn’t that hard to do, and I sort of enjoyed it.

I thought about posting the code for this but as is the case for most of the programs I write for my classes, I would never admit to writing such code. It’s a shame it has to be that way but it’s a result of the nature of the system. Specifically that mediocrity is passing. If I’m writing something for work or personal use I always take the time to make my code look nice and use proper structures and programming techniques. When it comes to my assignments for school…not so much (can you say global variables, and lots of them?). Maybe in the future I’ll take the time to rewrite this properly and post it. I’m sure all the future CS455 students would love that (assuming this will still be a required project).

Comments are closed.