saycoo / droidar

Automatically exported from code.google.com/p/droidar
0 stars 0 forks source link

Camera orientation #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

First thank you for your work, it really nice framework.

I want to use DroidAR in portrait mode so I change the flag in manifest.xml but 
it changed only the gui overlay view. In portrait mode it's like camera is 
rotated by 90 counter clockwise . I try to read the code but I a bit lost :s

I think there is a simply way to do this.

Thank you for you answer.

PP.

Original issue reported on code.google.com by pphom...@gmail.com on 22 May 2012 at 5:18

GoogleCodeExporter commented 9 years ago
I hope i solved this problem now. check out the newest version and try it. 
currently the build in input action do not work in portait mode, i will fix 
this soon.

Original comment by simon.heinen on 22 May 2012 at 10:42

GoogleCodeExporter commented 9 years ago
Thank you Simon for the fix. It seems work well now ;)

Question about the camera orientation, I am a quite beginner with multimedia 
programmation. 
Why AR engine needs to rotate it ? It's no more simple to display the camera 
and add overlay view (opengl) over the camera view ? I mean there is no link 
between overlay view and what is display behind. Or it is use for markers 
detection ?

Original comment by pphom...@gmail.com on 23 May 2012 at 9:49

GoogleCodeExporter commented 9 years ago
Its right that there is now connection between the two overlays but the camera 
preview also needs to know the orientation of the activity (i think because its 
a implementation very close to the hardware). normally if you display the 
camera overlay you use a landscape mode for the activity anyway and I still 
think you should use landscape mode to be shure verything works correctly on 
every phone. 

Original comment by simon.heinen on 23 May 2012 at 3:34