Warning: Undefined array key "rcommentid" in /customers/b/a/5/brinkeby.se/httpd.www/axelsdiy/wp-content/plugins/wp-recaptcha/recaptcha.php on line 348
Warning: Undefined array key "rchash" in /customers/b/a/5/brinkeby.se/httpd.www/axelsdiy/wp-content/plugins/wp-recaptcha/recaptcha.php on line 349
RC planes, Multirotors, Robotics, Electronics, Programming, Game development
OpenGL basics
OpenGL is a platform-independent graphics API (application programming interface) that can be used to create 2D and 3D graphics. The API uses hardware acceleration, which means that calculations are made using the graphics card (GPU) in the computer rather than the main processor (CPU).
This page is a presentation of my first graphics programs that I made when I took a course in basic 3D computer graphics at the university (TNM046).
Note: The following 3D objects are loaded from a obj-files that are available under the creative commons license on the internet. I take no credit for those 3D models!
In the following images, the 3D models are drawn using perspective projection and shaded with the Phong shading model (ambient, diffuse, and specular light). The light source if shown with a white sphere. In the programs, the models can be rotated using the mouse, and the light source can be positioned using the arrow keys on the keyboard.