Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Tasks from laboratory: Graphics and multimedia laboratory

Notifications You must be signed in to change notification settings

DuDiiC/graphics-and-multimedia

Repository files navigation

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

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


00. Test project

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.

Test-program.gif

01. Drawing simple objects

This is a group of projects, where you can draw simple 2D objects on QWidget:

line segmet

Line-segment.gif

circle

Circle.gif

ellipse

Ellipse.gif

Bezier-curve.gif

B-spline-curve.gif

02. Filling with color

There are two algorithms in this section:

Flood-fill.gif

Scan-line.gif

03. Color palette

This project is about displaying palette of colors in RGB and HSV convension.

Color-palette.gif

04. Blend modes

This is project, where you can blend several pictures.

Blend-modes.gif

05. Geometric transformations for 2D objects

This is project, which show how to work geometric transformations, like

I used homogeneous coordinates with matrices and bilinear interpolation.

Geometric-transformation-2D.gif

06. Texturing of triangles

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.

Texturing-of-triangles.gif

07. Geometric transformations for 3d objects

This is simillar project to the previous one, but in 3D space. As an example, I used a cube.

Geometric-transformation-3D.gif

08. Semester project - Solar System

Project that uses knowledge from laboratories in practice, with shiding.

Solar-system.gif

About

Tasks from laboratory: Graphics and multimedia laboratory

Topics

Resources

Stars

Watchers

Forks

Languages