disabling image filtering

Monkey Forums/Monkey Programming/disabling image filtering

charlie(Posted 2012) [#1]
My sprites are showing up blurry :(

Is there a way to disable image filtering so that my sprites are nice and pixelly? I can't find anything in the docs.

Cheers
Charlie


therevills(Posted 2012) [#2]
Use the preprocessor #MOJO_IMAGE_FILTERING_ENABLED=false at the start of your code.


charlie(Posted 2012) [#3]
That appears not to work using html5, but is ok in glfw? that's not right is it?

Also, is there a list of these pre-processor commands anywhere?

Cheers
Charlie


MikeHart(Posted 2012) [#4]
Try to put it into the config.monkey file that is created when you build inside your build folder.


MikeHart(Posted 2012) [#5]
Here a topic that discussed a little the HTML5 side of it:

http://www.monkeycoder.co.nz/Community/posts.php?topic=993


charlie(Posted 2012) [#6]
There must be an easier way to do this rather than fiddling with browser settings/defaults. This app does it: http://www.monkeycoder.co.nz/Community/posts.php?topic=3892&app_id=194

Cheers
Charlie


devolonter(Posted 2012) [#7]
You can try to use Mojo HTML5 GL to disable image filtering for HTML5