Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.07 KB

README.md

File metadata and controls

34 lines (29 loc) · 1.07 KB

3DViewer v1.0

A project for School 21. View .obj files as wireframes.

Building

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.

Roadmap

  • Translate/Rotate/Scale as separate operations on the model
    • Set correct translation/rotation/scale in t_object, call update_view_mat(), set new MVP matrix uniform
  • 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