Image Enlargement (With or Without Blur)

3 replies [Last post]
T64
User offline. Last seen 6 years 16 weeks ago. Offline
Joined: 11 Nov 2012

Hi, everyone.

In another thread, the user "Lava Level" mentioned that images are automatically anti-aliased (blurred slightly) when they are enlarged for iPad (from an iPhone-sized version).

He/She wishes they weren't.

I just wanted to state that I agree. It would be desirable to have the choice of "blur" or "no blur". There are certain kinds of images that need to remain crisp when enlarged.

Thanks.
T64

==================
"Lava Level" wrote:

"When you scale a pixel graphic it ALWAYS bilinear filters it or blurs it to the nearest edge neighbor. This is why my game looks blurry on an iPad. The solution I was given was to @2 times my graphics.... :( @2 Times PIXEL GRAPHICS?
...
Now they have it UP FOR VOTE. But most of the community doesn't get it so I don't expect it to come until maybe next year."

Replies

BrightWaveGames
User offline. Last seen 11 weeks 3 days ago. Offline
Joined: 10 May 2011

Corona Labs have already addressed this issue with CoronaSDK 2013.1031.

Graphics: Add ability to specify GL_LINEAR and GL_NEAREST via display.setDefault( key, value ). Keys are "magTextureFilter" and "minTextureFilter". Values are "linear" and "nearest". Once you change the default, a display.new* call will use the new default. However, you cannot change the texture's filter, once the image has been loaded the first time. If you use the image in other display objects, it will use the filter default from the first time the image was loaded.

T64
User offline. Last seen 6 years 16 weeks ago. Offline
Joined: 11 Nov 2012

Thank you, BrightWaveGames.

BeyondtheTech
User offline. Last seen 4 weeks 5 days ago. Offline
Joined: 14 Apr 2010

This is interesting, and first time I heard about this feature. Is there any performance hit or increase with either method?

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.