Giter VIP home page Giter VIP logo

animationconverter's Introduction

AnimationConverter

This is Maya script for converting the frame by frame geometry animation(Such as simulated fluid, animated photogrammetry model)to the scale based animation.
Optimize the frame rate 15 fps for web or mobile usage. Also this script will rearragne the UV layout.
So that meshes can share textures and materials over the frames, which helps to reduce the number of drawcalls.

Originally this script designed for SparkAR studio usage.
however the result FBX animation can be used any engines that uses FBX file.

Prerequisite
--Python2.7
--pillow

Install and Usage.
Import mesh sequence into Maya. Download and place combineTexture.py to the folder that includes texture files for obj sequence. Download the Animation converter.py, open that with script editor in Maya, and run the script. The UI window will show up.
Put the path for python (eg.C:/usr/bin/python) and path for combineTexture.py(eg. C:/Users/admin/Desktop/tes/combineTexture.py).
Hit the Convert Mesh Animation button.
When it's done, you can save meshes as FBX. Optimized new textures are in "Combined" folder in your original folder.

Current Limitation as of July 2021
Mesh name format should be "mesh-f#####.obj"
Framerate is fixed as 15fps

Animation is playing on the web site sample

Animation is playing in SparkAR
sample

animationconverter's People

Contributors

naritomo1984 avatar

Watchers

James Cloos avatar  avatar

Forkers

hengle

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.