Graphics and Multimedia Labs
Tasks from laboratory: Graphics and Multimedia Labs
I used the OOP paradigm, c++ language in standard 14 and Qt library in version 5.13.0.
Table of contents:
- Running programs
- 00. Test project
- 01. Drawing simple objects
- 02. Filling with color
- 03. Color palette
- 04. Blend modes
- 05. Geometric transformations for 2D objects
- 06. Texturing of triangles
- 07. Geometric transformations for 3d objects
- 08. Semester project - Solar System
To run project, you have to perform the followin commends in project catalog:
qmake
qmake -project
Now, in catalog, you should have project_name.pro
file. In the end of file, add line:
QT += widgets
Now, you can use make
to compile the project using auto generated Makefile
.
If you need more details you can read this
In this project I checked if everything related to drawing on the widget, working with QImage
, QPainter
and QWidget
works correctly. You can draw on the widget using the mouse.
This is a group of projects, where you can draw simple 2D objects on QWidget
:
There are two algorithms in this section:
This project is about displaying palette of colors in RGB and HSV convension.
This is project, where you can blend several pictures.
This is project, which show how to work geometric transformations, like
I used homogeneous coordinates with matrices and bilinear interpolation.
In this project, you can see how to work texturing technique. You can checking triangle on original fragment of bitmap and mapping it on black screen. You can change position of points.
This is simillar project to the previous one, but in 3D space. As an example, I used a cube.
Project that uses knowledge from laboratories in practice, with shiding.