Mesh-Viewer icon indicating copy to clipboard operation
Mesh-Viewer copied to clipboard

An OpenGL mesh viewer with a GUI menu implemented with Qt based on C++.

Mesh-Viewer

An OpenGL mesh viewer with a GUI menu of functionalities implemented with Qt.

1 Functionalities

  • Read in many types of mesh model, such as .obj, .x, .dae, and then display the model
  • 3 display mode: Flatlines, Wireframe, Flat
  • 3 shading mode: Flat Shading, Gouraud Shading and Phong Shading
  • Texture mapping/remove
  • Color overlay
  • 3 transform: Translation, Rotation and Scale
  • Mid point subdivision
  • A menu bar that contain the buttons of above functions.

2 Coding Environment & 3rd Party Library

  • C++
  • freeglut
  • Qt5.8.0(for Windows 32-bit, VS2015)
  • Assimp (For importing mesh model) https://github.com/assimp/assimp
  • IL (For processing image data)

3 Effect screenshots

  • 3 display mode: Flatlines, Wireframe, Flat

Image text

  • 3 transform: Translation, Rotation and Scale

Image text

  • Texture mapping

Image text

  • Color overlay

Image text

  • 3 shading mode: Flat Shading, Gouraud Shading and Phong Shading

Image text

  • Read in different types of mesh model:

Image text

  • Mid point subdivision

Image text

4 Executable program

Find the MeshViewer.exe at "/Executable program" and run it! Then choose the functions at the menu bar.

See modelPath.txt at "/Executable program", and choose your favorite model :)