简体   繁体   English

检测到模型时是否可以获取对象原点?

[英]Is it possible to get the object origin when Models is detected?

Question regarding Azure Object Anchors:关于 Azure 对象锚的问题:

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:示例(见下图)这里有两个完全相同的 glb,但来源不同:

体积中心的原点

其次,整个网格被平移

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?另一种说法是当模型转换为 .ou 文件时,它是否会进行一些转换以优化模型然后更改原点?


Setup:设置:

  • UWP UWP
  • Unity 2019.4.38f统一 2019.4.38f
  • AOA 0.22.0 AOA 0.22.0

Here are the thing I checked playing with the MRTK sample provided:这是我使用提供的 MRTK 示例检查的内容:

  • TrackObject.LogicalCenter TrackObject.LogicalCenter
  • TrackObject.TrackedObjectState.Localtion TrackObject.TrackedObjectState.Localtion

Both seems to return the same position in Unity World Space for both models.对于这两种模型,两者似乎都在 Unity World Space 中返回了相同的位置。 So the description of the LogicalCenter confused me a bit:所以LogicalCenter的描述让我有点困惑:

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.

是的 - 此转换可通过ObjectModel.OriginToCenterTransform属性获得。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM