google / monster-mash

Apache License 2.0
1.3k stars 181 forks source link

Export a sequence #2

Open tokejepsen opened 3 years ago

tokejepsen commented 3 years ago

Goal

To input a sequence of shapes and export a sequence of meshes.

Motivation

Taking 2d animation from a different sources and get out meshes that look plausible would be very interesting!

Implementation

Ideally this should work on the command line, so Monster Mash can be a background tool in a pipeline.

tokejepsen commented 3 years ago

One issue with an external image is how to define an open stroke.

@dvoromar I could not find anything obvious about how open strokes are defined for example when saving/loading projects?

tokejepsen commented 3 years ago

I think have found the workflow. Looks like the open strokes are closed with lines that get exported with 0.5127 value.

dvoromar commented 3 years ago

After a user completes an open stroke, the start and end position is connected with a line having a specific grayscale intensity: NEUMANN_OUTLINE_PIXEL_COLOR = 64 (defined in commonStructs.h).

tokejepsen commented 3 years ago

Another sequence export that's been mentioned here; https://forums.cgsociety.org/t/monster-mash-a-tool-for-casual-3d-modeling-and-animation/2061144/11, is about exporting an animation made in MM.

dvoromar commented 3 years ago

Export of animation from MM has been implemented in the PR https://github.com/google/monster-mash/pull/6.