Log in or register to post comments

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

January 22, 2013 - 11:53pm #1

 

hi,
 
im upgrading my ofxQCAR wrapper to work with the latest QCAR 2.0
and ive noticed that setting the QCAR::ROTATE_IOS_90 flag doesn't seem to do anything.
this was definitely working in the previous version. im simply doing this,
QCARFlags = (QCAR::GL_11 | QCAR::ROTATE_IOS_90)
 
is this a bug?
 
L.

 

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

March 18, 2013 - 1:49am #12

That's great.

Thanks for confirming and posting.

N

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

March 17, 2013 - 4:44pm #11

i can confirm that this solution works,

 

QCAR::setRotation(QCAR::ROTATE_IOS_90);

although you must wait for QCAR to fully initialise before calling for it to take effect.
i do this inside the 
postInitQCAR function.

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

February 7, 2013 - 6:23am #10

Thanks for the suggestion - I'll pass this on to the Documentation gurus.

N

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

February 7, 2013 - 6:14am #9

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.

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

February 7, 2013 - 6:10am #8

Hi stageev

"Also it's a a nasty hack and you really should fix it."

Not quite sure what you mean?

This does what it is supposed to do.

N

 

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

February 6, 2013 - 8:42pm #7

It works when you put QCAR::setRotation(QCAR::ROTATE_IOS_90); in postInitQCAR

Also it's a a nasty hack and you really should fix it.

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

January 30, 2013 - 1:21am #6

Hi julapy

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.

 

N

 

 

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

January 29, 2013 - 5:59pm #5

hi, just wondering if you've had a chance to figure out what the issue is,
or a way to circumvent this bug?

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

January 24, 2013 - 6:56am #4

Ok thanks for this.

I am investigating and will revert back when I have some news.

N

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

January 23, 2013 - 4:53pm #3

hi,

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.

any suggestions?

QCAR::ROTATE_IOS_90 flag is not working in QCAR 2.0

January 23, 2013 - 3:28am #2

Hi julapy,

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?

 

thanks

N

 

 

Log in or register to post comments