-2

Question regarding Azure Object Anchors:

Once a model has been converted, and detected back in an app. Is it possible to get the original object origin? Example (see pictures below) here are two exact same glb, but the origin are different:

Origin at the center of the volume

second the whole mesh is translated

Another way to put it would be when the model is converted to the .ou file, does it do some transformation to optimize the model and then the origin is changed?


Setup:

  • UWP
  • Unity 2019.4.38f
  • AOA 0.22.0

Here are the thing I checked playing with the MRTK sample provided:

  • TrackObject.LogicalCenter
  • TrackObject.TrackedObjectState.Localtion

Both seems to return the same position in Unity World Space for both models. So the description of the LogicalCenter confused me a bit:

The object geometry isn't necessarily centered in the objects bounding box.
As a consequence we must take care that other visualizations intended to be placed relatively to a detected object can be placed as expected.
E_net4
  • 27,810
  • 13
  • 101
  • 139

1 Answers1

0

Yes - this transform is available via the ObjectModel.OriginToCenterTransform property.

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 27 '22 at 15:39