i can confirm that this solution works,
although you must wait for QCAR to fully initialise before calling for it to take effect.
i do this inside the postInitQCAR function.
It is, but it's not obvious. In the headers it says that setRotation is used by unity to rotate which hints that it might be someinternal api function that can have breaking changes without a notice and when you search the net then you get links to posts which say that it should be used with init flags.
It will be probably a good idea to describe it somewhere in the docs so it will be more obvious.
Sorry for the delay.
I have checked internally and wondered whether you might be able to try using this flag with QCAR::setRotation
...as opposed to get it to be handled within QCAR::init
Let me know how you get on.
heres a more indepth explanation,
im using the ImageTargets example to test this on iOS,
when i set the ROTATE_IOS_90 flag in the QCAR 1-5-9 ImageTargets example, the camera image rotates 90 degrees.
i use the following code,
qUtils.QCARFlags = QCAR::GL_20 | QCAR::ROTATE_IOS_90;
when using the same code in QCAR 2-0-30 ImageTargets example, the camera image does not rotate.
it seems the rotation flag is being ignored.
im aware the camera can also be rortated by rotating the entire arView inside ARViewController,
but in my case this solution does not work with the framework im integrating QCAR into (OpenFrameworks -https://github.com/julapy/ofxQCAR)
i really need to be able to rotate the camera image like it was possible in QCAR 1-5-9.
Just to be clear when you say
"doesn't seem to do anything"
could you be a bit more specific please? i.e. where/how are you using it and what is happening v what is expected?
Also, which iOS / Device versions have you tested on and is the behaviour the same here?
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?