Arm Community
Site
Search
User
Site
Search
User
Support forums
Mobile, Graphics, and Gaming forum
OpenGL ES 2.0 problems
Jump...
Cancel
Locked
Locked
Replies
5 replies
Subscribers
137 subscribers
Views
4998 views
Users
0 members are here
OpenGL ES
Options
Share
More actions
Cancel
Related
How was your experience today?
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
OpenGL ES 2.0 problems
Kwan Chi Lee
over 12 years ago
Parents
Kwan Chi Lee
over 12 years ago
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
Cancel
Vote up
0
Vote down
Cancel
Reply
Kwan Chi Lee
over 12 years ago
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
Cancel
Vote up
0
Vote down
Cancel
Children
No data