ARKit – 3D模型的透视点错误 [英] ARKit – Pivot Point of 3D model is wrong

查看:116
本文介绍了ARKit – 3D模型的透视点错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆