I’m learning HAXE and OpenFl, playing around and experimenting.
My problem today is about smoothing (antialiasing).
I’ve prepared a test case (you can download it below).
When I apply any kind of transformation (from a simple scale, to an affine matrix transformation) the result looks perfect in FLASH Target and quite crappy on NEKO, MAC, IOS (I’m on a mac system).
I show you an example.
Here’s FLASH on the left and NEKO on the right.
.antiAliasType = AntiAliasType.ADVANCED;
.embedFonts = true;
and a PNG
I apply two matrix transformation on each element (you can see the source of this in the end)
Here is the result
I don’t understand why there is this difference.
I’ve tried to set in the project.xml
< window vsync=“true” antialiasing=“4” if=“cpp” />
I’ve tried to draw the text on a BitmapData with .draw(…,matrix,…,smoothing=true)
It doesn’t matter, I always get the same result.
I’ve looked a lot on google but I can’t find any solid answer.
Am I missing something? Is there a way to have smoothing on transformation (text and bitmap) on a target different from Flash?
YOU CAN TRY BY YOURSELF THE CODE IS HERE