Skip to content

demicuz/3DViewer_v1.0

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published