By STKSTK
on Sun, 08/19/2012 - 23:07
Hi
Since I cant change the rendering code of the application, I need to extract "Image" from the "Frame" object in function "renderFrameQCAR" and use it. Problem I have is I can't find any way to control the orientation of this image. I always get (on iPad) 640 * 480 landscape image (Image looks correct only in landscape right orientation).
I initially got excited when I saw function QCAR::setRotation() but it turned out it is available only with Unity version of iOS library. What options do I have? Or do I need to rotate and rescale the image myself?
Thanks
S
Orientation of "Image" extracted from "Frame" object
Has anyone stumbled across this issue? I am kind of stuck right now, not sure if only solution is to actually rotate and scale the image from the frame in my code?
Any help is appreciated.
Thanks
Orientation of "Image" extracted from "Frame" object?
Hi STKSTK,
Yes the camera frame will always come through in Landscape mode i.e. wider than it is tall, so you will need to rotate it for your needs, and then scale if required.
Orientation of "Image" extracted from "Frame" object
Thanks N, I will take a look at handleARViewRotation to transform the image myself. Is there any reason why setRotation() is offered in Unity version of library but not in regular iOS? Would you consider this enhancement for future release?
Thanks
S
Orientation of "Image" extracted from "Frame" object, how to?
Sorry, which setRotation() in Unity are you referring to in Unity?
N
Orientation of "Image" extracted from "Frame" object
I am referring to following function (https://ar.qualcomm.at/sites/default/files/docs/qcarsdk/namespace_q_c_a_r.html) -
Orientation of "Image" extracted from "Frame" object, how to
HI STKSTK,
After discussing with a few developers this is used mainly by the Unity plug-in at the OpenGL texture level i.e. a stage beyond the camera feed.
So it will not provide the results that you are after. None of the samples use this function.
HTH
N