google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.95k stars 1.22k forks source link

How to place 2d image and video on vertical as well as horizontal plane of the target size #797

Closed Anushree278 closed 3 years ago

Anushree278 commented 5 years ago

Hi,

I am creating an app in which i have to show image or video and after finding target,i have to get image from internal memory and to get the size of target image and show the mp4 video or image on the target image using ARcore in android

I have tried giving position to center and displayorientedpose and also get the size of augmentedimage.getextentX and passed it on vector position but it is not helping me for vertical plane as for horizontal it is working perfectly.

How to show image or video on the target image and of the size of target image.

Please help.

shliama commented 5 years ago

I did exactly that - check the sources https://proandroiddev.com/arcore-sceneform-simple-video-playback-3fe2f909bfbc