opengl es - Android - How to draw 3D cube on a real scene (no marker, camera is open) -


i know have basic question, can't think how can draw cube while camera open. can seperately open camera or draw cube in scene background using glsurfaceview.renderer, however, don't know how combine these 2 code :s mean don't know how draw cube when camera open.


i'm still struggling problem.. here how i'm trying it:

in mainactivity, i'm calling camera view this:

preview camerapreview; setcontentview(r.layout.main);     camerapreview = new preview(this);     ((framelayout) findviewbyid(r.id.preview)).addview(camerapreview); 

and extend activity , call 3d cube show on camera view

however no success,

whenever include onpause(), onresume() methods in second one, application crashes...

any suggestion ?

this called augmented reality .take framelayout in xml , add in in code id . add both surfaceview , glsurfaceview framelayout.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -