I tried using a Compute Shader to see if I could animate glTF models in a BOID simulation.
The first approach uses instancing, and the second approach uses Thin Instances.
It seems that using Thin Instances allows more models to be displayed.
I created these samples with help from Claude.
-
Sample displaying 1,000 Ducks using instancing
https://playground.babylonjs.com/?webgpu#3URR7V#433
-
Sample displaying 5,000 Ducks using Thin Instances
https://playground.babylonjs.com/?webgpu#3URR7V#438


