Coder Social home page Coder Social logo

cybersys / maya-vertanimtotex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zgeng/vertanimtotex

0.0 0.0 0.0 12.17 MB

Maya tool to export vertex animation as textures and use them in vertex shaders.

Home Page: http://zhengeng.net/vertex-animation

Python 75.36% GLSL 24.64%

maya-vertanimtotex's Introduction

VertAnimToTex 0.8

Maya tool to export vertex animation as textures and use them in vertex shaders.

Install:

  • 1.Download and unzip the folder.Rename the folder as VertAnimToTex(just remove "-master" suffix).
  • 2.Put it under Documents/Maya/Scripts/
  • 3.Open Autodesk Maya, in the script editor,switch to python label,input and excute
import VertAnimToTex
VertAnimToTex.main()

Manual:

tool_window

  • 1.After the window popout, select the mesh that with vertex animation. Input the animation start and end frame, index texture size, set output path and texture name.
  • 2.Click export and wait for the data texture export process.(It maybe slow for big model since the recalculation of tangent data)
  • 3.Export the model. (Do not change frame)

unity_index_import unity_data_import

  • 4.In Unity, set the imported index and data texture as above.
  • 5.Use the shader file VertAnim.shader in the folder for the material. Put the index and data texture in the right slot.
  • ** There are 3 preprocessor options in the shader file, to determine whether to use index data stored in the vertex color, whether to use normal movement data and tangent movement data.

Featers in the upcoming version: Option about nomarl and tangent data output. Unity import tools. etc.

maya-vertanimtotex's People

Contributors

zgeng avatar

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.