Closed GoogleCodeExporter closed 8 years ago
The framework is designed to be used in landscape mode. I am still evaluating
the best approach to support both portrait and landscape.
Original comment by phishman3579@gmail.com
on 3 Apr 2012 at 3:39
I have done some updating and everything should work in portrait mode. You have
to essentially lock the device in landscape OR portrait mode. You cannot
transition between them at this point.
There is a variable in the AugmentedReality class called portrait. Just set it
to true for use in portrait mode.
src/com/jwetherell/augmented_reality/activity/AugmentedReality.java
boolean portrait = true;
Original comment by phishman3579@gmail.com
on 8 May 2012 at 7:34
Thanks, but that doesn't help much. What I have done:
switched 'landscape' to 'portrait' in the Manifest and set boolean portrait =
true inside AugmetedReality(Activity)
What I get:
Camera picture is wrong ( what should be on the bottom is on the left rotated
by 90 deg)
Markers are calculated wrong. If I rotate the phone around its X axis it
actually moves Markers from left to right. Also Markers aren't rotating with
the screen anymore, the stay in parallel aligned to the screen instead of
rotating with it like before. Is that expected behavior?
Original comment by Raf...@gmail.com
on 11 May 2012 at 2:58
Don't change the Manifest, only change the variable in the AugmetedReality
class.
Original comment by phishman3579@gmail.com
on 11 May 2012 at 3:00
That was freakin fast... I'm afraid ;)
Original comment by Raf...@gmail.com
on 11 May 2012 at 3:01
Ok that fixes the camera and calc issue. But it isn't rotating anymore. Text
will stay unrotated, so If I fix it to portrait inside AugmentedReality and
rotate the phone into landscape, the text of the marker is still aligned to the
bottom of the phone, and not to the reader
Original comment by Raf...@gmail.com
on 11 May 2012 at 3:06
[deleted comment]
I added two pics to clearify what I mean,
the first pic is taken in portrait, the second in 'landscape' rotation of the
phone, while boolean portrait is still true
Original comment by Raf...@gmail.com
on 11 May 2012 at 3:40
Attachments:
Also Note the Compass Azimuth: it actually changes on rotation of the phone
while it should stay
Original comment by Raf...@gmail.com
on 11 May 2012 at 3:42
The compass azimuth is a problem I never notice. Thanks.
At the moment, you can only have the phone in portrait or landscape which is
why the text stays the same orientation when you rotate the phone.
Original comment by phishman3579@gmail.com
on 11 May 2012 at 4:18
OK, the azimuth is should be working. It is also locked into whichever mode is
set in the AugmetedReality class.
Original comment by phishman3579@gmail.com
on 11 May 2012 at 4:34
Original comment by phishman3579@gmail.com
on 11 May 2012 at 4:34
In the portrait-mode Fullscreen view is working fine, But my requirement is
need show notificationbar and titlebar, So how fix this issue.
Original comment by uthiramo...@sourcebits.com
on 24 Jul 2012 at 5:24
Original issue reported on code.google.com by
Raf...@gmail.com
on 3 Apr 2012 at 3:37