1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

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


Last Updated:

  1. pritom057

    pritom057 New Member This Topic's Starter

    Joined:
    May 2, 2010
    Messages:
    2
    Likes Received:
    0
    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...