【发布时间】:2018-03-29 16:02:00
【问题描述】:
【问题讨论】:
标签: android augmented-reality arcore android-augmented-reality
【问题讨论】:
标签: android augmented-reality arcore android-augmented-reality
这与arcore无关。您的问题的答案基于您使用的 3d 引擎。 Arcore 不是 3d 引擎
【讨论】:
private void 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);
}
}
【讨论】: