Monday, March 16, 2009

Homework to cover the classwork

The Friday before Spring Break, my instructor cancelled class and left a bit of homework to work on so we wouldn't miss him TOO much. Basically, he left several articles to read and comment on, and a few short OpenGL code exercises.

As for the articles, they were about OpenGL (a language that speaks to graphics cards across all computer platforms, be it a Windows, Linux or Mac box)some of the interesting applications of it, and some specifics of implementing it through coding in Processing and Python.

I think it's awesome how OpenGL is used in anything that makes use of a graphics card. It surprised me to learn that from cell phones to super computers to even gaming consoles, they all implement OpenGL in order to render the graphics for display. 2D or 3D alike, OpenGL can handle it all. It really does sound like the silver-bullet of computer graphics.
It can also be implemented with any programming language. The examples in the articles refer to use in either Processing, Python, or even C/C++. I'm kind of impressed that one single language can be implemented so genericly across multiple languages. I suppose that the languages themselves do deviate on how they implement certain aspects of OpenGL, but still, it's impressive to imagine completely different languages communicating so flawlessly with each other.
But the best part is that OpenGL is open source, which means that extensions are constantly being developed by individual programmers, and popular extensions actually become part of the code included in the entire OpenGL language. Evolution comes to it naturally.

Here's the first of two exercises: We had to download Dev C++, and compile a few pre-made programs from our book. After that, we had to altar the code so that it would draw a Bezier Curve (See Bezier Curves assignment below) instead of the default circle. Below is a screenshot of my computer while running the modified version of that code. In the background of the screenshot is the alterations that I made to the original code.





No comments:

Post a Comment