Skip to content

Fliqqr/fiit-lottify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lottify

Filip Ďuriš

Introduction

Lottify is a tool for generating optimized SVGs and Lottie files from glTF models. Lottify aims to decrease the difficulty of creating Lotties animations. The currently available tooling is very basic, the most popular being LottieLab and LottieFiles, neither providing any advanced tooling and mostly just rely on simple vector graphics manipulation and interpolation. Lottify takes a different avenue, which is taking advantage the many 3D modeling tools for the creation of the animation and then simply generating an SVG or Lottie from said model.

Lottify is not a raster image to vector converter. Typical vectorization tools trace the pixels of a raster image to convert it into vector shapes. This leads to inaccuracies, gaps and poor handling of the transparent layer. Lottify vectorizes the 3D model itself without rasterizing, leading to much higher precision, ability to move, rotate or edit the model on the fly, and allowing for real-time vectorization.

NOTICE: This is an old version of the tool. Lottify is still actively being developed privately. You can see some rendered vector graphics using lottify in /renders

Capabilities

  • Vectorize arbitrary 3D model or collection of models using an edge-finding algorithm
  • Turn a single vectorized frame into a still SVG or a collection of vectorized frames into an animated Lottie file
  • Transform the model in 3D space before vectorization to simulate camera position and orientation
  • Colour the vectorized shapes based on the colour of the model's shaders (texture support might also be a consideration)
  • Re-order the vectorized shapes before exporting to simulate 3D occlusion
  • Preview and edit still frames and animations in a GUI mode before exporting

In-development

  • Interpolate between frames of a Lottie animation instead of just using collection of still frames
  • Automatic shape ordering computed based on 3D occlusion
  • Running the algorithm on the GPU for real-time preview
  • Blender plugin allowing for real-time vectorized preview while modelling

(Some SVGs have been edited in Inkscape after rendering.)

svg Fig. 1: Vectorized Porche model with normal-based shading

3d Fig. 2: 3D Penguin Model

svg Fig. 3: Vectorized Penguin Model

About

Tool for generating SVG/Lottie files from 3D models.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors