Skip to content

eric-galin/TinyMesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows

  • First, you must install Qt6 (https://www.qt.io/download, use the open source version). Install the msvc2019_64 compiler only (Note: other compilers can work too).
  • Set the "QTDIR64" environment variable to your Qt installation folder (example: "E:\Code\Qt\6.3.0\msvc2019_64")
  • Set the "GLEW_DIR" environment variable to the path "XXX/TinyMesh/Libs/", with XXX the path to your repository.
  • Run the script TinyMesh/Script/AppTinyMeshDeploy.bat

Finally, open the Visual Studio solution files with Visual Studio 2022 Community, or open the QtCreatorProject.pro with QtCreator. Compile/Build and execute, everything should work. Note: For other IDE, you will have to use the provided CMakeLists.txt to generate the solution files yourself.

Linux

  • First, you must install Qt6 (https://www.qt.io/download, use the open source version). Install the gcc compiler only (Note: other compilers can work too).
  • Install the following packages
sudo apt-get install g++ libglew-dev freeglut3-dev

Finally, open the QtCreatorProject.pro with QtCreator. Click on configure, then build and execute, everything should work. Note: For other IDE, you will have to use the provided CMakeLists.txt to generate the solution files yourself.

Mac OS/X

  • First, you must install Qt6 (https://www.qt.io/download, use the open source version). Install the gcc compiler only (Note: other compilers can work too).
  • Install the following packages (Note: Depending on your Mac OS/X version, other packages might be needed. Shoot me an email if anything is missing.
brew install glew

Finally, open the QtCreatorProject.pro with QtCreator. Click on configure, then build and execute, everything should work. Note: For other IDE, you will have to use the provided CMakeLists.txt to generate the solution files yourself.

Additional notes

Optionally, you can use your own code (without Qt) to do the windowing and rendering part. In this case, you can extract the following files, which don't have any dependencies apart from the C++ standard library:

  • box.h/.cpp
  • camera.h/.cpp
  • color.h
  • implicits.h/.cpp
  • mathematics.h
  • mesh.h/.cpp (You must remove the Mesh::LoadObj and Mesh::SaveObj functions, which depends on Qt)
  • meshcolor.h/.cpp
  • ray.h/.cpp

About

Tiny mesh visualization interface using Qt and GLSL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages