How to increase the size of the video getting played on image target

0 votes
asked May 3, 2018 by raviraj (400 points)
Hi, I am using Android studio with easy AR sdk installed.

And currently I can see video is getting played only on the size of the target, and I want to increase size of the video getting played on the target.

could you please suggest how could i achieve this.

2 Answers

0 votes
answered May 6, 2018 by albert52 (31,850 points)
You can modify it through OpenGL vec.
0 votes
answered Sep 25, 2019 by shivam-intellify (230 points)

I know this post question is old, but answering for helping others, 

Vec2F scale = new Vec2F(targetScale, targetScale * targetImg.height() / targetImg.width());

current_video_renderer.render(projectionMatrix, targetInstance.pose(), scale);

You can modify scale value. for e.g. 

Vec2F scale = new Vec2F(targetScale, targetScale * video.player.size().data[1] / video.player.size().data[0]);
Or any other way you want. Just remember that the first parameter is for the width of video and the second is for height (obviously).
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.