Android String Automatic Anti-Aliasing?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi,

    Here's a quick one. The issue is simple, but I can't get it to work.

    I'm starting a new project, with "crispy" pixelised graphics. On my computer, everything is nice and crispy.

    When I build to android and run it on my device, everything is also crispy BUT strings. Strings got an anti-aliasing, which I absolutely do not want. Since the resolution is low, anti-aliasing on a small-sized font just make it WAY WORST.

    I tried a lot of things but I can't get strings to look crispy / remove that automatic anti-aliasing:( Any ideas it does that?

    Thanks!

    Edited 3 times, last by Dowpag (February 25, 2016 at 6:57 AM).

  • Here's an update: I updated my android exporter and fusion to latest beta, so I am up to date :P

    The "smooth resizing" being unchecked, my strings looks better, BUT still not what I want :/
    At first, with the old version, it looked like this ( It still looks like this if I check "Smooth resizing") :
    Please login to see this attachment.

    Now, with smooth resizing UNCHECKED, it's less blurry, more like this :
    Please login to see this attachment.

    But what I want, is to be like on my computer, so like this :
    Please login to see this attachment.

    Much more crispy on this last one. Actually, I build my game at a very low resolution : 240 x 427 ( Like a NES resolution, but with HD ratio ). I test it on a nexus 5 so the strings are definitely scaling. But everything else except the string are scaling to the "nearest neighbor", so it all looks good and crispy. The clearly a problem only on strings :/ Any idea then? ( BTW my anti-aliasing and turned-off on every string object )

  • ( Oh, and BTW, since I updated, my charboost doesn't work properly... If I completely close my application, and then open it, charboost will work on my first frame ... but then, whatever I do, charboost is completely disable. That's weird because if I build my exact same project with the older version (284.1), charboost is fine.

    I even try to chance my object to the "charboost 2.1" you posted some days ago. And also tried with the older charboost object I was using on 284.1. Still nothing :( ( I did replace all my events with the correct object every time I tried to change )

  • Actually, like I said, I tried a lot of things because it was not working at first, but I first tried with the most recent fusion, most recent android exporter and most recent chaftboost object ( The one that came with the new fusion beta ). And did not work correctly. :(

    And also still having problems with my strings...

    Oh god, I'm a problem magnet hahaha

  • Well, my string problem may be still real, but charboost problem is solved.

    Using the most recent android runtime, chartboost object and fusion version didnt worked at all. I had to manually replace the charboost extention and the chartboost.zip in my android runtime folder for the one that were there before my update. Now everything is perfect again.

  • can you show a partial mfa, only the string in empty mfa where the issue can be reproduced?, could it be that you are using 320x240 to be shown in devices with 1280 x ...?, that will make the string texture to be resample with the result of small artifact.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Here is a fully stripped down mfa where you can see the parts shown in my previous post.

    Please login to see this link.

    I guess that it might be that I am using a very low resolution.. but still, active object stay sharp and only strings gets blur like this :/

  • Damn, I tried with 480 x 853 and there is still blur. It's less noticeable, but it's still there. The problem is the way string resizes at runtime. It's like "bicubic"-like resampeling instead of using "nearest neighbor" like every other objects do. Isn't there something that could be changed in the android runtime for that? Somewhere is src/Objects/CText.java? I'm not a good enough java programmer to modify this, but I think it might be possible to change the way it resamples to make it use the nearest neighbor?

    ( I see a lot of french annotations on those java files... are you french too haha? Aren't you the one that made that? )

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!