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

    able-action-74275

    01/24/2023, 10:55 PM
    that being the lime window
  • a

    able-action-74275

    01/24/2023, 10:57 PM
    Copy code
    - 0 is disabled (default)
    - 2 enables 2x2 anti-aliasing
    - 4 enables 4x4 anti-aliasing
  • b

    bright-restaurant-79188

    01/24/2023, 10:58 PM
    I don't see a package or class starting with window or lime.window, where did you find this?
  • a

    able-action-74275

    01/24/2023, 11:00 PM
    in my
    Main
    class which
    extends Application
  • a

    able-action-74275

    01/24/2023, 11:00 PM
    you can access in open fl via Stage I think
  • a

    able-action-74275

    01/24/2023, 11:00 PM
    Stage.window
    or something
  • a

    able-action-74275

    01/24/2023, 11:00 PM
    but also I'm sure it's usually set in project.xml
  • a

    able-action-74275

    01/24/2023, 11:02 PM
    e.g.
    Copy code
    xml
    <window antialiasing="0" />
    should disable it
  • b

    bright-restaurant-79188

    01/24/2023, 11:04 PM
    I tried that, but it seems to completely ignore it
  • b

    bright-restaurant-79188

    01/24/2023, 11:04 PM
    this is driving me insane, since there doesn't seem to be any reason that this should be happening
  • a

    able-action-74275

    01/24/2023, 11:05 PM
    maybe haxepunk is setting it somewhere itself
  • a

    able-action-74275

    01/24/2023, 11:08 PM
    hmm there is this
  • a

    able-action-74275

    01/24/2023, 11:08 PM
    I've never used haxepunk
  • a

    able-action-74275

    01/24/2023, 11:08 PM
    also this
  • a

    able-action-74275

    01/24/2023, 11:09 PM
    Atlas handling classes also have a 'smooth' setting to the same effect
  • a

    able-action-74275

    01/24/2023, 11:12 PM
    so perhaps is it possible that global antialiasing is disabled and it's being antialiased elsewhere ?
  • a

    able-action-74275

    01/24/2023, 11:14 PM
    can you get the window via Hxp.scene.window or something?
  • a

    able-action-74275

    01/24/2023, 11:14 PM
    interesting code base
  • a

    able-action-74275

    01/24/2023, 11:14 PM
    looks like it can use lime or nme as backend
  • b

    bright-restaurant-79188

    01/24/2023, 11:15 PM
    yeah it originally used nme before switching to openfl, which later incorporated lime
  • b

    bright-restaurant-79188

    01/24/2023, 11:15 PM
    i tried all of those settings, but it still does nothing
  • b

    bright-restaurant-79188

    01/24/2023, 11:16 PM
    nothing makes sense anymore
  • b

    bright-restaurant-79188

    01/24/2023, 11:17 PM
    I remember using the Haxe 2.x version and the ones that were around during Haxe 3.0 + Haxe 3.1.3, and those never antialiased, so what changed?
  • a

    able-action-74275

    01/24/2023, 11:18 PM
    @bright-restaurant-79188
    Lib.current.stage.window.context.attributes.antialiasing
    see if it's changing there
  • a

    able-action-74275

    01/24/2023, 11:20 PM
    OK I tested, it's definitely picking up the setting from project.xml window
  • a

    able-action-74275

    01/24/2023, 11:20 PM
    so question is, what are you trying to fix with this setting which is not being affected by changing it ?
  • b

    bright-restaurant-79188

    01/24/2023, 11:31 PM
    well my problem is that by default, on a blank project, anti aliasing occurs on all platforms when the project is run
  • b

    bright-restaurant-79188

    01/24/2023, 11:31 PM
    I'm using Haxe 3.4.7 64-bit, HaxePunk 4.0.1, Lime 6.2.0, OpenFL 7.1.2, and FlashDevelop 5.3.3. All of these are period-accurate to the release date of HaxePunk 4.0.1, so why won't it work?
  • a

    able-action-74275

    01/24/2023, 11:34 PM
    can you show an example?
  • b

    bright-restaurant-79188

    01/24/2023, 11:34 PM
    sure, would you like the source files or a video?
1...333435...57Latest