https://linen.dev logo
Join DiscordCommunities
Powered by
# openfl
  • t

    thousands-state-46635

    12/17/2022, 1:41 AM
    true
  • t

    thousands-state-46635

    12/17/2022, 1:41 AM
    also, i dont know how im even creating the shader
  • t

    thousands-state-46635

    12/17/2022, 1:41 AM
    i dont have anay shaders
  • t

    thousands-state-46635

    12/17/2022, 1:42 AM
    also gahh why is hxCodec flixel-oriented, i wanna use it on my project thats not flixel for once
  • h

    hallowed-ocean-84954

    12/17/2022, 2:15 AM
    well the shader code looks like the stuff you get from flixel to render flxsprites and probably I would guess from openfl to render bitmaps
  • h

    hallowed-ocean-84954

    12/17/2022, 2:15 AM
    I don't know anything about hxCodec
  • t

    thousands-state-46635

    12/17/2022, 2:18 AM
    yeah, i think it may be flixel code and its stored somewhere outside of flixel projects
  • h

    hallowed-ocean-84954

    12/17/2022, 2:28 AM
    it's in the openfl shader class iirc
  • f

    fast-ice-36271

    12/17/2022, 6:38 PM
    Are someone aware of a "Maybe OpenFl" code that opens an existing .txt from the assets?
  • a

    able-action-74275

    12/17/2022, 6:52 PM
    Assets.getText(assetpath) I think
  • f

    fast-ice-36271

    12/17/2022, 6:54 PM
    Assets.getText("assets/thx");?
  • a

    able-action-74275

    12/17/2022, 6:54 PM
    yeah
  • a

    able-action-74275

    12/17/2022, 6:55 PM
    var text = Assets.getText(assetpath);
  • a

    able-action-74275

    12/17/2022, 6:56 PM
    https://api.openfl.org/openfl/utils/Assets.html#getText
  • b

    bitter-carpenter-85508

    12/18/2022, 3:17 PM
    is there a way to set a the main windows's alpha ?
  • e

    enough-lawyer-1858

    12/18/2022, 4:01 PM
    Is there a way to use another matrix that isnt openfl_matrix that doesnt make the 2D texture disappear? Ive been trying to make a shader and I wanted to change the matrix but the thing is that if I do that, the bitmap completely disappears no matter what I do or change it to
  • c

    curved-lifeguard-6743

    12/18/2022, 5:00 PM
    Um, if you use only the VLCBitmap it can be used in openfl only
  • h

    hallowed-ocean-84954

    12/18/2022, 7:14 PM
    you can bind other matrices and use those. But that matrix is used in the vertex shader to set the position so it the content of that matrix is off I can imagine it blasting the vertices off into deep space and so the thing will be off screen. What are you putting in the matrix ?
  • e

    enough-lawyer-1858

    12/18/2022, 7:17 PM
    mainly I'm trying to replace the openfl_matrix to myOwn_matrix so that I can then do 3D stuff on 2D without no worries
  • h

    hallowed-ocean-84954

    12/18/2022, 7:24 PM
    oh - I am not sure exactly how that will go as you are rendering via the 2D stage, but if you are using a three translation matrix for example then, you'll need to do something about the z-axis position. I have been messing with 3D openfl for the last couple of months but I am doing it from the 3D stage
  • e

    enough-lawyer-1858

    12/18/2022, 7:25 PM
    I mean, iirc, a shader should be equally done with 2 and 3 dimensional planes, so I think it would be the same thing more or less
  • e

    enough-lawyer-1858

    12/18/2022, 7:26 PM
    unless there's a secret 3DShader.hx I don't know about lol
  • b

    bitter-carpenter-85508

    12/18/2022, 7:26 PM
    pls help
  • a

    ambitious-knife-25690

    12/18/2022, 7:34 PM
    try giving
    color
    a transparent background colour
  • h

    hallowed-ocean-84954

    12/18/2022, 9:55 PM
    ultimately they go through the same renderer but I don't know if there would be any issues there. It's an interesting thought. The matrix you are trying to change is a mat4 and the openfl_position is a vec4. So it's at least possible - I mean the objects are the right size. I would check the matrix values and see what they are normally and then check what you are supplying and how they differ. I don't know what the matrix normally has in it.
  • e

    enough-lawyer-1858

    12/18/2022, 10:08 PM
    I tried to look into the src code and testing with the renderer, trying to trace stuff and I still cant understand how tf is the matrix differing from my own one it's like if the matrix of the image was inserted magically by some weird fairies while casting some spells to it, cos otherwise I dont understand how is it applied lmao
  • o

    orange-van-60470

    12/18/2022, 10:12 PM
    I have some lime stuff for 3D, and use my geom lib with it. https://github.com/nanjizal/kitGL/blob/master/src/kitGL/glLime/Ply.hx you can see the nme, webgl ones and compare the wiring my webgl in cornerContour/trilateral3 is futher
  • o

    orange-van-60470

    12/18/2022, 10:13 PM
    see my dice render, it draws in webgl 2D a but rotated planes in 3d
  • o

    orange-van-60470

    12/18/2022, 10:16 PM
    problem I found with shader rendering in openfl and lime is the frameworks seem to slow up the render compared to other toolkits and I never worked out why as was just drawing array of triangle data with shader
  • o

    orange-van-60470

    12/18/2022, 10:17 PM
    Not looked at 47rooks work curious if he has found ways to improve raw rendering of triangles
1...212223...57Latest