This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Parents
  • Note: This was originally posted on 17th November 2012 at http://forums.arm.com

    Hi Pete,

    Sorry for the late reply, and thank you for your quick respond.
    Here are the information that may help, please look at it.
    There is no special procedure to produce this problem,
    I just open it up. It seems that all Mali-400MP device have this problem.
    And another user using Galaxy S2 has the same problem too,
    hope we can fix it together asap. Great thanks.

    Texture Wrapping Function
    All texture are set by this helper function.
    setWraps(GLES20.GL_CLAMP_TO_EDGE, GLES20.GL_CLAMP_TO_EDGE);
    public void setWraps(int wrapS, int wrapT) {

         this.wrapS = wrapS;

         this.wrapT = wrapT;

         GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, wrapS);

        GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, wrapT);

    }




    Fragment Shader

    #version 100

    precision highp float;

    uniform sampler2D s_texture;

    varying vec2 vTexCoord;

    void main(){

    gl_FragColor = texture2D(s_texture, vTexCoord);

    }

    Vertex Shader

    #version 100

    attribute vec4 aPosition;

    attribute vec2 aTexCoord;

    varying vec2 vTexCoord;




    void main(){

    gl_Position = aPosition;

    vTexCoord = aTexCoord;

    }

    Photo Mesh

    normal = new float[]{

    -1.0f, -1.0f, 0.0f, 1.0f,

           1.0f, -1.0f, 1.0f, 1.0f,

           1.0f, 1.0f, 1.0f, 0.0f,

           -1.0f, 1.0f, 0.0f, 0.0f};



    4 vertices (x, y, s, t).

    Cheers,

    Chi











Reply
  • Note: This was originally posted on 17th November 2012 at http://forums.arm.com

    Hi Pete,

    Sorry for the late reply, and thank you for your quick respond.
    Here are the information that may help, please look at it.
    There is no special procedure to produce this problem,
    I just open it up. It seems that all Mali-400MP device have this problem.
    And another user using Galaxy S2 has the same problem too,
    hope we can fix it together asap. Great thanks.

    Texture Wrapping Function
    All texture are set by this helper function.
    setWraps(GLES20.GL_CLAMP_TO_EDGE, GLES20.GL_CLAMP_TO_EDGE);
    public void setWraps(int wrapS, int wrapT) {

         this.wrapS = wrapS;

         this.wrapT = wrapT;

         GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, wrapS);

        GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, wrapT);

    }




    Fragment Shader

    #version 100

    precision highp float;

    uniform sampler2D s_texture;

    varying vec2 vTexCoord;

    void main(){

    gl_FragColor = texture2D(s_texture, vTexCoord);

    }

    Vertex Shader

    #version 100

    attribute vec4 aPosition;

    attribute vec2 aTexCoord;

    varying vec2 vTexCoord;




    void main(){

    gl_Position = aPosition;

    vTexCoord = aTexCoord;

    }

    Photo Mesh

    normal = new float[]{

    -1.0f, -1.0f, 0.0f, 1.0f,

           1.0f, -1.0f, 1.0f, 1.0f,

           1.0f, 1.0f, 1.0f, 0.0f,

           -1.0f, 1.0f, 0.0f, 0.0f};



    4 vertices (x, y, s, t).

    Cheers,

    Chi











Children
No data