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

    witty-island-52596

    08/11/2022, 11:18 PM
    like you want to convert a 3d matrix into a 2d matrix that would result in the same rendering when projected? yeah I think that's not possible
  • w

    witty-island-52596

    08/11/2022, 11:19 PM
    otherwise why would 3d matrices even be used if 2d ones could do the same
  • e

    enough-lawyer-1858

    08/12/2022, 2:33 AM
    Cos it has different ways to manipulate a 3D matrix that you would want to apply to an image
  • e

    enough-lawyer-1858

    08/12/2022, 2:33 AM
    For example, there's hsl, hsv, cyk, but they aren't replacing rgb
  • e

    enough-lawyer-1858

    08/12/2022, 2:34 AM
    You can parse them together to have more spiced things, but you can parse them
  • e

    enough-lawyer-1858

    08/12/2022, 2:35 AM
    And since 3D matrix looks like an extends Matrix to some capacity (not the class, but the matrix) then I thought that it would be possible to parse it somehow
  • c

    curved-tiger-81069

    08/13/2022, 4:05 AM
    is there any way to add an outline to a
    TextField
    ?
  • b

    boundless-australia-56579

    08/13/2022, 6:22 PM
    @curved-tiger-81069 you can try https://github.com/loudoweb/openfl-shaders/blob/master/openfl/shaders/Outline.hx like that :
    text.shader = new Outline(2, 0xff0000);
  • b

    boundless-australia-56579

    08/13/2022, 6:23 PM
    but for now the quality parameter is disabled, so it's better to use very thin outline
  • b

    boundless-australia-56579

    08/13/2022, 8:49 PM
    depending on your outline size, you may need to use it as a shaderFilter instead + setting __topExtension, __leftExtension, etc. I'm looking for a better solution
  • b

    boundless-australia-56579

    08/13/2022, 8:50 PM
    (because it will be cropped to the textfield size)
  • b

    boundless-australia-56579

    08/13/2022, 8:54 PM
    I think you can also use a GlowFilter
  • b

    boundless-australia-56579

    08/13/2022, 9:12 PM
    well, I have just push a new OutlineFilter in my lib, so there won't be cropping issue anymore. But I'm still working on improving the quality dynamically. If needed you can change the ANGLE_STEP variable.
  • c

    curved-tiger-81069

    08/13/2022, 10:01 PM
    :0 thx!
  • r

    refined-cat-44047

    08/15/2022, 10:57 PM
    I remember seeing something a little while ago about 3d spatial audio. Anyone know if this is built into OpenFL? I might have seen it about Lime. Any example code out there?
  • e

    elegant-twilight-61392

    08/16/2022, 12:51 PM
    iirc you can adjust the l/r panning manually
  • r

    refined-cat-44047

    08/16/2022, 9:05 PM
    Looks like
    lime.media.AudioSource
    has a
    position:Vector4
    property. But there is no documentation at all. So that might be something useful that someone worked hard on, but no way of knowing unfortunately.
  • r

    rhythmic-wolf-50922

    08/16/2022, 9:25 PM
    it looks like OpenFL uses the
    position:Vector4
    property to adjust left/right stereo pan:
    Copy code
    haxe
    var position = source.position;
    position.x = pan;
    position.z = -1 * Math.sqrt(1 - Math.pow(pan, 2));
    source.position = position;
  • r

    rhythmic-wolf-50922

    08/16/2022, 9:25 PM
    that code is from Sound.hx (and SoundChannel.hx) from OpenFL
  • r

    refined-cat-44047

    08/16/2022, 10:31 PM
    oh interesting! Thanks!
  • c

    curved-tiger-81069

    08/17/2022, 1:04 AM
    this might be a dumb question but why doesnt it let me set something that extends bitmap as a bitmap i know i can just do
    cast
    but im just curious
  • b

    bulky-exabyte-6537

    08/17/2022, 3:19 AM
    is electron a newish openfl target?
  • b

    best-agent-85158

    08/17/2022, 9:17 AM
    I don't think so
  • r

    refined-cat-44047

    08/17/2022, 10:37 AM
    Anyone got any idea how I can access the microphone on ios with haxe/openfl?
  • c

    curved-tiger-81069

    08/19/2022, 12:50 AM
    just curious, is there any way of making a function run when a varible is changed?
  • i

    important-cpu-97721

    08/19/2022, 5:57 AM
    An abstract, class property with a setter, macros combined with an abstract, or maybe an additional type extension (I don't remember if they store state tho).
  • w

    witty-island-52596

    08/19/2022, 6:08 PM
    https://haxe.org/manual/class-field-property.html
  • b

    boundless-australia-56579

    08/20/2022, 5:01 PM
    @curved-tiger-81069 you can also use this https://lib.haxe.org/p/bindx2/
  • t

    thousands-state-46635

    08/20/2022, 6:28 PM
    how do I select a folder through FileDialog/FileReference? I can only select files, but I want to select a folder, so i can e.g - fetch its path and then get the list of files n i
  • b

    bright-gpu-74537

    08/20/2022, 7:44 PM
    this might help: https://discord.com/channels/162395145352904705/565569107701923852/1009181009968910507 its worth mentioning that im planning to create a lib (system-utils) with all this stuff neatly wrapped up - it will be a 100% NON-haxeui lib, so you can use it from anywhere: https://discord.com/channels/162395145352904705/162664383082790912/1009555964237729893
1...456...57Latest