var geometry = new THREE.Geometry();
for (var g = 0; g < meshList.length; g++) {
geometry.merge(new THREE.Geometry().fromBufferGeometry(meshList[g].instanceBufferGeometry));
}
gltf.scene.children=[];
gltf.scene.add(new THREE.Mesh(geometry,meshList[0]._material));
but It has no effect. how to merge instanceBufferGeometry or use addGroup in instanceBufferGeometry?
thanks,i’ll try it.I used similarity algorithm and instantiation. However, the instantiation effect of some models (such as pipelines) is not good,maybe my similarity algorithm is not ideal. so we want to merge some of them to reduce drawCall.