android Programming Glossary: eglconfig
Android getOrientation() method returns bad results http://stackoverflow.com/questions/10192057/android-getorientation-method-returns-bad-results java.nio.ShortBuffer import javax.microedition.khronos.egl.EGLConfig import javax.microedition.khronos.opengles.GL10 import android.content.Context.. 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glEnable GL10.GL_CULL_FACE enable the differentiation..
Modifying camera output using SurfaceTexture and OpenGL http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl _delegate public void onSurfaceCreated GL10 unused EGLConfig config mDirectVideo new DirectVideo texture texture createTexture..
Is Opengl Development GPU Dependant? http://stackoverflow.com/questions/17229066/is-opengl-development-gpu-dependant dx dy ux uy @Override public void onSurfaceCreated GL10 gl EGLConfig config Log.i JO onSurfaceCreated Set the background frame color..
Android OpenGL ES Transparent Background http://stackoverflow.com/questions/2034822/android-opengl-es-transparent-background I've heard some rumors that this can be done with setEGLConfigChooser but I haven't found any confirmation. Ultimately I'd.. public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT.. gl.glEnable GL10.GL_DEPTH_TEST On my GLSurfaceView setEGLConfigChooser 8 8 8 8 16 0 getHolder .setFormat PixelFormat.TRANSLUCENT..
How to use onSensorChanged sensor data in combination with OpenGL http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl r r 1 1 1 10 public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glClearColor 1 1 1 1 gl.glEnable..
Emulator's camera built-in app buggy in Froyo / 2.2? http://stackoverflow.com/questions/2948809/emulators-camera-built-in-app-buggy-in-froyo-2-2 this question It looks there's a mistmatch between the EGLConfig the Camera is requesting and the EGLConfigs currently supported.. between the EGLConfig the Camera is requesting and the EGLConfigs currently supported by the s w GL renderer that comes in Froyo... for me. It basically remove the Stencil buffer out of the EGLConfig as that configuration seems to be not supported at all in the..
Overlay images onto Camera preview SurfaceView http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview context super context cr new CubeRenderer true this.setEGLConfigChooser 8 8 8 8 16 0 this.setRenderer cr this.setRenderMode GLSurfaceView.RENDERMODE_WHEN_DIRTY.. ratio ratio 1 1 1 10 public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT..
Using OpenGL to replace Canvas - Android http://stackoverflow.com/questions/3597323/using-opengl-to-replace-canvas-android @Override public void onSurfaceCreated GL10 gl EGLConfig config gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT GL10.GL_FASTEST.. mViewHeight 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor 0.5f 0.5f 0.5f 1 gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT..
How to get rid of Jagged edges in Android OpenGL ES? http://stackoverflow.com/questions/4934367/how-to-get-rid-of-jagged-edges-in-android-opengl-es the following code public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor 0.0f 0.0f 0.0f 0.5f gl.glShadeModel GL10.GL_SMOOTH..
Is it possible to render in RGB888 with OpenGL? http://stackoverflow.com/questions/5666287/is-it-possible-to-render-in-rgb888-with-opengl as returned by SurfaceView.getHolder the GLSurfaceView.setEGLConfigChooser family of methods Unless I'm wrong I think I only need.. relevant here The documentation of the EGLConfigChooser class mentions EGL10.eglChooseConfig to discover which.. translucency of the surface you'd still want to pick the EGLConfig to best guess the config for the channels in addition to the..
Android: GLES20: Called unimplemented OpenGL ES API http://stackoverflow.com/questions/5926316/android-gles20-called-unimplemented-opengl-es-api mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new EGLConfigChooser @Override public EGLConfig chooseConfig.. GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new EGLConfigChooser @Override public EGLConfig chooseConfig EGL10 egl EGLDisplay.. new EGLConfigChooser @Override public EGLConfig chooseConfig EGL10 egl EGLDisplay display EGLConfig configs..
Problem drawing a sphere in OPENGL ES http://stackoverflow.com/questions/6072308/problem-drawing-a-sphere-in-opengl-es fpsCalculator.start public void onSurfaceCreated GL10 gl EGLConfig config initialize all the things required for openGL configurations..
How to do Multisampling in Android OpenGL ES? [duplicate] http://stackoverflow.com/questions/7379710/how-to-do-multisampling-in-android-opengl-es I did. My code is public void onSurfaceCreated GL10 gl EGLConfig config g10 gl gl.glClearColor 0f 0 0.0f 1.0f gl.glEnableClientState.. create an EGL context with multisampling enabled. Write an EGLConfigChooser that returns a multisampling config specify 1 for EGL_SAMPLE_BUFFERS..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails camera_texture public void onSurfaceCreated GL10 unused EGLConfig config initShapes GLES20.glClearColor 0.0f 1.0f 0.2f 1.0f Debug.out..
Android OpenGL Texture Compression http://stackoverflow.com/questions/9148795/android-opengl-texture-compression you're not using ETC1 public void onSurfaceCreated GL10 gl EGLConfig config String s gl.glGetString GL10.GL_EXTENSIONS if s.contains..
Android getOrientation() method returns bad results http://stackoverflow.com/questions/10192057/android-getorientation-method-returns-bad-results java.nio.ByteOrder import java.nio.FloatBuffer import java.nio.ShortBuffer import javax.microedition.khronos.egl.EGLConfig import javax.microedition.khronos.opengles.GL10 import android.content.Context import android.opengl.GLSurfaceView public.. short indices 0 1 2 _indexBuffer InitShortBuffer indices _indexBuffer.position 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glEnable GL10.GL_CULL_FACE enable the differentiation of which side may be visible gl.glShadeModel GL10.GL_SMOOTH..
Modifying camera output using SurfaceTexture and OpenGL http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl delegate public MyGL20Renderer MainActivity _delegate delegate _delegate public void onSurfaceCreated GL10 unused EGLConfig config mDirectVideo new DirectVideo texture texture createTexture GLES20.glClearColor 0.5f 0.5f 0.5f 1.0f delegate.startCamera..
Is Opengl Development GPU Dependant? http://stackoverflow.com/questions/17229066/is-opengl-development-gpu-dependant myGlsurfaceView public void onDrawFrame GL10 gl line.draw dx dy ux uy @Override public void onSurfaceCreated GL10 gl EGLConfig config Log.i JO onSurfaceCreated Set the background frame color GLES20.glClearColor 0.0f 0.0f 0.0f 1.0f Create the GLText..
Android OpenGL ES Transparent Background http://stackoverflow.com/questions/2034822/android-opengl-es-transparent-background way that I can make the background of a GLSurfaceView transparent I've heard some rumors that this can be done with setEGLConfigChooser but I haven't found any confirmation. Ultimately I'd like to take a surface which I'm drawing to and put the GLSurfaceView.. some simple changes that I did to get this to work. On my GLSurfaceView.Renderer public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT GL10.GL_FASTEST gl.glClearColor 0 0 0 0..
How to use onSensorChanged sensor data in combination with OpenGL http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl gl.glMatrixMode GL10.GL_PROJECTION gl.glLoadIdentity gl.glFrustumf r r 1 1 1 10 public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glClearColor 1 1 1 1 gl.glEnable GL10.GL_CULL_FACE gl.glShadeModel GL10.GL_SMOOTH..
Emulator's camera built-in app buggy in Froyo / 2.2? http://stackoverflow.com/questions/2948809/emulators-camera-built-in-app-buggy-in-froyo-2-2 issues Thanks Steff android camera emulator share improve this question It looks there's a mistmatch between the EGLConfig the Camera is requesting and the EGLConfigs currently supported by the s w GL renderer that comes in Froyo. See if you can.. share improve this question It looks there's a mistmatch between the EGLConfig the Camera is requesting and the EGLConfigs currently supported by the s w GL renderer that comes in Froyo. See if you can request an RGB565 EGL Config. Moreover the.. an RGB565 EGL Config. Moreover the below changes worked for me. It basically remove the Stencil buffer out of the EGLConfig as that configuration seems to be not supported at all in the s w GL renderer in Froyo. Add the original config back if..
Overlay images onto Camera preview SurfaceView http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview extends GLSurfaceView public TouchSurfaceView Context context super context cr new CubeRenderer true this.setEGLConfigChooser 8 8 8 8 16 0 this.setRenderer cr this.setRenderMode GLSurfaceView.RENDERMODE_WHEN_DIRTY this.getHolder .setFormat.. GL10.GL_PROJECTION gl.glLoadIdentity gl.glFrustumf ratio ratio 1 1 1 10 public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT GL10.GL_FASTEST if mTranslucentBackground..
Using OpenGL to replace Canvas - Android http://stackoverflow.com/questions/3597323/using-opengl-to-replace-canvas-android 0x10000 0x10000 0x10000 0x10000 gl.glEnable GL10.GL_TEXTURE_2D @Override public void onSurfaceCreated GL10 gl EGLConfig config gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT GL10.GL_FASTEST gl.glClearColor 0.5f 0.5f 0.5f 1 gl.glShadeModel GL10.GL_FLAT.. mViewHeight gl.glLoadIdentity GLU.gluOrtho2D gl 0 mViewWidth mViewHeight 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor 0.5f 0.5f 0.5f 1 gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT GL10.GL_FASTEST gl.glShadeModel GL10.GL_FLAT..
How to get rid of Jagged edges in Android OpenGL ES? http://stackoverflow.com/questions/4934367/how-to-get-rid-of-jagged-edges-in-android-opengl-es to get rid of Jagged edges in Android OpenGL ES I have the following code public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor 0.0f 0.0f 0.0f 0.5f gl.glShadeModel GL10.GL_SMOOTH gl.glClearDepthf 1.0f gl.glEnable GL10.GL_DEPTH_TEST..
Is it possible to render in RGB888 with OpenGL? http://stackoverflow.com/questions/5666287/is-it-possible-to-render-in-rgb888-with-opengl pixel formats the setFormat method exposed by SurfaceHolder as returned by SurfaceView.getHolder the GLSurfaceView.setEGLConfigChooser family of methods Unless I'm wrong I think I only need to use the later. Or is using SurfaceHolder.setFormat relevant.. wrong I think I only need to use the later. Or is using SurfaceHolder.setFormat relevant here The documentation of the EGLConfigChooser class mentions EGL10.eglChooseConfig to discover which configurations are available. In my case it is ok to fallback.. format. One way to force RGBA color format is to set the translucency of the surface you'd still want to pick the EGLConfig to best guess the config for the channels in addition to the depth and stencil buffers. setEGLConfigChooser 8 8 8 8 0 0..
Android: GLES20: Called unimplemented OpenGL ES API http://stackoverflow.com/questions/5926316/android-gles20-called-unimplemented-opengl-es-api Bundle savedInstanceState super.onCreate savedInstanceState mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new EGLConfigChooser @Override public EGLConfig chooseConfig EGL10 egl EGLDisplay display EGLConfig configs new.. super.onCreate savedInstanceState mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new EGLConfigChooser @Override public EGLConfig chooseConfig EGL10 egl EGLDisplay display EGLConfig configs new EGLConfig 1 int num_config.. mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new EGLConfigChooser @Override public EGLConfig chooseConfig EGL10 egl EGLDisplay display EGLConfig configs new EGLConfig 1 int num_config new int 1 boolean check false..
Problem drawing a sphere in OPENGL ES http://stackoverflow.com/questions/6072308/problem-drawing-a-sphere-in-opengl-es the frames per second fpsCalculator new RateCounter TAG fpsCalculator.start public void onSurfaceCreated GL10 gl EGLConfig config initialize all the things required for openGL configurations gl.glClearColor 0.0f 0.0f 0.0f 0.0f gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT..
How to do Multisampling in Android OpenGL ES? [duplicate] http://stackoverflow.com/questions/7379710/how-to-do-multisampling-in-android-opengl-es in my appliction.But it doesn't work no matter what I did. My code is public void onSurfaceCreated GL10 gl EGLConfig config g10 gl gl.glClearColor 0f 0 0.0f 1.0f gl.glEnableClientState GL10.GL_VERTEX_ARRAY gl.glEnableClientState GL10.GL_TEXTURE_COORD_ARRAY.. improve this question If you want to do FSAA you need to create an EGL context with multisampling enabled. Write an EGLConfigChooser that returns a multisampling config specify 1 for EGL_SAMPLE_BUFFERS and pass it to setEGLConfigChooser . share..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails private int gvSamplerHandle private static Context context int camera_texture public void onSurfaceCreated GL10 unused EGLConfig config initShapes GLES20.glClearColor 0.0f 1.0f 0.2f 1.0f Debug.out Hello init. Shaders int vertexShader 0 int fragmentShader..
Android OpenGL Texture Compression http://stackoverflow.com/questions/9148795/android-opengl-texture-compression Determine which extensions are available in the device if you're not using ETC1 public void onSurfaceCreated GL10 gl EGLConfig config String s gl.glGetString GL10.GL_EXTENSIONS if s.contains GL_IMG_texture_compression_pvrtc Use PVR compressed textures..
|