chenjd/Render-Crowd-Of-Animated-Characters
소개
애니메이션 캐릭터를 위한 애니메이션 베이킹 및 인스턴싱입니다. GPU를 사용해 대규모 애니메이션 캐릭터를 렌더링하고, 애니메이션 맵으로 버텍스 셰이더가 런타임에 메시의 버텍스 위치를 수정합니다. GPU 인스턴싱을 사용해 드로 콜을 줄입니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +3
- in 1 month
- +5
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAnimMap Baker For Animated Characters
BlogPost
How To Render 10,000 Animated Characters With 20 Draw Calls In Unity
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
Using Unity’s AR Foundation to create 10,000 toy soldiers in the real world on an Old iPhone 7.
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: Animation Baker and Instancing for Animated Characters on Asset Store
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 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
Bake legacy animation info into anim map:

animated characters without animator & skinnedmeshrender.
GPU Instancing & mesh render for large number of animated characters:
10,000 animated characters with 22 drawcalls.
관련 프로젝트 살펴보기
불러오는 중…

