Hi,
I've modified CloudReco example to track my own image and display my own 2D texture.
For some reasone the texture rendering has a wrong scale, and it (the texture) doesn't fit to the right size of the image targer - it looks much smaller.
I recheked the image target size on the cloud and they seem correct. I also checked that the 2D (png) texture is loaded to the right dimensions.
What could go wrong?
Thank!
Thanks David!
I think I found the reason:
First I had to modify quadVertices s.t: static const float quadVertices[NUM_QUAD_VERTEX * 3] =
{ -1.00f, -1.00f, 0.0f, 1.00f, -1.00f, 0.0f, 1.00f, 1.00f, 0.0f, -1.00f, 1.00f,
0.0f, };
Second I had to use targetSize for scaling:
SampleUtils::scalePoseMatrix(targetSize.data[0],
targetSize.data[1],
1.0f,
&modelViewMatrix.data[0]);
Now it seems to fit the image target.