By Sagiv
on Wed, 06/20/2012 - 17:11
Hi,
Basically, my question is very simple, and I just want to make sure that I get things right.
I followed (successfully) the instruction from this link: [url]https://ar.qualcomm.at/qdevnet/forums[/url]
in order to render a 2D image.
Now, assuming that the real size of my image is twice as big as the size of the image target, and I want to use the target size in order to set the drawing area accordingly.
My question is whether I should set the planeVertices to:
static const float planeVertices[] =
{
-1.0, -1.0, 0.0, 1.0, -1.0, 0.0, 1.0, 1.0, 0.0, -1.0, 1.0, 0.0,
};
or maybe to write something like this:
SampleUtils::scalePoseMatrix(2.0 * targetSize.data[0], 2.0 * targetSize.data[1], 1.0f, &modelViewMatrix.data[0]);
Are these two solutions valid/equivalent?
More over, what does the 'kObjectScale' stand for?
And why is it set to '3'?
Best,
S.
Re: Real image size
Re: Real image size
Re: Real image size