Importing a Mesh should include an 'Origin' Attachment if the geometry gets shifted from its original position

When you import a Mesh on Roblox, the bounding box and centroid of the geometry are used for the MeshPart’s size and position. This makes sense given how Parts are supposed to work, but this behavior is not always desired. For instance, models in the VMF importer I’m working on tend to have varying origin points, and I usually have to redefine the original origin point relative to whatever shifts the geometry went through.

What I export:

What I’m currently getting:

It would be handy if this original point was defined in the MeshPart somewhere, for those who may still need it for something.

43 Likes

Well, a couple years later and we’ve got a use case which is soon to be a lot more important in the near future, UGC items. Currently, aligning items is tedious, inaccurate, and unreliable, a method of trial and error. In something like Blender, it takes mere moments to set a new origin, knowing it’s in the exact spot it belongs.

When dealing with something like accessories, it’s important that everything is aligned, so that new accessories are in positions where they’re more likely to work well with currently existing and future accessories. It’s even more important when considering that without this option, many UGC creators may simply position items in spots which are “good enough” due to the annoying steps to getting an accessory centered with Studio’s tools.

While creating an origin attachment object is something which would work for this use case, another option I’d like to bring up would be using the origin to set the pivot point of the geometry. I’m not sure how well it’d work with MeshParts, but I feel doing so would make it a lot easier to work accurately with certain shapes which have odd pivot points applied from their bounding box center, such as pentagons.

3 Likes

I personally use “set head to CFrame.Angles(0,math.pi,0)” and model over the said head.

Then I use world position for attachments.

Really uncomfy though, needs a better way.

1 Like