This is a small wrapper around magnum graphics to easily load/create objects and move them within the scene. Suitable to draw simple mechanical motions or function-based colored meshes.
- Bernardo Fichera (bernardo.fichera@epfl.ch)
- primitive
- import from file
- Unify Object and DrawableObject
- Fix draw when material is present
- Fix set of mesh, color, material etc
- Remove debug messages
- Fix vertical rotation (problem when camera not in y=0, it keeps rotating about old y)
Work in progress. Check the examples to get an idea.
This library depends on Corrade
git clone https://github.com/mosra/corrade.git (git@github.com:mosra/corrade.git)
cd corrade && mkdir build && cmake .. && make && (sudo) make installand Eigen
git clone https://gitlab.com/libeigen/eigen.git (git@gitlab.com:libeigen/eigen.git)
cd eigen && mkdir build && cmake .. && (sudo) make installIn addition, in order to compile the project, install my waf-tools.
Clone the repository
git clone https://github.com/nash169/graphics-lib.git (git@github.com:nash169/graphics-lib.git)Compile and install using waf commands
waf configure buildor
waf configure && wafInstall the library (optional)
(sudo) waf installIf you want to make a clean installation
(sudo) waf distclean configure build installIn order to set the desired compiler define the environment variable CXX=<g++,clang++,icpc> (gnu, clang and intel compiler respectively).
It is highly recommended to compile with AVX support
waf configure --releaseCompile static library (default option)
waf configure --staticCompile shared library
waf configure --sharedDefine a specific installation path
waf configure --prefix=/path/to/install/folderOnce the library is compiled all the examples can be run with
./build/src/examples/<name_example>