简体   繁体   English

如何在 arcore android 应用程序中将一个 3d model 覆盖在另一个之上

[英]How to overlay one 3d model over another in arcore android app

I'm trying to make a POC trial room app and I've a 3d model of human body and another 3d model of a t-shirt in my app. I'm trying to make a POC trial room app and I've a 3d model of human body and another 3d model of a t-shirt in my app. How do I anchor the t-shirt model around the human so that they are coupled together.如何将 T 恤 model 锚定在人周围,以便它们耦合在一起。 As far as I know arcore currently only detects points on a plane so how do I tweak this to make it identify points on the human model and fit t-shirt on top of it?据我所知,arcore 目前只检测平面上的点,那么我该如何调整它以使其识别人类 model 上的点并将 T 恤放在上面?

If not arcore, what other android library can I use to make this POC?如果不是arcore,我可以使用其他什么android 库来制作这个POC?

ARCore won't detect the points of a 3D model that you place in the scene; ARCore不会检测您在场景中放置的3D模型的点; it doesn't need to. 它不需要。 You have this information already because you control the 3D model. 您已经拥有此信息,因为您可以控制3D模型。

What you want to do sounds more like a 3D modelling problem than one with ARCore. 您想要做的听起来比使用ARCore听起来更像是3D建模问题。 I would use a 3D modelling tool to overlay the t-shirt and human body models, such that they shared a center point. 我将使用3D建模工具来覆盖T恤和人体模型,以便它们共享一个中心点。 Then re-export the two models separately, since it sounds like you're going for a customisable t-shirt experience. 然后,分别重新导出两个模型,因为这听起来像您要定制的T恤体验。

Reattaching them should then be as simple as anchoring both models to the same anchor point through ARCore / Sceneform, such that they share the same local geometry. 然后,重新连接它们就像通过ARCore / Sceneform将两个模型锚定到相同的锚点一样简单,以使它们共享相同的局部几何形状。

how to create 3d screen overlay app for android tools.如何为 android 工具创建 3d 屏幕覆盖应用程序。

Would like to add a 3d texture to screen with an AR type of app.想要使用 AR 类型的应用程序在屏幕上添加 3d 纹理。

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

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