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:
this exported image (resized of course fit 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
Post a Comment