• Stars
    star
    1,301
  • Rank 36,165 (Top 0.8 %)
  • Language
    C#
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

AnimMap Baker For Animated Characters

GitHub

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 :-).

❤️ Sponsor

❤️ Animation Baker and Instancing for Animated Characters on Asset Store

Recently I added support for Unity 2022 and the Universal Render Pipeline (URP), so it can be used from Unity 5.x to Unity 2022.

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 2022.

✅ 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:

1201111111111111.gif

120111111111111.gif animated characters without animator & skinnedmeshrender.

GPU Instancing & mesh render for large number of animated characters:

1372105-fa2cb8df2d12c0b3.gif 10,000 animated characters with 22 drawcalls.

More Repositories

1

Realistic-Real-Time-Grass-Rendering-With-Unity

Realistic Real Time Grass Rendering With Unity. Using the Geometry Shader to generate millions of grass on GPU. ref:Edward Lee
C#
572
star
2

UnitySpecialEffectWithDepth

Using depth data to achieve scanning effects, x-ray effects, and shield energy field effects. Version Unity5.6 +
ShaderLab
449
star
3

Unity-Miscellaneous-Shaders

Miscellaneous Shaders in Unity, WIP(maybe?)
ShaderLab
445
star
4

Unity-Boids-Behavior-on-GPGPU

Boids behavior calculation code is modified to utilize Microsoft Direct Compute resulting significant improvements in Performance. 利用Compute Shader实现Boids模拟。
C#
229
star
5

Unity-Signed-Distance-Field-Shadow

Signed Distance Field Shadow in Unity
GLSL
122
star
6

Unity-ARFoundation-HandDetection

Hand Detection and Tracking with Unity ARFoundation and CoreML.
C#
113
star
7

Unity-Flip-Book-With-Shader

Unity Flip Book With Shader.利用shader实现翻页的效果。
ShaderLab
108
star
8

UsefulWeb

一些有用的网站收藏。
107
star
9

LightProbeEditor

Unity LightProbe Editor
C#
68
star
10

Stanford-Bunny-Fur-With-Unity

Using the Geometry Shader to generate fur on GPU.
ShaderLab
40
star
11

Unity3D_XMLToEgg

基于C#编写的Unity3D工具,利用反射和泛型通过读取XML文件创建新的实例并且为实例赋值。原型,具体内容需要具体配置。
C#
23
star
12

Unity_UI_Gamma

A project that solves the the UI rendering issue in the linear space.
ShaderLab
21
star
13

TTBT-Framework

可供Unity3D使用的行为树框架。TTBT is a C# framework for easily building and running behavior trees. Here, "behavior tree" refers to the technique used to control the behaviour of characters in games.
C#
19
star
14

TTUI-Framework

基于注册分发机制的Unity3D的UI消息框架,目的是便于管理消息以及和MonoBehaviour进行解耦。
C#
18
star
15

azure-openai-gpt4-voice-chatbot

Python
14
star
16

Unity3D_EggToolkit

基于C#的Unity3D小工具箱,namespace为EggToolkit.
C#
10
star
17

AzureFunction.UserCRUD

A sample CRUD project demonstrates the process of Azure Function using EntityFramework Core to operate the Azure SQL database.
C#
10
star
18

SBP_AssetBundles_Demo

Using SBP to build Assetbundles.
C#
7
star
19

VSCode-StandardHeader

VSCode-StandardHeader
TypeScript
6
star
20

Unity.DetectPneumoniaWithAzure

The world has changed due to the COVID-19 pandemic in 2020. Medical staff around the world have shown bravery and resilience in the fight against COVID-19, and some even sacrificed their lives while performing their duties. As an ordinary person, as a programmer, I also want to help. Therefore, using AI to try to help diagnose lung diseases, such as viral pneumonia, bacterial pneumonia, is an idea that I am interested in trying.
ShaderLab
5
star
21

Algorithms

一些基本算法的实现。慢慢更新中。
C#
4
star
22

pyuml

A toy project that generates UML diagrams of Python code by parsing the abstract syntax tree of the target Python code.
Python
4
star
23

Unity-Hello-Swift

This project demonstrates how to create a Swift plugin for Unity and 'automatically' calls some callback such as OnUnityPluginLoad etc.
C++
4
star
24

Awesome-Azure-Skilling

This repository is a collection of free resources and tips for those working with or learning about Azure.
3
star
25

iOS-Hybrid-Sample

iOS 9 Hybrid Sample
JavaScript
3
star
26

Unity-Test-Framework-with-UITest

Add UI Test in the Test Framework
C#
2
star
27

FanyoyBird

Flappy Bird written in cocos2d-js-v3.0-beta
C
2
star
28

CodeStripExample

C#
2
star
29

chenjd

1
star
30

AugmentedReality_Whale_Flying

C#
1
star
31

Unity3D_EggArray

Sort-of like underscore.js, but for CSharp
C#
1
star
32

PerformanceTester

Unity相关操作的性能测试
C#
1
star
33

Microsoft-Azure-Cloud-CheatSheets

The repo that stores the cheat sheets I made about Azure services.
1
star