When scaling pixel art or using the images in a retina display the edges are blurred as a result of the OpenGL textures having bilinear filter turn on by default. I would like Corona to be able to turn/on off this feature when creating images or setting in dynamically, it should be a fairly straightforward feature to implement
Assuming you create your textures like so
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
change it to:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
This would be an essential feature when creating a game featuring pixel art, like I’m doing now
As of now I’m forced to make larger textures to make them crisp, otherwise they look blurred when scaled up.
I guess it’s just one of the issues of not having an enterprise license or access the the source code to make these things happen. sigh [import]uid: 88628 topic_id: 33779 reply_id: 333779[/import]