I’m encountering a problem with 3D models provided by our suppliers when using three.js. The models consist of multiple “children” meshes, and three.js seems to struggle with this structure, as the main model doesn’t contain the necessary geometrical data to work with decals. An error is thrown saying “geometry is undefined” when I attempt to apply decals to the main model.
I’ve tried using
BufferGeometryUtils.mergeGeometries() but it fails when the geometries have different
.morphTargetsRelative values. The specific error message is:
THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index 1. .morphTargetsRelative must be consistent throughout all geometries.
Is there a way to work around this to ensure that decals can be applied consistently across all child meshes of the group?