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

    able-action-74275

    01/24/2023, 11:35 PM
    dunno
  • a

    able-action-74275

    01/24/2023, 11:35 PM
    I'm just wondering if it really it anti aliasing
  • b

    bright-restaurant-79188

    01/24/2023, 11:35 PM
    well I uploaded the html5 build to my webserver and tested it on a different computer and the antialiasing was still present, so I don't think it's specific to my pc
  • a

    able-action-74275

    01/24/2023, 11:36 PM
    I guess video could introduce it's own artifacts so probably not ideal
  • a

    able-action-74275

    01/24/2023, 11:36 PM
    ah on html5 ...
  • a

    able-action-74275

    01/24/2023, 11:36 PM
    yeah I've had issues there with openfl
  • b

    bright-restaurant-79188

    01/24/2023, 11:36 PM
    well the smoothing shows up on all platforms, so I don't think it's platform-specific
  • a

    able-action-74275

    01/24/2023, 11:37 PM
    there is some css you can add that might help
  • a

    able-action-74275

    01/24/2023, 11:37 PM
    worth a shot let me try find the stuff
  • b

    bright-restaurant-79188

    01/24/2023, 11:37 PM
    ok thanks
  • b

    bright-restaurant-79188

    01/24/2023, 11:38 PM
    css will help with html5, but the antialiasing is still present on neko and windows
  • a

    able-action-74275

    01/24/2023, 11:38 PM
    and this is without scaling the screen or anything?
  • b

    bright-restaurant-79188

    01/24/2023, 11:39 PM
    no, it is after the window is scaled. by default html5 scales to the window size immediately, so it shows up when it starts, but build like windows and neko only start smoothing when they are resized
  • a

    able-action-74275

    01/24/2023, 11:39 PM
    there was this that someone had to do for flixel (native targets)
  • a

    able-action-74275

    01/24/2023, 11:40 PM
    but looking at it, this may be flixel specific
  • a

    able-action-74275

    01/24/2023, 11:40 PM
    worth a shot though
    <window if="desktop" resizable="false" width="320" height="180" />
  • a

    able-action-74275

    01/24/2023, 11:40 PM
    set to the actual size you want
  • a

    able-action-74275

    01/24/2023, 11:41 PM
    and
    Lib.current.stage.quality = StageQuality.LOW;
  • a

    able-action-74275

    01/24/2023, 11:41 PM
    I've definitely had to use this in the past
  • a

    able-action-74275

    01/24/2023, 11:41 PM
    and it doesn't help web
  • a

    able-action-74275

    01/24/2023, 11:44 PM
    for web this css was needed (potentially can be done through code but I can vouch for this working in the index.html)
    Copy code
    html
    <style>
     canvas{
        image-rendering: crisp-edges;
        image-rendering: pixelated;
     }
    </style>
  • a

    able-action-74275

    01/24/2023, 11:51 PM
    also try hashlink!
  • a

    able-action-74275

    01/24/2023, 11:52 PM
    I'm amazed that haxepunk just worked first try with hashlink 1.12
  • a

    ambitious-knife-25690

    01/24/2023, 11:52 PM
    toby fixed it 😄
  • a

    able-action-74275

    01/24/2023, 11:52 PM
    looks like it had some recent commits to make that work
  • a

    ambitious-knife-25690

    01/24/2023, 11:52 PM
    i was checking the repo
  • a

    ambitious-knife-25690

    01/24/2023, 11:52 PM
    @bright-restaurant-79188 if you type
    /archive
    you'll get to see the old #501446731733663755 channel
  • a

    ambitious-knife-25690

    01/24/2023, 11:52 PM
    I have no idea if much was discussed there
  • a

    ambitious-knife-25690

    01/24/2023, 11:53 PM
    but maybe you can do a search every now and then and just see
  • b

    bright-restaurant-79188

    01/24/2023, 11:53 PM
    /archive
1...343536...57Latest