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

    able-action-74275

    01/16/2023, 3:45 PM
    looks like it, I tried with Flixel and setting bgColor to transparent works
  • b

    best-agent-85158

    01/16/2023, 3:59 PM
    thanks for trying :) ill check it out when i have the chance
  • h

    hallowed-ocean-84954

    01/16/2023, 9:19 PM
    Thanx. I'm not sure how that would play in here though. Blendmode seems to be on displayobjects and bitmapdata.draw(). I'm not really using either - the HaxeUI rendering probably is somewhere. But if it's not more general in its effect I don't know. I don't see a way to set the blendmode itself on Context3D.
  • b

    brief-account-34985

    01/16/2023, 9:22 PM
    Copy code
    this.c3d.setBlendFactors(Context3DBlendFactor.SOURCE_ALPHA, Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA);
  • b

    brief-account-34985

    01/16/2023, 9:23 PM
    Just do native GL, unless you're planning to mix and match your renderer and the openfl renderer
  • h

    hallowed-ocean-84954

    01/16/2023, 9:23 PM
    yeah I sorta wondered if that would do the same thing. I am kinda mixing OpenFL and lime GL
  • h

    hallowed-ocean-84954

    01/16/2023, 9:23 PM
    doing 2D in the first and 3D in the second
  • b

    brief-account-34985

    01/16/2023, 9:24 PM
    Yeah the caching messes things up unless you use context3d with openfl or gl with no openfl
  • h

    hallowed-ocean-84954

    01/16/2023, 9:24 PM
    so I'll try this quickly
  • h

    hallowed-ocean-84954

    01/16/2023, 9:25 PM
    yeah I've heard that caching can be an issue - I don't quite understand how it interferes though
  • h

    hallowed-ocean-84954

    01/16/2023, 9:25 PM
    it does seem though that the texture stuff has to be done via the context when you want to mix and match
  • h

    hallowed-ocean-84954

    01/16/2023, 9:25 PM
    otherwise weird things happen
  • b

    brief-account-34985

    01/16/2023, 9:26 PM
    Haven't looked into it that deeply, but it assumes that some things have never been changed because it wasn't changed through context3d. Example:
  • b

    brief-account-34985

    01/16/2023, 9:27 PM
    - OpenFL sets culling to none - You set it to back in GL - OpenFL now renders with back cull, thinking its none
  • h

    hallowed-ocean-84954

    01/16/2023, 9:28 PM
    oh ok - will get to culling soon. But I've had issues with other interactions. Frankly I probably shouldn't be doing it this way but if you're careful it hangs together mostly
  • b

    brief-account-34985

    01/16/2023, 9:29 PM
    Context3D is fine to use, you don't really have a better option for 3D while keeping OpenFL for UI or something
  • h

    hallowed-ocean-84954

    01/16/2023, 9:31 PM
    ok - good to know I'm not the only one who's tried this sort of thing
  • h

    hallowed-ocean-84954

    01/16/2023, 9:33 PM
    ok so basically looks like context has blend enabled but in the case of this png it's loaded the bitmap and nuked the white transparent replacing it with black transparent. Either that or it pre-multiplied and threw the source away. hmmm...
  • b

    billowy-train-84579

    01/18/2023, 5:14 AM
    can openfl run without lime
  • b

    billowy-train-84579

    01/18/2023, 5:15 AM
    as lime is the only thing keeping me from running OpenFL in a native android command-line process since lime depends on SDL2 which depends on JVM
  • b

    billowy-train-84579

    01/18/2023, 5:17 AM
    specifically SDL2 assumes the presence of a full Android JVM Application, in which definitely is not the case here
  • a

    ambitious-knife-25690

    01/18/2023, 7:02 AM
    I think it's the opposite
  • a

    ambitious-knife-25690

    01/18/2023, 7:03 AM
    if you could do it, lime could and openfl cant
  • a

    ambitious-knife-25690

    01/18/2023, 7:04 AM
    openfl requires a window, lime doesn't
  • e

    eager-terabyte-7248

    01/18/2023, 7:28 AM
    Is there any way to create a new BitmapData like this one using two BitmapData?
  • b

    billowy-train-84579

    01/19/2023, 7:55 AM
    but lime also requires JVM/SDL2
  • b

    billowy-train-84579

    01/19/2023, 8:02 AM
    as OpenFL requires lime to set up a stage for it, which requires a window set up for it, in order to render anything hardware accelerated
  • a

    abundant-exabyte-79096

    01/19/2023, 7:18 PM

    https://youtu.be/JTJqxXVB6rU▾

  • b

    billowy-train-84579

    01/21/2023, 10:42 AM
    nice
  • b

    billowy-train-84579

    01/21/2023, 10:45 AM
    openfl can run on web, right?
1...313233...57Latest