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
- Host: GitHub
- URL: https://github.com/sugi-cho/TransformAnimationTextureBaker
- Owner: sugi-cho
- License: mit
- Created: 2020-10-12T17:38:06.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-27T15:55:20.000Z (about 5 years ago)
- Last Synced: 2024-06-06T09:34:51.507Z (over 1 year ago)
- Language: C#
- Size: 13.8 MB
- Stars: 69
- Watchers: 4
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- anything_about_game - TransformAnimationTextureBaker
README
# Transform-Animation Texture Baker
Baking Object's Position/Rotation/Scale Animation to Texture, and Play via Shader

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

### Unity Built-in Animation
- FPS:49.4
- Batches: 24210
Thousands of objects are Animate via AnimationClip (Tons of AnimationCurves) is too heavy

### Bake Transform-Animation to Texture, and Combine Meshes
- FPS: 433.1
- Batches: 147

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

#### Texture of rotations `Quaternion`

#### Texture of scales `Vector3`

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