Creating an instance from a merge geometry

I want to draw all my meshes in one draw call. But i can’t to do it dynamically. Each addition of a new mesh to a merged geometry overwrites it.

How can I implement this?

MergeMeshes creates a new mesh every time it’s run, so the existing geometry is overwritten. If you want to add vertices to a mesh you should use VertexData.applyToMesh, like this example: Donut | Babylon.js Playground (babylonjs.com)

4 Likes