pawel5z / pgk

Chosen solutions of assignments of the Fundamentals of Computer Graphics course @ Computer Science studies @ University of Wrocław.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pgk

Chosen solutions of assignments of the Basics of Computer Graphics course @ Computer Science studies @ University of Wrocław.

pgk_assignment2

pgk_assignment3

pgk_assignment4

pgk_assignment5

Visualizer of .hgt files.

Controls

  • tab - toggle between map view and 3d view;
  • moving mouse while holding RMB - map panning, camera rotating;
  • W / S - map zoom in / out, move forward / backward in 3D view;
  • A / D - move left / right in 3D view;
  • Q / E - decrease / increase distance to Earth's center in 3D view;
  • 0..5 - change LOD; 0 - auto mode, 1 - the most details, 5 - the least details;
  • left shift (hold) - slower movement.

How to run it

./lab6 path/to/directory/with/hgt/files

Each .hgt file name must be in format AXXOYYY.hgt where A (latitude) is eiter N or S, O (longitude) is either E or W and degrees (XX, YYY) are written with leading zeros. E.g. N45E007.hgt.

Program handles files which contain 1201 x 1201 twobyte big endian heights. More on this here https://wiki.openstreetmap.org/wiki/SRTM#Format.

pgk_assignment6_map pgk_assignment6_3d

.obj file viewer.

image

Usage

./lab7 path/to/obj [path/to/texture]

Controls

  • hold left mouse button and move - rotate camera
  • hold right mouse button and move - pan camera
  • scroll - zoom in/out
  • left shift (hold) - slower panning

Build instructions

From repo root dir:
$ make
Executable's name is labN, where N is the number of the assignment.

Debug build

Compiles to executable with debug symbols.
Delete any files without debug symbols.
$ make distclean
$ make debug

About

Chosen solutions of assignments of the Fundamentals of Computer Graphics course @ Computer Science studies @ University of Wrocław.