By Augment
on Tue, 09/02/2014 - 15:06
Until version 2.8.7, everything was fine.Now, in 3.0.9, we have troubles with viewport ratio when device is rotated during AR session.This problem only occurs with retina devices.This problem only occurs when rotation change during session (if we start and stay in portait or landscape, ratio is good). The visible problem is:landscape -> portrait: the camera background and our openGL layout are horizontally stretchedportrait -> landscape: the camera background and our openGL layout are vertically stretched Something changed between 2.8 and 3.0 in the sdk, and we would be very pleased if you could help us to understand what.Thanks
Camera ratio on retina devices
Hi,
I am still searching on my side, it's really related to viewport rotation on retina.
Do you have clues on that problem ?
Camera ratio on retina devices
Hi,
not aware of any changes in this regard;
in general, orentation handling in Vuforia iOS requires that you intercept the orientation changed event and that you call this API:
Camera ratio on retina devices
Thanks for the clue Allessandro, I am digging in the sample :)
Camera ratio on retina devices
I just want to say that I am having the same problem with similar symptoms:
Camera ratio on retina devices
Alessandro,
It seems that there is many dead code in the book sample:
in BooksViewController::handleARViewRotation, 80% of the code seems useless
would it be possible to have a cleaned sample ?
Camera ratio on retina devices
I corrected the problem by considerably rewritting our gl view code.
But it seems related to
- (void)layoutSubviews
{
Camera ratio on retina devices
Thanks for pointing that out; I hadn't noticed that aspects of the Books code. I "solved" the problem by locking the orientation to Landscape Right, which works best for my use case. But this is useful if I need to support different orientations in the future.