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.
Some TextFields
.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)
skewX(element,-37.5);
rotateCenter(element,26.4);
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?
Thank you
yup
YOU CAN TRY BY YOURSELF THE CODE IS HERE
https://dl.dropboxusercontent.com/u/683344/Sandbox.zip