-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function augmentedImage.createAnchor() returns null when augmentmentedImage is used? #18
Comments
Hi, You can use the image_default.png image in the demo for AugmentedImage. This way you can see the arpose of the arcamera and the anchor. Note: Make sure the device you are using supports AR Engine. You can access devices that support AR Engine from the link. image_default.png using AugmentedImage on Huawei P40 ImageRendererManager.java class
AugmentedImageActivity.java class
|
The AugmentedImage is drawn through Function 'augmentedImage.getCenterPose()' instead of an anchor. It is a displayed as an 2D Image in a camera view instead of a 3D object. To draw a 3D object, I need to get the ARPose of the AugmentedImage or ARCamera. It seems the author of the demo tried to do the same thing but the author gave up because he assigned the matrix 'cameraview' a value instead of retrieving it through ARCamera. Up to now, I can't find a way to get world coordinates of ARCamera or the trackble AugmentedImage. Thx again. |
我想在识别的图片上放置物体,但是使用augmentedImage的时候,augmentedImage.createAnchor 返回是null,arcamera也获取不到arpose,请问这是什么问题,或者有别的方法实现吗?
-------------------------------------------------------------------English----------------------------------------------------------------
I try to place an 3D object on an augmentedImage. Howerver, when I used augmentedImage.createAnchor(), the returned value is null and also I can't get ARPose of ARCamra. How can I solve it? Appreciate if u have any idea.
The text was updated successfully, but these errors were encountered: