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

    orange-van-60470

    12/18/2022, 10:17 PM
    I seem to remember flash matrix was crap
  • h

    hallowed-ocean-84954

    12/18/2022, 10:18 PM
    I render triangles but I have not looked at perf. And this is really my first serious foray into 3D so I have nothing to compare with
  • h

    hallowed-ocean-84954

    12/18/2022, 10:18 PM
    I don't really even know how to measure it
  • h

    hallowed-ocean-84954

    12/18/2022, 10:18 PM
    got any pointers on GL perf ?
  • o

    orange-van-60470

    12/18/2022, 10:19 PM
    just my trilateral/trilateral3/cornercontour is setup with all toolkits and webgl
  • o

    orange-van-60470

    12/18/2022, 10:20 PM
    so you see the differences in how complex you can draw
  • e

    enough-lawyer-1858

    12/18/2022, 10:20 PM
    Looking at your repo, it seems that for the vertex shader, you are using what openfl does, which when I do the same for openfl, it disappears for some reason
  • o

    orange-van-60470

    12/18/2022, 10:21 PM
    disappears?
  • e

    enough-lawyer-1858

    12/18/2022, 10:22 PM
    the bitmap which I apply the shader disappears whenever I apply it
  • e

    enough-lawyer-1858

    12/18/2022, 10:23 PM
    and it's basically like, the "hello world" of rendering images, nothing really changes much except the vertex shader, which then I apply an uniform matrix that I use with a basic vec4 variable
  • o

    orange-van-60470

    12/18/2022, 10:29 PM
    you have to setup the image stuff properly
  • o

    orange-van-60470

    12/18/2022, 10:31 PM
    this is a pure webgl test https://nanjizal.github.io/contourTextureMouse/index.html
  • o

    orange-van-60470

    12/18/2022, 10:33 PM
    so the details of setup for Lime/NME/WebGL are quite similar... so the code here...
  • e

    enough-lawyer-1858

    12/18/2022, 10:34 PM
    I will try to look again into the thing but I swear to you I have it set all correctly and it just disappears
  • o

    orange-van-60470

    12/18/2022, 10:35 PM
    so this sort of stuff.. https://github.com/nanjizal/cornerContour/tree/main/src/cornerContour/shaderTarget/limeTarget needs to be updated with implementations for some parts of this https://github.com/nanjizal/cornerContour/tree/main/src/cornerContour/web
  • o

    orange-van-60470

    12/18/2022, 10:36 PM
    if you look at the dice demo it does all 3D with geom lib but has no image https://nanjizal.github.io/dice/binWebGL/index.html
  • o

    orange-van-60470

    12/18/2022, 10:37 PM
    so really the important part is just to do image 2D with shader and then can be extended
  • o

    orange-van-60470

    12/18/2022, 10:37 PM
    geom provides nice 3d matrix support
  • o

    orange-van-60470

    12/18/2022, 10:38 PM
    I need to work on dualQuaternions a bit
  • o

    orange-van-60470

    12/18/2022, 10:38 PM
    but lighting etc.. that is even more work
  • h

    hallowed-ocean-84954

    12/18/2022, 10:51 PM
    only drawing cubes right now and not very many. Will get to model loaders in a bit and then things will get a log more complex. I don't quite see how the lime layer could add much to anything but the binding of vars for the shaders once everything is loaded. Of course openfl's texture caching and such could be an issue. I'll have to look at how to write a benchmark test of some kind - measure something like triangles per second. Of course I'm on a 1050Ti on a laptop so there's that. Need to separate software stack, driver, and hardware in the timings too I guess. Hmmm... sounds like another rabbit burrow 🐰 🐇 🙂
  • o

    orange-van-60470

    12/18/2022, 10:57 PM
    ok for instance this is lime ( webgl ) https://nanjizal.github.io/cornerContourSamples/bin/hxLime/html5/bin/index.html this is webgl https://nanjizal.github.io/cornerContourSamples/bin/hxWebGL/index.html
  • o

    orange-van-60470

    12/18/2022, 10:58 PM
    For me the pure WebGL is better yet they are just a shader and array of data
  • o

    orange-van-60470

    12/18/2022, 10:59 PM
    so really there should be less difference, but what do you see when you run them
  • o

    orange-van-60470

    12/18/2022, 10:59 PM
    openfl can be even slower..
  • o

    orange-van-60470

    12/18/2022, 11:01 PM
    Not worked out the differences but maybe you know
  • h

    hallowed-ocean-84954

    12/19/2022, 12:42 AM
    These appear to be static pages - I don't see how to run them
  • h

    hallowed-ocean-84954

    12/19/2022, 12:43 AM
    @orange-van-60470 ^
  • o

    orange-van-60470

    12/19/2022, 1:58 AM
    they generate the shapes with code they only run once.
  • h

    hallowed-ocean-84954

    12/19/2022, 1:59 AM
    oh when they load ? in which case I cannot tell any difference on my machine
1...222324...57Latest