A project for School 21. View .obj
files as wireframes.
Requires OpenGL 3.3+ and GLFW to run.
On Linux, install GLFW and gtk-devel
(for "open file" dialog window). On Mac, just install GLFW.
Debian (didn't test myself, but should work):
>$ sudo apt install libglfw3-dev libgtk-3-dev
Fedora:
>$ sudo dnf install glfw-devel gtk3-devel
MacOS:
>$ mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
>$ brew install glfw
Then run make
.
- Translate/Rotate/Scale as separate operations on the model
- Set correct translation/rotation/scale in
t_object
, callupdate_view_mat()
, set new MVP matrix uniform
- Set correct translation/rotation/scale in
- Use mouse to rotate the model (optional)
- UI
- Works. Sort of.
-
.obj
file parsing, loading, correct error handling - Unit tests for model loading and affine transformations
- Makefile rules:
install
,uninstall
,dvi
,dist
,tests
,gcov_report