android - Bitmap quality using glReadPixels with frame buffer objects -


i have following issue when exporting bitmap frame buffer object on android using opengl 2.

i have image loaded opengl , shown on screen. loaded image bigger actual screen, matrix manipulation fit on screen.

then trying export image bitmap of original size , save or show on screen. achieve this, create frame buffer object, bind current opengl context, "draw" texture , use glreadpixels create bitmap.

this original image (resized of course fit here), can correctly see on screen when load opengl:

enter image description here

this exported image (resized of course fit here):

enter image description here

as may see, exported image has darker areas. missing standard configuration?

i issue on smaller textures fit screen. darker areas bit different -- instead 1 can see lighter dots.

i sure not matrix manipulation, since when remove matrix multiplication shaders, still problem.

adding gldisable(gl_dither) solves problem.

thanks @retokoradi.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -