dobbst01 / android-augment-reality-framework

Automatically exported from code.google.com/p/android-augment-reality-framework
GNU General Public License v3.0
0 stars 0 forks source link

Icons are moving on Orientation change #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output? What do you see instead?
If I have a Marker, and turn my phone a little to portrait-mode the Icon of an 
IconMarker is moving towards/left relative to its Label.

What version of the product are you using? On what operating system?
r122, Xubuntu 11.10, Eclipse Indigo, Samsung Nexus S

Original issue reported on code.google.com by Raf...@gmail.com on 3 Apr 2012 at 3:37

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
That was freakin fast... I'm afraid ;)

Original comment by Raf...@gmail.com on 11 May 2012 at 3:01

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by phishman3579@gmail.com on 11 May 2012 at 4:34

GoogleCodeExporter commented 8 years ago
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