Log in or register to post comments

Video Height and Marker

April 22, 2013 - 3:08am #1

Hi ,

 

I am showing video with videoplayback example. the video is not covering the stone marker. i want to make width and height of more than marker. can you please suggest me an approach. 

Video Height and Marker

April 22, 2013 - 4:14am #2

Hi,

if you look at the VideoPlayback.cpp code, in the renderFrame() function you can find this code:

 

targetPositiveDimensions[currentTarget] = imageTarget.getSize();

// The pose delivers the center of the target, thus the dimensions
// go from -width/2 to width/2, same for height
targetPositiveDimensions[currentTarget].data[0] /= 2.0f;
targetPositiveDimensions[currentTarget].data[1] /= 2.0f;

 

You can change the last two lines to use a different scaling factor, to fit your needs.
Log in or register to post comments