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. King Mustard
    Replies:
    3
    Views:
    605
  2. Boowho
    Replies:
    5
    Views:
    507
  3. tuggy24g
    Replies:
    13
    Views:
    645
  4. behrprofl
    Replies:
    2
    Views:
    1,223
  5. Rgarner
    Replies:
    0
    Views:
    220
  6. Alf83
    Replies:
    1
    Views:
    314
  7. dostoyevski
    Replies:
    1
    Views:
    483
  8. Masterkirkby
    Replies:
    2
    Views:
    508
  9. supvastav
    Replies:
    0
    Views:
    464
  10. geh
    Replies:
    11
    Views:
    1,682

Share This Page

Loading...