Few OpenGL apps written in C++ during OpenGL course (Grafika Komputerowa) at the university.
Author: Bartosz Rodziewicz
The last class was about WebGL and files from that class are included in this repo as well.
This repo consists of grafika/
directory which is CLion project and single *.cpp
files in /
. *.zip
files contains WebGL stuff. tekstury
directory contains image files that can be used as a textures for some of the tasks. LabTasks
directory contains lab task descriptions (in Polish).
To make use of *.cpp
files take the one you want to open, change the name to main.cpp
and paste it in grafika/
. Then run CLion, compile and run.
To make use of *.zip
files just extract them and open index.html
. Sometimes you may need to use browser different than Chrome (especially for lab7-6.zip
).
Every single *.cpp
file in /
is one single task. There are two groups of those tasks:
lab#-#.cpp/zip
are tasks copy-pasted from lab task instructions,- others are tasks that we had to do by ourselves and those were:
sierpinskiCarpet.cpp
- simple app that draws Sierpinski carpet (user can chose number of steps and perturbation level),egg.cpp
- app that draws egg model,teapot.cpp
- app that draws teapot that you can move with a mouse,egg-cameraMouseSpin.cpp
- app that draws egg that you can move with a mouse,egg-light.cpp
- app that draws egg and puts a light on the object,egg-lightMovement.cpp
- app that puts two light sources on the egg model which position can be change with a mouse,tetrahedron-texture-mapping.cpp
- app with a tetrahedron that have mapped texture on,egg-texture-mapping.cpp
- app with an egg model that have mapped texture on,WebGL-tetrahedron.zip
- webGL app that draws a tetrahedron,WebGL-slowDownAnimation.zip
- webGL app that draws a cube with a texture mapped on and fixed bug that makes it spin faster every time you re-run it.
Before running those files in CLion you have to configure it and install required plugins.
- Make sure you use CLion with MinGW.
- Download required plugins:
- Unpack them to MinGW directory (where MinGW is installed).
- Looks like it's all you have to do.