Git Product home page Git Product logo

monster-mash's Introduction

Monster Mash: New Sketch-Based Modeling and Animation Tool

Introduction

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.

License

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.

Building

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/).

Building on Linux

Instructions for building on Ubuntu 20.04

  • Download and install the necessary dependencies by running:
    sudo apt-get install build-essential cmake libsdl2-dev wget unzip git python3
    
    (You can remove python3 if you only want the desktop version.)
  • Clone this repository into your home directory and change directory to the repo:
    git clone https://github.com/google/monster-mash.git ~/monster-mash && cd ~/monster-mash
    
  • Download the Triangle library and unzip it into the appropriate directory:
    wget http://www.netlib.org/voronoi/triangle.zip && unzip triangle.zip -d third_party/triangle
    
  • (Skip if you only want the desktop version.) Download and install emscripten by following instructions on https://emscripten.org/docs/getting_started/downloads.html
  • Create a directory for building and change to it:
    mkdir -p ./build/Release && cd ./build/Release
    
  • Build the project:
    • For the complete web version, build the project using emscripten:
      cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=PATH_TO_EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake ../../src && make
      
      (Replace PATH_TO_EMSDK with the path to your emsdk directory.)
    • For the desktop version, build the project using clang/gcc:
      cmake -DCMAKE_BUILD_TYPE=Release ../../src && make
      

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.