我想在面部地标检测后放置一个发型。 我能够正确渲染2D图像。 我想渲染3D模型。 我想过使用Scenekit来渲染3D模型。 我想知道Instagram,Snapchat和其他面部滤镜应用程序是如何渲染3D模型的。 我观察SceneKit坐标系与UIKit坐标系不同。 我用谷歌搜索但找不到坐标系的转换。 有谁可以帮忙。 谢谢。
I would like to place a hairstyle after facial landmark detection. I'm able to render 2D images properly. I would like to render 3D model. I thought of using SceneKit to render 3D model. I would like to know how Instagram, snapchat and other face filter apps are rendering 3D models. I observe SceneKit coordinate system is different from UIKit coordinate system. I have googled but couldn't find the conversion of coordinate system. Could anyone help. Thanks.
最满意答案
查找worldUp和simdWorldUp实例属性,了解ARKit如何基于真实设备运动构建场景坐标系(同样,您可以检查ARConfiguration.WorldAlignment枚举)。
请看这篇SO帖子: 了解ARKit中的坐标空间以获取完整信息。
请记住, ARAnchor是您放置3D物体时最好的朋友。 点击此处了解更多详情。
Look for worldUp and simdWorldUp instance properties to understand how ARKit constructs a scene coordinate system based on real-world device motion (also, you can inspect ARConfiguration.WorldAlignment enum).
Please, look at this SO post: Understand coordinate spaces in ARKit for complete info.
And remember, ARAnchor is your best friend when placing 3D object. Click here for further details.
更多推荐
发布评论