ARKit – 3D 模型的枢轴点是错误的 [英] ARKit – Pivot Point of 3D model is wrong
问题描述
我使用 Blender 将我的模型导出到 dae
和 Xcode 将其导入到 scn
.但我的问题是枢轴点的位置完全错误当我在我的场景中使用它时.奇怪的是,枢轴点正好位于来自 SceneKit 的模型查看器(甚至作为 scn
).世界坐标全部归零.
I´m using Blender to export my models to dae
and Xcode to import it to scn
.
But my problem is that the pivot point is totally wrong placed
when I use it in my scene.
The strange thing is that the pivot point is positioned right in
the model viewer from SceneKit (even as scn
).
The World Coordinates are all zeroed.
推荐答案
在 Blender 中对 3D 模型的所有元素进行分组,并将该组的轴心点移动到所需位置.SceneKit 始终以 99.99% 的正确率读取枢轴点的位置.
Group all the elements of your 3D model in Blender and move your pivot point for that group at a desired place. SceneKit always reads in a position of pivot point in 99.99% correctly.
即使您只有一个 3D 对象 - 在 Blender 中将其分组.SceneKit 在 dae
文件中看到层次结构并尊重组的枢轴.因此,您在 SceneKit 中的枢轴位置将与 Blender 中的相同.
Even if you have just one 3D object – group it in Blender. SceneKit sees hierarchy in dae
file and respects group's pivot. So, your pivot's position in SceneKit will be the same as in Blender.
这篇关于ARKit – 3D 模型的枢轴点是错误的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!