1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

    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.
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Getting double opengl
  1. Camille Helmer
    Replies:
    0
    Views:
    165
  2. jack58
    Replies:
    13
    Views:
    431
  3. cinarrtolga
    Replies:
    0
    Views:
    240
  4. LCSulla083
    Replies:
    3
    Views:
    272
  5. FoodBaby 2005
    Replies:
    8
    Views:
    424
  6. sejwalsakshi
    Replies:
    3
    Views:
    692
  7. AppleUser
    Replies:
    2
    Views:
    312
  8. Loveleen Narang
    Replies:
    5
    Views:
    324
  9. Michelle_2112
    Replies:
    1
    Views:
    439

Share This Page

Loading...