#7 · Primary category: 3D & AR Rendering SDKs
Render-Crowd-Of-Animated-Characters
Animation Baker and Instancing for Animated Characters: Using GPU to implement large-amount animation characters rendering. The animation map for vertex shader to modify the vertex position of the mesh at runtime. Using GPU instancing to reduce draw calls.
Project last updated:12/28/24
GitHub Stars
1.8K
Forks
304
Contributors
5
License
MIT
Why we included this project
Rendering a crowd of animated characters is one of those problems that looks easy until you try it, and this repo attacks it the smart way: bake the animation into a texture and let the GPU do the rest. The project bakes skeletal animation data into an animation map, which a vertex shader reads at runtime to move mesh vertices, so you skip the per-frame CPU skinning cost. Combined with GPU instancing, the demo renders 10,000 soldiers in about 20 draw calls, which is the kind of number that makes crowd scenes viable on modest hardware. It works across Unity 5.x through 2023, supports URP and shadows, and includes an AR Foundation example that runs thousands of toy soldiers on an old iPhone 7. Treat it as a reference implementation rather than a drop-in asset: you'll adapt the baker and shaders to your own models and clips, but if you're hitting walls with SkinnedMeshRenderer crowds, the approach and code are worth studying.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
engine
A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.
vanta
Animated 3D backgrounds for your website
Pangolin
Pangolin is a lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input.
appleseed
A modern open source rendering engine for animation and visual effects
three-vue-tres
🎉一款让你的三维可视化项目快速落地的开源框架,天然具备良好的跨平台与🎊国产化适配能力 支持低代码编辑器、Web / 小程序 / App 全端部署,永久免费商用。 融合数字孪生、三维可视化(WebGL / WebGPU / three.js / tres.js / tvt.js),并扩展 AI 能力(Skills / OpenSpec),助力智能化场景快速构建 🚀