-2

如何在 AR Core 中的单个 3D 对象上加载多个 2D 纹理在此处输入图像描述

4

2 回答 2

0

它与arcore无关。您的问题的答案基于您使用的 3d 引擎。Arcore 不是 3d 引擎

于 2018-03-29T19:42:04.767 回答
0

私人无效drawObj(ObjectRenderer mVirtualObject2,float [] viewmtx,float [] projmtx,float lightIntensity){

    for (Anchor anchor : anchors) {
        if (anchor.getTrackingState() != TrackingState.TRACKING) {
            continue;
        }
        // Get the current pose of an Anchor in world space. The Anchor pose is updated
        // during calls to session.update() as ARCore refines its estimate of the world.
        anchor.getPose().toMatrix(mAnchorMatrix, 0);

        // Update and draw the model and its shadow.
        mVirtualObject2.updateModelMatrix(mAnchorMatrix, 1);
        mVirtualObject2.draw(viewmtx, projmtx, lightIntensity);
    }
}
于 2018-04-02T06:31:45.943 回答