[android-developers] Re: OpenGL ES 2.0 for Android
Thanks for the link. I was looking for a free copy of the orange book. On Dec 27, 11:52 pm, Indicator Veritatis mej1...@yahoo.com wrote: I'll take your word on that one, since I haven't had time to look at at that thoroughly myself yet; but I do know that a genuine must read is The Orange Book, which is downloadable in an earlier edition fromhttp://wiki.labomedia.org/images/1/10/Orange_Book_-_OpenGL_Shading_La... or you can buy the latest from Amazon. This book has the best explanation I have ever seen of the programmable pipeline in OpenGL 2.0. Unfortunately, it is all about OpenGL rather than OpenGL ES, but such is true of most of the reference this thread has shown to date. Then again, the basic concepts are best explained in books like this one, then you can rely on the difference specification from Khronos to learn to apply it to OpenGL ES. On Dec 26, 10:26 pm, bob b...@coolfone.comze.com wrote: On Dec 26, 8:52 am, the_edge123 theedge...@gmail.com wrote: On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? are you a beginner ? What did you already find ? This is really good too: http://en.wikibooks.org/wiki/GLSL_Programming/Vector_and_Matrix_Opera... Plus, I wrote my own shader: private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + vec2 center = vec2(0.5,0.5);\n + float intensity = 1.0 - distance(vTextureCoord,center);\n + gl_FragColor = texture2D(sTexture, vTextureCoord) * vec4(0.0, 1.0, 0.0, 1.0) * intensity;\n + }\n; Here's a pic of it: http://i1190.photobucket.com/albums/z449/m75214/122711002015.jpg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES 2.0 for Android
I'll take your word on that one, since I haven't had time to look at at that thoroughly myself yet; but I do know that a genuine must read is The Orange Book, which is downloadable in an earlier edition from http://wiki.labomedia.org/images/1/10/Orange_Book_-_OpenGL_Shading_Language_2nd_Edition.pdf or you can buy the latest from Amazon. This book has the best explanation I have ever seen of the programmable pipeline in OpenGL 2.0. Unfortunately, it is all about OpenGL rather than OpenGL ES, but such is true of most of the reference this thread has shown to date. Then again, the basic concepts are best explained in books like this one, then you can rely on the difference specification from Khronos to learn to apply it to OpenGL ES. On Dec 26, 10:26 pm, bob b...@coolfone.comze.com wrote: On Dec 26, 8:52 am, the_edge123 theedge...@gmail.com wrote: On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? are you a beginner ? What did you already find ? This is really good too: http://en.wikibooks.org/wiki/GLSL_Programming/Vector_and_Matrix_Opera... Plus, I wrote my own shader: private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + vec2 center = vec2(0.5,0.5);\n + float intensity = 1.0 - distance(vTextureCoord,center);\n + gl_FragColor = texture2D(sTexture, vTextureCoord) * vec4(0.0, 1.0, 0.0, 1.0) * intensity;\n + }\n; Here's a pic of it: http://i1190.photobucket.com/albums/z449/m75214/122711002015.jpg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES 2.0 for Android
The best way? Probably to use the Orange Book (see post below) and study the sample code in both Android and Apple iPhone online documentation, which is quite good on OpenGL ES. On Dec 26, 2:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES 2.0 for Android
On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? are you a beginner ? What did you already find ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES 2.0 for Android
On Dec 26, 8:52 am, the_edge123 theedge...@gmail.com wrote: On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? A book hopefully. are you a beginner ? Yes. What did you already find ? http://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES 2.0 for Android
On Dec 26, 8:52 am, the_edge123 theedge...@gmail.com wrote: On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? are you a beginner ? What did you already find ? This is really good too: http://en.wikibooks.org/wiki/GLSL_Programming/Vector_and_Matrix_Operations Plus, I wrote my own shader: private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + vec2 center = vec2(0.5,0.5);\n + float intensity = 1.0 - distance(vTextureCoord,center);\n + gl_FragColor = texture2D(sTexture, vTextureCoord) * vec4(0.0, 1.0, 0.0, 1.0) * intensity;\n + }\n; Here's a pic of it: http://i1190.photobucket.com/albums/z449/m75214/122711002015.jpg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES 2.0 for Android
On Dec 26, 8:52 am, the_edge123 theedge...@gmail.com wrote: On Dec 26, 11:05 am, bob b...@coolfone.comze.com wrote: What is the best way to learn OpenGL ES 2.0 for Android? What kind of tutorial are you looking for ? are you a beginner ? What did you already find ? Also, I like this shader: private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + vec2 center = vec2(0.5,0.5);\n + float intensity = 1.0 - distance(vTextureCoord,center);\n + gl_FragColor = texture2D(sTexture, vTextureCoord) * vec4(1.0, 1.0, 1.0, intensity);\n + }\n; Be sure to have blending on: GLES20.glEnable(GL10.GL_BLEND); GLES20.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); Here's what it looks like: http://i1190.photobucket.com/albums/z449/m75214/myshade.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en