Wednesday, June 2, 2010

[android-developers] Augmented reality problem with Android 2.2 only, Openg Surface View and Surface View for Camera. 3D Not Rendering.

Hello,

At moment I'm developing an Augmented Reality game, so I'm using the
Hardware Camera and a Surface View to show camera preview.

Everything works fine from what I've been able to test from
Android 1.5 to android 2.1
What goes wrong is in Android 2.2
If I leave the layer from 3D rendering and Camera on the same ordre
than for the previous androids then I don't have the 3D on the screen,
apparently it's drawing it on the back (behind the camera surface).

So Here is the pastebin of the code I have to change (switch the too
layer order in the current layout), also added as attached file.
http://pastebin.com/gyVd0nWR

I've searched for an answer, and have been talking on IRC #android-dev
but apparently it's not very common issue.

What is strange is that there's no release note about 2.2 that this
views have been changed or something else.

The issue is quite easy, but that means I've to have 2 versions on the
market of the same applications.

I hope someone will be able to find why this strange behavior happen
with 2.2

Thank you.

Best regards.

Yvan.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate