iphone - bad quality image in iOS in GLKit -
i added sprite scene tutorials : http://www.raywenderlich.com/9743/how-to-create-a-simple-2d-iphone-game-with-opengl-es-2-0-and-glkit-part-1
but have bad quality of images files. how fix problems ??
this caused xcode 'compression' of png files, transforms them use premultiplied alpha.
you try replace line :
glblendfunc(gl_src_alpha, gl_one_minus_src_alpha);
which suppose have, mentioned following tutorial, following :
glblendfunc(gl_one, gl_one_minus_src_alpha);
which allow composite premultiplied alpha image on background image.
for more information premultiplied alpha concept, here.
if want xcode stop messing png files, can ask stop : how can skip compressing 1 png?
Comments
Post a Comment