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

Apps openGL blenging - htc desire

Discussion in 'Android Development' started by monnti, Mar 26, 2011.

  1. monnti

    monnti Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Dec 22, 2010

    Dec 22, 2010
    5
    0
    5
    HI,

    I have a problem with my htc desire...

    When i try to display a transparent object it doesn't work and i'm getting a completely visible one. But if i do the same with the emulator everything works fine...


    I am useing openGL for the visualisation:

    gl.glEnable(GL11.GL_BLEND);
    gl.glBlendFunc(GL11.GL_SRC0_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA);
    gl.glColor4f(1, 0.2f, 0, 0.7f);
    gl.glEnableClientState(GL11.GL_TEXTURE_COORD_ARRAY);
    gl.glVertexPointer(3, GL11.GL_FLOAT, 0, vertices);
    gl.glDrawArrays(GL11.GL_TRIANGLES, 0, 3);

    someone has an idea??
     

    Advertisement

Share This Page

Loading...