Moving objects with magTextureFilter set to nearest problem

So to scale up pixel art nicely, i used:

display.setDefault( "magTextureFilter", "nearest" ) display.setDefault( "minTextureFilter", "nearest" )

However, when the pixel art/sprite is moving/translate, the pixels will move around (not as smooth as “linear” sampling). Is there a way to smooth things out when moving the art or that is how it works when set to “nearest” sampling?

Thanks

  • Jeffrey Quek

I know this was asked a while ago… but nonetheless here is an answer to the problem:

You can load images while using “nearest”. When images are loaded and scaled you can switch back to “linear” and transitions will be smooth.

I know this was asked a while ago… but nonetheless here is an answer to the problem:

You can load images while using “nearest”. When images are loaded and scaled you can switch back to “linear” and transitions will be smooth.