Maya tool to export vertex animation as textures and use them in vertex shaders.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DemoFiles
README.md
UI.py
VertAnim.shader
__init__.py
vt_anim_export_withpyside.py

README.md

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.