Nearest Neighbor scaling

Hello I dont think we can do this and please correct me if I’m wrong, but I want to scale pixel art without blurring (a Nearest Neighbor scaling method) and currently we can’t do this. I don’t have room in memory to load super massive versions to scale down either.

More opengl type access would be nice for those of us using pixel art in our games. [import]uid: 8545 topic_id: 14686 reply_id: 314686[/import]

I don’t believe Corona currently has such low-level access.

However you could always simply scale your images in Photoshop or some other program before loading them into your app.

Regards,

Andreas Ricci
NuPlay Entertainment
Founder & Lead Developer [import]uid: 7366 topic_id: 14686 reply_id: 54348[/import]

The problem is that i would have to scale them to be too large in photoshop because currently, only scaling down will maintain pixel art accuracy.

A quick google search yielded code to do the trick in objective-c

Sprite *aSprite = [Sprite spriteWithFile:@“someTextureImage.png”];

[aSprite.texture setAliasTexParameters];
In corona, a nice implementation would add a boolean “antialias” value to the table

–to scale pixelated content
image.antialias = false
–to smooth scale non-pixelated content
image.antialias = true

It would be nice to hear corona’s opinion on matters like this. [import]uid: 8545 topic_id: 14686 reply_id: 54486[/import]