Chosen solutions of assignments of the Basics of Computer Graphics course @ Computer Science studies @ University of Wrocław.
Visualizer of .hgt
files.
- 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.
./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.
.obj
file viewer.
./lab7 path/to/obj [path/to/texture]
- 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
From repo root dir:
$ make
Executable's name is labN
, where N
is the number of the assignment.
Compiles to executable with debug symbols.
Delete any files without debug symbols.
$ make distclean
$ make debug