MeshPart imports are producing incorrect bounding boxes

Reproduction Steps

  • Create a new Part and set its position to 25, 25, 25
  • With the part selected, right click and export it as a .OBJ file
  • Create a new MeshPart and select its MeshId property.
  • Select the .OBJ file that was just exported.
  • The part’s bounding box should be much bigger than expected.

Expected Behavior
The bounding box of the MeshPart should fit the geometry of the model, even if the pivot point is outside of the bounding box.

Actual Behavior
Importing a mesh that doesn’t have its origin centered to the volume of the geometry produces a hitbox that wraps around the geometry and the pivot point of the mesh.

Workaround
Centering the mesh manually in a model editor avoids the issue.

Issue Area: Studio
Issue Type: Other
Impact: Moderate
Frequency: Constantly

10 Likes

I can’t reproduce this.
Does it matter if you export the obj and import in the same studio session? Or will it happen whenever I import that obj?
Does it matter how I answer “Would you like to move your mesh to the given location”?
Do you have any Beta Features on other than Pivot Editor?

After digging into it a little further I can confirm this was my fault. I had some fast flags turned on because I was trying to see if I could get facial animations working early, but it seems I messed with some unfinished and unrelated features. Apologies for the confusion!

This issue can be reproduced when FFlagUseAssetImportMeshParserAndConverter is enabled.

5 Likes