ARKit – Pivot Point of 3D model is wrong

两盒软妹~` 提交于 2021-01-29 00:41:36

问题


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.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/52586205/arkit-pivot-point-of-3d-model-is-wrong

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!