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.

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

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.

views:2213 update:2011/9/17 18:17:57
corona forums © 2003-2011