By filbatista
on Tue, 04/16/2013 - 10:42
Hello,
I am trying to add the BookOverlayView (used in the Cloud Reco sample) into the ImageTargets. I'm having some problem with the rendering of the view, the root layout of the BookOverlayView is rendered with a black background that i don't where it comes from.
The layout looks like this: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <!-- Centers the book data layout to be drawn into a bitmap --> <include android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" layout="@layout/book_data_layout" /> </RelativeLayout>
How can i solve this?
Thanks.
ImageTargets + BookOverlayView(Cloud Reco)
Hi,
this could be due to the fact that you forgot to enable the OpenGL Blending in your native code (before rendering the book texture);
if you look at the code in CloudReco.cpp, you should find this line:
glEnable(GL_BLEND);
ImageTargets + BookOverlayView(Cloud Reco)
The OpenGL Blending was enable, i have solved this by adding:
Thanks
ImageTargets + BookOverlayView(Cloud Reco)
Great, thanks for sharing.