I want to display 3D objects with jPCT, so I use a custum GLSurfaceView.Renderer to display what I want. And below, I need to display a camera preview.
It's work fine but my problem is when I display the 2 SurfaceView (1 for the object and 1 for the camera preview), I had lag on my software. I test it and it's because I use 2 SurfaceView at the same time.
How can I resolve it ? I try to display my 3D object on my camera preview that extends GLSurfaceView :
public class CameraView extends GLSurfaceView implements SurfaceHolder.Callback
But the objects are never display and some functions don't work (Like search an 3D object in a 2D view ...)
Anyone have an idea ?