Batching using 3d meshes