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

    ambitious-knife-25690

    05/02/2023, 2:45 PM
    but for games, i think border radius would be quite a hot topic
  • b

    bright-gpu-74537

    05/02/2023, 2:46 PM
    yeah, tbh, usually just non compound border with radius is enough
  • b

    bright-gpu-74537

    05/02/2023, 2:46 PM
    ie, like the link above i sent, thats fine imo for 99% of use cases (including core)
  • a

    ambitious-knife-25690

    05/02/2023, 2:46 PM
    and i like to have options so having it available would be nice just so i can see how things look and feel
  • b

    bright-gpu-74537

    05/02/2023, 2:47 PM
    it sounds like once Jeremy adds that rounded mesh or whatever, you are basically done...
  • a

    ambitious-knife-25690

    05/02/2023, 2:47 PM
    but the break down functionality might be cool to help scale down personal scope šŸ˜„
  • a

    ambitious-knife-25690

    05/02/2023, 2:47 PM
    yeah, that would be pretty cool
  • b

    billowy-waiter-28954

    05/02/2023, 4:43 PM
    Not that difficult to add, but it can get greedy in vertices count
  • b

    billowy-waiter-28954

    05/02/2023, 4:43 PM
    For game UI, you'll usually solve the rounded corners with NineSlice or similar, because it is much cheaper in terms of vertices count than computing rounded rect mesh at runtime
  • b

    billowy-waiter-28954

    05/02/2023, 4:45 PM
    (well, if you REALLY want to compute rounded rect at runtime, you can render VIA MESH onto a texture, then use that runtime-created texture with a NineSlice object so that you get the best of both worlds šŸ˜„ but more complicated setup)
  • b

    bright-gpu-74537

    05/02/2023, 5:17 PM
    yeah, haxeui supports 9 slice also... its really up to the backend creator of how much they choose to impl
  • a

    ambitious-knife-25690

    05/02/2023, 10:43 PM
    well, i'm not sure how bad it would be for ui to have such a thing available. I'd see if i can create a simple setup, but for now i'm trying to figure out bugs with the core use of haxeui-ceramic to iron them out a bit. Rounded corners just seemed topical so i figured i'd give it a shot šŸ˜„
  • a

    ambitious-knife-25690

    05/02/2023, 10:44 PM
    could i achieve a single mesh if i copy the vertices created from
    Arc
    onto a mesh?
  • b

    bright-gpu-74537

    05/03/2023, 6:05 AM
    i think non composite rounded borders are a nice idea (with gradient fills), that seems pretty doable (assuming Jeremy decides to add that mesh object), if it eats up geom, then the user can just use css to switch it of, and then it should be fine (assuming your backend code behaves)
  • b

    bright-gpu-74537

    05/03/2023, 6:08 AM
    but i actually doubt it would be that much of a perf issue, who knows though, im certainly no expert here. The best idea (imo) is to just expose as much as possible and kinda let the user decide, so here that would be * rounded borders with gradient fills if its not a composite border (and the radii are the same) * composite borders ignore border-radius * slice9 if they want (thats pretty much how other backends that semi support rounded borders work: kha, heaps)
  • b

    bright-gpu-74537

    05/03/2023, 6:09 AM
    it would probably be nice to add a "shapes" section to the component explorer as a kinda "cheat sheet"
  • g

    gifted-whale-78169

    05/03/2023, 5:06 PM
    I'm curious, has/is anyone using ceramic for a non-game related purpose? I saw Jeremy's creation but nothing else. Is it even recommended to use it for things like a normal gui application?
  • b

    billowy-waiter-28954

    05/03/2023, 8:37 PM
    I’m curious about that too actually šŸ˜†
  • g

    gifted-whale-78169

    05/03/2023, 9:15 PM
    I'm considering using ceramic for future gui projects but I'm also considering things like nwjs or electron
  • a

    ambitious-knife-25690

    05/03/2023, 9:33 PM
    This is pretty much exactly what i intend to use ceramic for
  • a

    ambitious-knife-25690

    05/03/2023, 9:33 PM
    and why i'm building haxeui support for it
  • a

    ambitious-knife-25690

    05/03/2023, 9:34 PM
    I originally was going to use kha for this because it is way lighter weight, (and there may still be cases that kha is best) but i think ceramic is a really good middle ground for the kinds of things i'm going to need
  • a

    ambitious-knife-25690

    05/03/2023, 9:35 PM
    and ceramic may not be as lightweight as kha, but jeremy has put a ton of work into optimising it
  • g

    gifted-whale-78169

    05/03/2023, 9:53 PM
    That's good to know šŸ™‚
  • a

    ambitious-knife-25690

    05/03/2023, 10:03 PM
    plus a lot of the things i would need in kha, ceramic provides out of the box
  • f

    faint-toothbrush-51643

    05/03/2023, 10:26 PM
    maybe we should compile a list of all current projects that use ceramic
  • a

    ambitious-knife-25690

    05/03/2023, 10:27 PM
    that's the idea behind
    /snippets
    or
    /quotes
    commands šŸ˜„
  • g

    gifted-whale-78169

    05/04/2023, 2:13 AM
    I have an awesome-ceramic repo but I haven't updated it in a bit, missing things like the haxeui backend
  • f

    faint-toothbrush-51643

    05/04/2023, 2:40 AM
    does it include me?
  • b

    billowy-waiter-28954

    05/04/2023, 7:41 AM
    @ambitious-knife-25690 FYI this is what I get when I try to build the project you sent me:
    Copy code
    WARNING: layout 'horizontal' not found /Users/jeremyfa/Developer/notbilly_haxeui/.haxelib/haxeui-core/git/haxe/ui/macros/ComponentMacros.hx:987
    WARNING: layout 'horizontal' not found /Users/jeremyfa/Developer/notbilly_haxeui/.haxelib/haxeui-core/git/haxe/ui/macros/ComponentMacros.hx:987
    /Users/jeremyfa/Developer/notbilly_haxeui/.haxelib/vision/1,3,1/src/vision/ds/Image.hx:1421: characters 21-40 : Class<vision.tools.ImageTools> has no field fromHaxeUIImageData
    /Users/jeremyfa/Developer/notbilly_haxeui/.haxelib/vision/1,3,1/src/vision/ds/Image.hx:1413: characters 21-36 : Class<vision.tools.ImageTools> has no field fromHaxeUIImage
    /Users/jeremyfa/Developer/notbilly_haxeui/.haxelib/vision/1,3,1/src/vision/ds/Image.hx:1417: characters 21-34 : Class<vision.tools.ImageTools> has no field toHaxeUIImage
    /Users/jeremyfa/Developer/notbilly_haxeui/.haxelib/vision/1,3,1/src/vision/ds/Image.hx:1425: characters 21-38 : Class<vision.tools.ImageTools> has no field toHaxeUIImageData
    Error when running clay run with target web. (status = 1)
1...115116117...124Latest