From 85700e926c95108a5c63495aad0a93acc285acdd Mon Sep 17 00:00:00 2001 From: Rahpael Anderegg Date: Thu, 4 Aug 2022 10:06:16 +0200 Subject: [PATCH] local pose used for EstimateFeatureMapQualityForHosting Updated documentation and sample to use the local camera pose instead of the global camera pose. --- Runtime/Scripts/ARAnchorManagerExtensions.cs | 3 ++- Samples~/PersistentCloudAnchors/Scripts/ARViewManager.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Runtime/Scripts/ARAnchorManagerExtensions.cs b/Runtime/Scripts/ARAnchorManagerExtensions.cs index d32689a..6ce2111 100644 --- a/Runtime/Scripts/ARAnchorManagerExtensions.cs +++ b/Runtime/Scripts/ARAnchorManagerExtensions.cs @@ -364,7 +364,8 @@ public static ARCloudReferencePoint ResolveCloudReferenceId( /// /// Estimates the quality of the visual feature points seen by ARCore in the - /// preceding few seconds and visible from the provided camera . + /// preceding few seconds and visible from the provided camera + /// relative to the session origin. /// Cloud Anchors hosted using higher feature map quality will generally result /// in easier and more accurately resolved poses. /// If feature map quality cannot be estimated for the given , diff --git a/Samples~/PersistentCloudAnchors/Scripts/ARViewManager.cs b/Samples~/PersistentCloudAnchors/Scripts/ARViewManager.cs index e51f81e..c923f43 100644 --- a/Samples~/PersistentCloudAnchors/Scripts/ARViewManager.cs +++ b/Samples~/PersistentCloudAnchors/Scripts/ARViewManager.cs @@ -195,8 +195,8 @@ public class ARViewManager : MonoBehaviour /// The camera pose of the current frame. public Pose GetCameraPose() { - return new Pose(Controller.MainCamera.transform.position, - Controller.MainCamera.transform.rotation); + return new Pose(Controller.MainCamera.transform.localPosition, + Controller.MainCamera.transform.localRotation); } ///