Programs: Computer Graphics
Most of these programs were done on Linux and they probably won't compile without modification in MS Visual Studio (I don't know what about other Windows IDEs). If you want to run them on Windows, you will have to change a few details, usually remove the basename() function and add a line defining M_PI. On both systems you will have to make sure that graphics card drivers, OpenGL, GLUT, Nvidia Cg and GLEW (for GLSL) are installed correctly.
- Lab 1: basic OpenGL
- pyramid.c (2.7 KB) - a rotating wireframe pyramid (screenshot)
- Lab 2: more OpenGL
- planets51.c (7 KB) - a star system (screenshot); that flat thing is the Discworld ;)
- surface.c (3.7 KB) - a wireframe rippled surface (screenshot)
- Lab 3: OpenGL lighting
- balls2.c (7.5 KB) - three balls bouncing on a table (screenshot)
- planets6.c (8.1 KB) - the star system from Lab2 with light coming from the sun (screenshot)
- spotlights.c (5.6 KB) - three coloured spotlights (screenshot)
- surface5.c (6.5 KB) - the surface from Lab2 in a much better version (screenshot)
- Lab 4: a model of my room in OpenGL
- room15.c (28.3 KB) - source code (screenshot1, screenshot2)
- graph-lab4.zip (494.7 KB) - all files (code + textures)
- Lab 5: Cg
- graph-lab5-nasze5.zip (3 KB) - a bit deformated moon (screenshot)
- graph-lab5-nasze8.zip (2.3 KB) - a colorful ball (screenshot1, screenshot2)
- graph-lab5-nasze9.zip (2.3 KB) - a ball with bumpy surface (screenshot)
- graph-lab5-naszea.zip (2.7 KB) - a moon with bumpy surface (screenshot)
- graph-lab5-surface8.zip (2.7 KB) - a EU flag waving in the wind :) (screenshot)
- graph-lab5.zip (13.1 KB) - all files
- Lab 6: OpenGL Shading Language
- graph-lab6-roomshad5.zip (622.6 KB) - the room from Lab4 with some GLSL shaders added (screenshot)
- graph-lab6-surface10.zip (3 KB) - the flag from Lab5 in GLSL version, with specular light (screenshot)
- Everything: graph-all.zip (1.1 MB)