{"action":"created","issue":{"url":"https://api.github.com/repos/google-ar/arcore-unreal-sdk/issues/28","repository_url":"https://api.github.com/repos/google-ar/arcore-unreal-sdk","labels_url":"https://api.github.com/repos/google-ar/arcore-unreal-sdk/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/google-ar/arcore-unreal-sdk/issues/28/comments","events_url":"https://api.github.com/repos/google-ar/arcore-unreal-sdk/issues/28/events","html_url":"https://github.com/google-ar/arcore-unreal-sdk/issues/28","id":338059156,"node_id":"MDU6SXNzdWUzMzgwNTkxNTY=","number":28,"title":"Unable to get image marker orientation in Unreal with multiple markers","user":{"login":"sudhaMR","id":9298861,"node_id":"MDQ6VXNlcjkyOTg4NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/9298861?v=4","gravatar_id":"","url":"https://api.github.com/users/sudhaMR","html_url":"https://github.com/sudhaMR","followers_url":"https://api.github.com/users/sudhaMR/followers","following_url":"https://api.github.com/users/sudhaMR/following{/other_user}","gists_url":"https://api.github.com/users/sudhaMR/gists{/gist_id}","starred_url":"https://api.github.com/users/sudhaMR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudhaMR/subscriptions","organizations_url":"https://api.github.com/users/sudhaMR/orgs","repos_url":"https://api.github.com/users/sudhaMR/repos","events_url":"https://api.github.com/users/sudhaMR/events{/privacy}","received_events_url":"https://api.github.com/users/sudhaMR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-03T21:23:56Z","updated_at":"2018-07-06T22:41:51Z","closed_at":null,"author_association":"NONE","body":"I am using ARCore's image recognition feature to scan multiple markers and spawn actors based on the marker scanned. It is mostly based on the AugmentedImages example project.\r\n\r\nHowever, I found out that when I scan the 2nd marker and use the \"Get Local to World Transform\" from the Google ARCoreAugmentedImage object, it gives the transforms of the 1st marker every time. \"Get Center\" function too seems to return the transforms oriented in the direction of the 1st marker.\r\n\r\nFor example,\r\nThe markers are defined to be like in the image-1.\r\nWhen scanning these markers I expect the objects spawned to face the direction of the marker, i.e., in -ve axis of x-axis (in red).\r\n\r\n[image-1](https://drive.google.com/open?id=1dLm4CHBNdy5H6dZxJYpzoo95ypS27-tP)\r\n\r\nHowever, when I scan the 2nd marker from another position, I expect the character to still face the direction of the marker as shown in image-2 (Since the get transform function should return the transform of the marker scanned?). However, every marker after the 1st marker spawns the character with the orientation of the 1st marker only. \"Get Center\" and \"Get Local to World transform\" too returns only the 1st marker's transforms. However, I am able to get the correct index of the image using the \"Get Image Index\" function.\r\n\r\n[image-2](https://drive.google.com/open?id=14CnWPi6HmsQvnaN3FYqa0kdVQKFmg1vn)"},"comment":{"url":"https://api.github.com/repos/google-ar/arcore-unreal-sdk/issues/comments/403163865","html_url":"https://github.com/google-ar/arcore-unreal-sdk/issues/28#issuecomment-403163865","issue_url":"https://api.github.com/repos/google-ar/arcore-unreal-sdk/issues/28","id":403163865,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzE2Mzg2NQ==","user":{"login":"sudhaMR","id":9298861,"node_id":"MDQ6VXNlcjkyOTg4NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/9298861?v=4","gravatar_id":"","url":"https://api.github.com/users/sudhaMR","html_url":"https://github.com/sudhaMR","followers_url":"https://api.github.com/users/sudhaMR/followers","following_url":"https://api.github.com/users/sudhaMR/following{/other_user}","gists_url":"https://api.github.com/users/sudhaMR/gists{/gist_id}","starred_url":"https://api.github.com/users/sudhaMR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudhaMR/subscriptions","organizations_url":"https://api.github.com/users/sudhaMR/orgs","repos_url":"https://api.github.com/users/sudhaMR/repos","events_url":"https://api.github.com/users/sudhaMR/events{/privacy}","received_events_url":"https://api.github.com/users/sudhaMR/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T22:41:51Z","updated_at":"2018-07-06T22:41:51Z","author_association":"NONE","body":"\r\nHere is a [link](https://drive.google.com/file/d/1RtT27j7BgB2GCVO6NAJQvxz4_mNxfgTF/view?usp=sharing) to the project file. It is based on the HelloAR and AugmentedImage examples from the ARCore SDK.\r\n\r\nThe spawn functions are called in the code of HelloARManager blueprint.\r\n\r\nI am not sure if it is returning the correct LocalToWorldTransformation because, if I try to query the Get Center of the scanned image and call Draw Debug Coordinate System, it is always drawn on the center of the first scanned marker."}}
{"actor":{"display_login":"sudhaMR"}}