【Unity精品源码】Render-Crowd-Of-Animated-Characters(0积分下载)
立即下载
资源介绍:
Render-Crowd-Of-Animated-Characters是一个专注于高效渲染大量动画角色的项目,它通过优化技术和算法,使得在Unity中渲染动画角色群集变得更加高效和可行。
高效渲染:采用高效的渲染技术,确保即使在角色数量巨大时也能保持高性能。
动画多样性:支持角色的多种动画状态,包括行走、奔跑、跳跃等。
AI控制:集成AI控制系统,让每个角色都能根据环境和情境做出反应。
优化的内存管理:通过优化内存使用,减少对系统资源的占用。
LOD(细节级别)系统:根据角色与摄像机的距离动态调整渲染细节。
实例化渲染:使用Unity的实例化渲染技术,减少绘制调用次数。
动画混合:利用动画状态机和混合树来实现平滑的动画过渡。
AI路径规划:实现角色的路径寻找和避障,避免场景中的拥堵。
Render-Crowd-Of-Animated-Characters是一个针对Unity开发者的有价值资源,尤其适用于需要在游戏世界中渲染大量动画角色的情况。通过高效的渲染技术和智能AI控制,它为创造真实感和活力的游戏世界提供了强大支持。
# AnimMap Baker For Animated Characters
![GitHub](https://img.shields.io/github/license/chenjd/Render-Crowd-Of-Animated-Characters)
![](https://img.shields.io/badge/platform-win--64-brightgreen)
![](https://img.shields.io/badge/unity-2023.2%2B-brightgreen)
#### BlogPost
[How To Render 10,000 Animated Characters With 20 Draw Calls In Unity](https://medium.com/@chen_jd/how-to-render-10-000-animated-characters-with-20-draw-calls-in-unity-e30a3036349a)
#### Description:
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. Useing GPU instancing to reduce draw calls.
#### Supporting Shadows
[![](https://assetstorev1-prd-cdn.unity3d.com/package-screenshot/9e708bba-1a7d-4df6-8c1d-f209a8052f84.webp)](https://www.youtube.com/watch?v=WUNq5sDMAg8 "")
#### Using Unity’s AR Foundation to create 10,000 toy soldiers in the real world on an Old iPhone 7.
[![](http://img.youtube.com/vi/choBOPO1xgo/0.jpg)](http://www.youtube.com/watch?v=choBOPO1xgo "")
The initial version was released on GitHub on 30 Jul 2017, and of course, it is still on GitHub. However, if you can buy me **a cup of coffee**, I will be very
happy :-).
[:heart: Sponsor](https://github.com/sponsors/chenjd)
[:heart: Animation Baker and Instancing for Animated Characters on Asset Store](https://assetstore.unity.com/packages/tools/animation/animation-baker-and-instancing-for-animated-characters-183598)
Recently I added support for Unity 2023 and the Universal Render Pipeline (URP), so it can be used from Unity 5.X to Unity 2023.
And I will create a video tutorial to demonstrate how to use it. If you want to know more about the implementation behind it, you can read this [article](https://medium.com/chenjd-xyz/how-to-render-10-000-animated-characters-with-20-draw-calls-in-unity-e30a3036349a) I wrote.
#### Features:
✅ Support Unity 2023.
✅ Support Shadows.
✅ Using the animation map to modify the position of vertices of your characters at runtime to avoid a lot of cost of skin calculation.
✅ Using GPU Instancing to reduce the number of draw calls, only 20 draw calls are
needed to render 10,000 soldiers playing attack actions in the demo scene.
✅ Using the animation map to modify the position of vertices of your characters at runtime to avoid a lot of cost of skin calculation.
✅ Using GPU Instancing to reduce the number of draw calls, only 20 draw calls are needed to render 10,000 cats playing idle actions in the demo scene.
✅ Support AR Foundation.
✅ Support URP(SRP Batcher)only 7 draw calls are needed to render 10,000 cats playing idle actions in the demo scene.
#### Model Resource Link:
[RTS Mini Legion Footman Handpainted](https://www.assetstore.unity3d.com/en/#!/content/86576)
---
#### Bake legacy animation info into anim map:
![1201111111111111.gif](http://upload-images.jianshu.io/upload_images/1372105-004a0ddd0f256df1.gif?imageMogr2/auto-orient/strip)
![120111111111111.gif](http://upload-images.jianshu.io/upload_images/1372105-35954dfd4ca03f7b.gif?imageMogr2/auto-orient/strip)
animated characters without animator & skinnedmeshrender.
#### GPU Instancing & mesh render for large number of animated characters:
![1372105-fa2cb8df2d12c0b3.gif](http://upload-images.jianshu.io/upload_images/1372105-310c57df8cfc83bc.gif?imageMogr2/auto-orient/strip)
10,000 animated characters with 22 drawcalls.
资源文件列表:
【Unity精品源码】Render-Crowd-Of-Animated-Characters.zip 大约有168个文件