Skip to content

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.

License

Notifications You must be signed in to change notification settings

nash169/graphics-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magnum Dynamics

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.

Authors/Maintainers

Available Utils

  • primitive
  • import from file

ToDo

  • 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)

Usage

Work in progress. Check the examples to get an idea.

Dependencies

This library depends on Corrade

git clone https://github.com/mosra/corrade.git ([email protected]:mosra/corrade.git)
cd corrade && mkdir build && cmake .. && make && (sudo) make install

and Eigen

git clone https://gitlab.com/libeigen/eigen.git ([email protected]:libeigen/eigen.git)
cd eigen && mkdir build && cmake .. && (sudo) make install

In addition, in order to compile the project, install my waf-tools.

Installation

Clone the repository

git clone https://github.com/nash169/graphics-lib.git ([email protected]:nash169/graphics-lib.git)

Compile and install using waf commands

waf configure build

or

waf configure && waf

Install the library (optional)

(sudo) waf install

If you want to make a clean installation

(sudo) waf distclean configure build install

Compilation options

In 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 --release

Compile static library (default option)

waf configure --static

Compile shared library

waf configure --shared

Define a specific installation path

waf configure --prefix=/path/to/install/folder

Examples

Once the library is compiled all the examples can be run with

./build/src/examples/<name_example>

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published