How do you merge geometry at runtime?

I was wondering how you go about merging programatically created entities so that they are drawn together in a single draw call?

For example combining 400 boxes together so they are drawn at once. I know how to do it in threeJS, webGL and aFrame but there doesn’t seem to be any examples for PlayCanvas that I can find.

There isn’t currently a mechanism for merging meshes in PlayCanvas. It’s on our TODO list.

I’ve added an issue on GitHub to allow this to be tracked publicly:

Note that you can actually merge two pc.Mesh objects yourself but using the existing API if this is urgent. :slight_smile: