android - ETC1 texture support on Samsung Galaxy ACE GT-S5830 -
I have this Samsung Galaxy ACE GT-S 5830 Android phone, which is an Adreno-200 GPU.
I think it is possible to support Etc. (Ericsson Compression Format). But feel like it could not load them.
However the gl.glGetString (GL10.GL_EXTENSIONS) function is GL_OES_compressed_ETC1_RGB8_texture extension.
but android.opengl.ETC1Util.isETC1Supported () false returns ??? it's so weird.
I have converted my files into .pkm format. In this way I am loading the texture, but I see that the white screen that shows the texture does not load. : However the works up to ETC1Util.createTexture () creates the texture object in calls and memory. I have never used Java GL but I have written native OpenGL code for Android which is ETC 1 uses compression so I hope I can help. ETC1 is a common texture format for Android and expansion shows that your device supports it. :) Something is unknown here that you should try and be resolved your texture is loading and the display code may be faulty, not ETC1 Part.. You should probably try to swap ETC 1 and use it to display non-compressed secure formats such as 32 bits correctly. Then use a simple 32x32 ETC1 texture to try to influence the size of the non-square NPOT. Make sure the BB is valid, the return code from glCompressedTexImage2D is also very useful, as the course is NULL valid parameter. If you have already tried to do this then sorry. Hope is some use of it, Andy is the inputstream = _context.getAssets (). Open ("etc / hands_tex.pkm"); Gl.glActiveTexture (GL10.GL_TEXTURE0); // Gl.glBindTexture (GL10.GL_TEXTURE_2D, glTtextureId) for texture loading texture unit; {ETC1Ttexture etc1tex = ETC1Util.createTestructure (try); Bytebuff BB = etc 1X.tex.getData (); Gl.glCompressedTexImage2D (GL10.GL_TEXTURE_2D, level, ETC1.ETC1_RGB8_OES, etc1tex.getWidth (), etc1tex.getHeight (), 0, bb.capacity (), bb); } Hold (IOException e) {e.printStackTrace (); }
Comments
Post a Comment