I am struggling with positioning issues when exporting a set of meshes in blender. I have a model that I downloaded and it has been cutted into several pieces. All those pieces have their own origin set and everything worked fine. However, I recently split some more of the geometry off into new meshes by selecting the affected faces and creating a new object from them.
For all meshes that are a result of this operation, their global positional offset within the scene is added to the origin when I import them into my babylonjs scene. For the other meshes (that have just been cutted with the knife before), this is not a problem. Currently my only workaround is to set the position of all meshes to 0,0,0 before exporting, but that’s not really nice because then they all overlap and that makes the original scene hardly “readible”.
I tried doing a “Clear Parent” operation since I expected there to be some weird hidden parenting or something similar going on, but I just can’t find out what causes this. In babylonjs, I am using SceneLoader.ImportMeshes to import the file and then I explicitly reference meshes within the scene and reposition them.
It’s not really a major issue, since resetting the position helps, but it’s a silly workaround and it would be great to know if there are known issues in that area or if someone else experienced this and knows why that happens.
Be aware that this problem occurs in blender 2.79 with the older exporter as well as in 2.8.2 with the new exporter.
If I need to provide more details, let me know.