Instancing demos

This page has three simple demos of instancing. Instancing is a feature that lets you draw many meshes with one call, which is particularly useful for drawing billboards or other simple shapes.


Skärmavbild 2022-03-17 kl. 19.53.08


Rotation animation with instancing


Skärmavbild 2022-03-17 kl. 19.51.47


Billboard instancing


A variant of this is using instanced arrays, where a buffer provides information per instance:


Skärmavbild 2022-04-08 kl. 09.31.13


Instanced arrays


Skärmavbild 2022-03-17 kl. 19.50.44


Instancing bunny


C++ version 2024:


Rotation-animation-with-instancing-cpp.zip

Billboard-instancing-cpp.zip

Billboard-instancing-with-instanced-arrays-cpp.zip

Instancing-bunny-cpp.zip





Old versions:


Rotation-animation-with-instancing.tar.gz

Billboard-instancing.tar.gz

Billboard-instancing-with-instanced-arrays.tar.gz

Instancing-bunny.tar.gz

This page is maintained by Ingemar Ragnemalm.