1. Download our Official Android App: Forums for Android!

Getting double opengl object when try to draw an opengl object infront of camera

Discussion in 'Android Apps & Games' started by pritom057, May 17, 2010.

  1. pritom057

    pritom057 Lurker
    Thread Starter
    5

    May 2, 2010
    2
    0
    5
    Software Engineer
    Dhaka
    Hi,
    I am pritom. I am new in android development. I am trying to drwa an object in top of the camera view....
    Here is my code

    Code (Text):
    1.  
    2. [URL="file:///C:/workspace/Back%20UP/com.onlycam/"][/URL][URL="file:///C:/workspace/Back%20UP/com.onlycam/"][/URL]   mPreview = new Preview(this);    
    3.         mGLSurfaceView = new TouchSurfaceView(this);
    4.         mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
    5.         mGLSurfaceView.setKeepScreenOn(true);      
    6.           setContentView( mGLSurfaceView);        
    7.           addContentView( mPreview, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
    8.        
    9.  
    I am getting 2 object and the position of the object not perfect....
    Anybody have any idea..
    Thanks In advance

    Pritom Kushtia.
     

    Advertisement

Share This Page

Loading...