Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.65 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.65 KB

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.