Coder Social home page Coder Social logo

popefang / render-crowd-of-animated-characters Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenjd/render-crowd-of-animated-characters

0.0 0.0 0.0 10.1 MB

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.

License: MIT License

C# 54.29% ShaderLab 45.71%

render-crowd-of-animated-characters's Introduction

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.

render-crowd-of-animated-characters's People

Contributors

chenjd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.