Limitation on texture size? Android Open GL ES 2.0

There is a hardware limitation on the texture sizes. To manually look them up, you can go to a site such as glbenchmark.com (Here displaying details about google galaxy nexus). To automatically find the maximum size from your code, you can use something like: int[] max = new int[1]; gl.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, max, 0); //put the maximum … Read more

Android OpenGL Texture Compression

There are mainly four texture compression types supported on Android: ETC1 (Ericsson texture compression). This format is supported by all Android phones. But, it doesn’t support an alpha channel, so can only be used for opaque textures. PVRTC (PowerVR texture compression). Supported by devices with PowerVR GPUs (Nexus S, Kindle fire, etc.). ATITC (ATI texture … Read more

Render OpenGL scene to texture using FBO in fixed function pipeline drawing

When I compared your code with mine working engine I see these differences so try them one by one: texture format you are using: glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, screen_width, screen_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); so merging all your to: GL_COLOR_ATTACHMENT0: GL_RGBA,GL_RGBA,GL_UNSIGNED_BYTE GL_COLOR_ATTACHMENT1: GL_RGBA,GL_RGBA,GL_UNSIGNED_BYTE I am using: GL_COLOR_ATTACHMENT0 : GL_RGBA , GL_RGBA8 , GL_UNSIGNED_BYTE GL_DEPTH_ATTACHMENT : GL_DEPTH_COMPONENT, … Read more

Multiple transparent textures on the same mesh face in Three.js

Use ShaderMaterial and set both textures as uniforms, and then blend them within shader. I made this example: http://abstract-algorithm.com/three_sh/ and that really should be enough. So, you make ShaderMaterial: var vertShader = document.getElementById(‘vertex_shh’).innerHTML; var fragShader = document.getElementById(‘fragment_shh’).innerHTML; var attributes = {}; // custom attributes var uniforms = { // custom uniforms (your textures) tOne: { … Read more