Skip to Main Content
Hands-On C++ Game Animation Programming
book

Hands-On C++ Game Animation Programming

by Gabor Szauer
June 2020
Beginner to intermediate content levelBeginner to intermediate
368 pages
7h 23m
English
Packt Publishing
Content preview from Hands-On C++ Game Animation Programming

Chapter 15: Rendering Instanced Crowds

This final chapter explores how to render large crowds using instancing. Crowd rendering is an interesting topic because it moves pose generation (sampling) and blending onto the GPU, making the entire animation pipeline run in a vertex shader.

To move pose generation to the vertex shader, animation information needs to be encoded in a texture. The focus of this chapter will be encoding animation data into textures and using that texture to create an animated pose.

Without instancing, drawing a large crowd would mean making lots of draw calls, which would hurt the frame rate. Using instancing, one mesh can be drawn many times. If there is only one draw call, the animated poses for each character in the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning C++ Game Programming

Beginning C++ Game Programming

John Horton

Publisher Resources

ISBN: 9781800208087Supplemental Content