# How to use CitySample - BP\_AnimToTexture?

**URL:** <https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208>\
**Category:** Character & Animation\
**Tags:** unreal-engine, UE5-0, question\
**Created:** [April 26, 2022, 1:28pm UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208 "2022-04-26T13:28:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lord\_Paasila](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lord\_Paasila](https://forums.unrealengine.com/u/Lord_Paasila)\
**Post date:** [April 26, 2022, 1:28pm UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/1 "2022-04-26T13:28:29Z")

</div>

So in the CitySample project I noticed that the background characters in crowds are static meshes with vertex animation in the materials. There is a plugin there called AnimToTexture which seems like it can bake vertex animation from a given data asset- Though I’m struggling to figure it out, has anyone tried AnimToTexture?

I’m trying to apply it to a different character mesh, using SK\_BASE skeleton (the metahuman skeleton).

---

<div class="post-metadata">

**Author:** ![Lazanja](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lazanja](https://forums.unrealengine.com/u/Lazanja)\
**Post date:** [April 29, 2022, 12:36pm UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/2 "2022-04-29T12:36:47Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/f/05fdaab8e22c2ddb465cd7623be86e4521c430a4.jpeg "Unreal Engine Crowd Setup using vertex animation textures") ](https://www.youtube.com/watch?v=CcJv8V-M9zs)

> **[GitHub - Rexocrates/Vertex\_Anim\_Toolset: Unreal Engine tools for baking...](https://github.com/Rexocrates/Vertex_Anim_Toolset)**
>
> Unreal Engine tools for baking Skeletal Mesh animation into textures to animate meshes through the material shader - GitHub - Rexocrates/Vertex\_Anim\_Toolset: Unreal Engine tools for baking Skeletal...

Check this out, I think they based it on this.

---

<div class="post-metadata">

**Author:** ![Lord\_Paasila](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lord\_Paasila](https://forums.unrealengine.com/u/Lord_Paasila)\
**Post date:** [May 2, 2022, 1:25pm UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/3 "2022-05-02T13:25:51Z")

</div>

This is a handy resource, so thanks for linking it!  
The process in generating the VATs seems to be a little different with the UE5 AnimToTexture.  
I’d give this Vertex\_Anim\_Toolset a go but it seems to be discontinued since 4.26.0…  
So… the question remains- How to use the AnimToTexture plugin?

---

<div class="post-metadata">

**Author:** ![Lazanja](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lazanja](https://forums.unrealengine.com/u/Lazanja)\
**Post date:** [May 2, 2022, 3:48pm UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/4 "2022-05-02T15:48:30Z")

</div>

You can use it in 4.26 to generate the textures and static meshes.  
Then there is a UE5 Pull request on the github with a UE5 compatible version, from there you can use the material functions in UE5 to playback the VAT animations.  
Only thing that doesn’t work on UE5 is the c++ class that generates them which is unfortunate, but it’s totally doable, just generate in a separate 4.26 project and migrate to UE5.

---

<div class="post-metadata">

**Author:** ![Lord\_Paasila](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lord\_Paasila](https://forums.unrealengine.com/u/Lord_Paasila)\
**Post date:** [May 3, 2022, 7:48am UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/5 "2022-05-03T07:48:41Z")

</div>

Right, But the material functions aren’t showing up with the plugin installed to 5.0.1 (ExtractAnimData\_Pivot\_Interp).

\*edit  
Ah nvm, I can drag the functions over from the folder, it’s just searching for them that doesn’t work.

---

<div class="post-metadata">

**Author:** ![jayo2j](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jayo2j](https://forums.unrealengine.com/u/jayo2j)\
**Post date:** [May 9, 2022, 5:14pm UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/6 "2022-05-09T17:14:20Z")

</div>

Have you figured out how to use it?

And about that Vertext toolset, how do you get it to work in UE5? I downloaded the pull request but I do not see the button to bake animation

---

<div class="post-metadata">

**Author:** ![Lord\_Paasila](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lord\_Paasila](https://forums.unrealengine.com/u/Lord_Paasila)\
**Post date:** [May 20, 2022, 8:51am UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/7 "2022-05-20T08:51:15Z")

</div>

As Lazanja said, It works to bake the mesh and textures in 4.26 and migrate over to ue5. Baking in ue5 doesn’t work yet… Though I guess you would have figured that out by now 🙂

---

<div class="post-metadata">

**Author:** ![sivan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sivan](https://forums.unrealengine.com/u/sivan)\
**Post date:** [August 25, 2022, 7:03pm UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/8 "2022-08-25T19:03:09Z")

</div>

has anybody converted this vertex anim plugin to ue5 with success?  
I did it after upgrading to 4.27, but have had no time to test it yet… there had been a lot of work with float to double and some other vector conversion…

btw its creator suggests to use the very similar AnimToTexture plugin made by Epic from the CitySample project. is it handy too, or is there docs somewhere?

---

<div class="post-metadata">

**Author:** ![lazortech13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lazortech13](https://forums.unrealengine.com/u/lazortech13)\
**Post date:** [September 9, 2022, 9:04am UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/9 "2022-09-09T09:04:53Z")

</div>

I found a nice tutorial on the AnimToTexture plugin that comes in the CitySample and it helped me tremendously.

Here is a link to the original post in Japanese:

> **[\[UE5\]AnimToTextureプラグインの使い方 - Qiita](https://qiita.com/marv_kurushimay/items/8898046ed9986bbdd6b5#%E3%82%B9%E3%82%BF%E3%83%86%E3%82%A3%E3%83%83%E3%82%AF%E3%83%A1%E3%83%83%E3%82%B7%E3%83%A5)**
>
> 概要
> UE5のCityサンプルでは、SkeletalMeshをStaticMesh化してアニメーションを流す。といったことをやっていました。
> その概要は以前の記事
> 
> 
> 
> でまとめています。
> この記事では、そのワークフローで使われてい...

Here is the link to the version I translated by using DeepL Translator.

> **[UE5 AnimToTexture plug-in](https://docs.google.com/document/d/1P2r3YzPOMZU59o2DaEBim0nmPSTdVg3MmFA3rORg6f0/edit?usp=sharing)**
>
> UE5 AnimToTexture plug-in Original Post: This is not the original post. This is just a version translated into english. Please see the original post by @marv\_kurushimay(株式会社マーベラス) linked below....

You can also accomplish a similar effect not needing to render animations to textures by following this tutorial and using blender to bake your animation composite

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/4/db40527ec31bfe6f2a56c030112816fac7b2ee97.jpeg "Simulating Large Crowds In Niagara | Unreal Engine") ](https://www.youtube.com/watch?v=CqXKSyAPWZY)

---

<div class="post-metadata">

**Author:** ![kromond](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kromond/32/603777_2.png) [@kromond](https://forums.unrealengine.com/u/kromond)\
**Post date:** [January 10, 2023, 10:37pm UTC](https://forums.unrealengine.com/t/how-to-use-citysample-bp-animtotexture/540208/10 "2023-01-10T22:37:47Z")

</div>

I made a video on how to use the AnimToTexture plugin, which is now included in 5.1. It was a bit of a puzzle to figure out and I didn’t solve it all.  
There are some functions in the plugin I couldn’t get working, but the video shows a working example. The video shows two blueprints, one is an editor utility widget and the other is a basic instancing setup and those blueprints are on my github, just as UASSETS for 5.1 (is there a better way to share an editor utility?)

Please note, the video shows I’m getting steppy motion, which I have not yet solved. If you know what is causing this, please let me know!

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/e/ddee79746c835f87d2ec30040fd134c2591dada3.jpeg "Unreal Engine 5 AnimToTexture Plugin, How to Use it to make Vertex Animation Textures for crowds") ](https://www.youtube.com/watch?v=vrlFozqB0jA)
