Code Monkey home page Code Monkey logo

prototype-gpuanimation_vertexposition's Introduction

Prototype-GPUAnimation_VertexPosition

将蒙皮动画支持GPUInstancing的一个方案。这是我参考(抄的)陈嘉栋老师实现的方案,自己重新实现了一遍学习用的仓库。代码几乎一样,只是支持了采样多个SkinnedMeshRenderer的角色。
参考的文章:https://www.cnblogs.com/murongxiaopifu/p/7250772.html
参考的仓库:https://github.com/chenjd/Render-Crowd-Of-Animated-Characters

原理

将蒙皮动画播放动画时,每帧模型的顶点位置存在一张贴图上。然后播放时,通过shader顶点着色器采样这张贴图获得每帧不同的顶点位置来播放动画。

缺点

生成的贴图文件过大,对于顶点数量多的模型或者动画时长较长的,甚至有可能超过Unity可创建贴图上限。这时候考虑另外一种储存骨骼位置信息的方式,在我的另一个仓库里面。

prototype-gpuanimation_vertexposition's People

Contributors

potrochen avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.