This is the open-source version of Monster Mash.
Monster Mash is a new sketch-based modeling and animation tool that allows you to quickly sketch a character, inflate it into 3D, and promptly animate it. You can perform all interactions in the sketching plane. No 3D manipulation is required.
The web demo (http://MonsterMash.zone) and its source code that is available here accompanies a paper Dvorožňák et al.: Monster Mash: A Single-View Approach to Casual 3D Modeling and Animation published in ACM Transactions on Graphics 39(6):214 and presented at SIGGRAPH Asia 2020 conference. (See the project page for more details.)
The demo uses a combination of web technologies (mainly for UI) and C++ code.
Disclaimer: This is not an officially supported Google product.
The source code in the "src" directory is licensed under Apache License, Version 2.0. See the LICENSE file for more details. Note that third party code located in the "third_party" directory may be licensed under more restrictive licenses.
This project uses CMake (https://cmake.org) for building. Some third party libraries are not part of this repository and must be installed in advance:
You can build the complete web application using emscripten (https://emscripten.org/), or a simplified desktop version (i.e., only a canvas without a web-based UI) using clang (https://clang.llvm.org/) or gcc (https://gcc.gnu.org/).
(You can remove
sudo apt-get install build-essential cmake libsdl2-dev wget unzip git python3
python3if you only want the desktop version.)
git clone https://github.com/google/monster-mash.git ~/monster-mash && cd ~/monster-mash
wget http://www.netlib.org/voronoi/triangle.zip && unzip triangle.zip -d third_party/triangle
mkdir -p ./build/Release && cd ./build/Release
(Replace PATH_TO_EMSDK with the path to your emsdk directory.)
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=PATH_TO_EMSDK/upstream/emscripten/emcc -DCMAKE_CXX_COMPILER=PATH_TO_EMSDK/upstream/emscripten/em++ ../../src && make
cmake -DCMAKE_BUILD_TYPE=Release ../../src && make