An open API service indexing awesome lists of open source software.

https://github.com/sugi-cho/TransformAnimationTextureBaker

baking transform animation to texture for Unity
https://github.com/sugi-cho/TransformAnimationTextureBaker

Last synced: 24 days ago
JSON representation

baking transform animation to texture for Unity

Awesome Lists containing this project

README

          

# Transform-Animation Texture Baker

Baking Object's Position/Rotation/Scale Animation to Texture, and Play via Shader

![](transformAnimTexture.gif)

## Optimization

- Writing Object Index to mesh.uv2
- Combine meshes per Materials to reduce Draw Call

![](destruction.gif)

### Unity Built-in Animation

- FPS:49.4
- Batches: 24210

Thousands of objects are Animate via AnimationClip (Tons of AnimationCurves) is too heavy

![](animationClip.jpg)

### Bake Transform-Animation to Texture, and Combine Meshes

- FPS: 433.1
- Batches: 147

![](textureAnimation.jpg)

### [Output Textures](https://github.com/sugi-cho/TransformAnimationTextureBaker/blob/main/Assets/TransformAnimationTextureBaker/Scripts/TransformAnimationTextureBaker.cs#L41-L55)

#### Texture of positions `Vector3`

![](Main_posTex_converted.png)

#### Texture of rotations `Quaternion`

![](Main_rotTex_converted.png)

#### Texture of scales `Vector3`

![](Main_scaleTex_converted.png)

Building-Destruction animation is created by [Yuya Torii](https://github.com/toriivfx), not included in this repo