Git Product home page Git Product logo

m1-tp-tinymesh's Introduction

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

Troubleshooting

In case of a problem, send me an email describing your error: axel.paris[at]liris.cnrs.fr

m1-tp-tinymesh's People

Contributors

eric-galin avatar gundyplouf avatar tomclabault avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.