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: https://ar.qualcomm.at/qdevnet/forums
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, 2.0 * targetSize.data, 1.0f, &modelViewMatrix.data);
Are these two solutions valid/equivalent?
More over, what does the 'kObjectScale' stand for?
And why is it set to '3'?