https://linen.dev logo
Join Discord
Powered by
# openfl
  • a

    able-action-74275

    01/25/2023, 12:17 AM
    maybe
  • b

    bright-restaurant-79188

    01/25/2023, 12:18 AM
    I guess it was a good idea to use period-accurate libraries, at least mine RUNS lol
  • a

    able-action-74275

    01/25/2023, 12:18 AM
    bunnies works fine but it loads the image differently (via texture atlas)
  • a

    able-action-74275

    01/25/2023, 12:18 AM
    cool to see someone using haxepunk
  • a

    able-action-74275

    01/25/2023, 12:19 AM
    though there's definitely more current frameworks to look at
  • b

    bright-restaurant-79188

    01/25/2023, 12:23 AM
    yea I like HaxePunk, but I might have to use flixel if I can't solve this aliasing issue. I know the last Haxe 2.x version and the early Haxe 3.x and 3.0.x versions ran with no antialiasing enabled, so I wonder what changed in roughly 5 years
  • a

    able-action-74275

    01/25/2023, 12:24 AM
    flixel has it's fair share of antialising hurdles iirc
  • b

    bright-restaurant-79188

    01/25/2023, 12:24 AM
    oh great...
  • b

    bright-restaurant-79188

    01/25/2023, 12:24 AM
    https://tenor.com/view/drcox-scrubs-head-gif-4862594
  • a

    able-action-74275

    01/25/2023, 12:26 AM
    OK found something
  • a

    able-action-74275

    01/25/2023, 12:26 AM
    you can set e.g.
    img.smooth = false;
  • a

    able-action-74275

    01/25/2023, 12:26 AM
    currently trying to prove it works
  • a

    able-action-74275

    01/25/2023, 12:27 AM
    (or not, as the case may be)
  • a

    able-action-74275

    01/25/2023, 12:28 AM
    ok so small image scaled up with
    smooth = false
  • a

    able-action-74275

    01/25/2023, 12:30 AM
    smooth=true
  • b

    bright-restaurant-79188

    01/25/2023, 12:30 AM
    and this is for each individual image object, right?
  • a

    able-action-74275

    01/25/2023, 12:30 AM
    yeah
  • a

    able-action-74275

    01/25/2023, 12:32 AM
    antialising is off at on the window for both
  • b

    bright-restaurant-79188

    01/25/2023, 12:33 AM
    by default?
  • a

    able-action-74275

    01/25/2023, 12:33 AM
    by default yeah
  • a

    able-action-74275

    01/25/2023, 12:33 AM
    I didn't change anything and checked the value at runtime
  • b

    bright-restaurant-79188

    01/25/2023, 12:34 AM
    ah ok
  • b

    bright-restaurant-79188

    01/25/2023, 12:34 AM
    by the way I can confirm that manually setting each image and text object's "smooth" value to false allows them to scale without any antialising
  • b

    bright-restaurant-79188

    01/25/2023, 12:34 AM
    so it works
  • b

    bright-restaurant-79188

    01/25/2023, 12:35 AM
    but it feels like a VERY clunky solution
  • b

    bright-restaurant-79188

    01/25/2023, 12:35 AM
    I mean, why bother with having HXP.screen.smooth anyway?
  • b

    bright-restaurant-79188

    01/25/2023, 12:35 AM
    that's set to false by default too btw
  • a

    able-action-74275

    01/25/2023, 12:36 AM
    gotta be something deep that ain't working I guess
  • b

    bright-restaurant-79188

    01/25/2023, 12:37 AM
    at least img.smooth works though. Your CSS was also needed for HTML5, but that worked as well.
  • b

    bright-restaurant-79188

    01/25/2023, 12:37 AM
    thanks for working through this with me
1...363738...57Latest