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

    billowy-waiter-28954

    11/23/2022, 12:52 PM
    Yes, it's possible, but undocumented at the moment
  • b

    billowy-waiter-28954

    11/23/2022, 12:54 PM
    Unfortunately I don't even have any public example to share at the moment because the existing code I have doing that is closed source, but I plan to add a proper guide and example on ceramic website to do that
  • b

    billowy-waiter-28954

    11/23/2022, 12:54 PM
    Can't promise when that will be ready though
  • f

    faint-toothbrush-51643

    11/23/2022, 3:46 PM
    how do i get the set alpha value in the glsl?
  • b

    billowy-waiter-28954

    11/23/2022, 3:48 PM
    In GLSL, a fragment shader returns a color (RGBA). So you need to set the alpha value correctly
  • b

    billowy-waiter-28954

    11/23/2022, 3:49 PM
    You also need to take into account that the graphics are rendered using premultiplied alpha, so you need to multiply your alpha value with rgb value in the pixel you return
  • f

    faint-toothbrush-51643

    11/23/2022, 3:50 PM
    i know glsl, i made the whole thing with palette changing
  • f

    faint-toothbrush-51643

    11/23/2022, 3:52 PM
    my question is, the visual's
    alpha
    , how do i access that value in glsl so that i can use it to change the color appropriately
  • b

    billowy-waiter-28954

    11/23/2022, 4:06 PM
    It’s the color attribute’s alpha value
  • b

    billowy-waiter-28954

    11/23/2022, 4:14 PM
    Just look at the default shaders, they are using it
  • f

    faint-toothbrush-51643

    11/24/2022, 10:22 PM
    that worked
  • f

    faint-toothbrush-51643

    11/24/2022, 10:23 PM
    i'd like to give android another try
  • f

    faint-toothbrush-51643

    11/24/2022, 10:24 PM
    but it feels like the guide is for people who already develop for mobile
  • f

    faint-toothbrush-51643

    11/24/2022, 10:25 PM
    because there are apparently numerous additional things i need to do to set up haxe?
  • f

    faint-toothbrush-51643

    11/24/2022, 10:26 PM
    and i don't know what those are
  • f

    fresh-finland-97755

    11/25/2022, 7:29 AM
    Copy code
    PS C:\devel\ceramic-samples\pixel-platformer> ceramic clay run windows
    Will build with configuration Run for target windows (Windows).
    Skip haxe compilation
    Compile C++
    Creating C:/devel/ceramic-samples/pixel-platformer/out/clay/windows/cpp/obj/msvc1964-nc/__pch/haxe/hxcpp.pch...
    hxcpp.cpp
    
    Compiling group: haxe
    ....
    Error: __boot__.cpp
    include\ceramic/_AlphaColor/AlphaColor_Impl_.h(55): error C2059: syntax error: 'constant'
    include\ceramic/_AlphaColor/AlphaColor_Impl_.h(55): error C2238: unexpected token(s) preceding ';'
  • f

    fresh-finland-97755

    11/25/2022, 7:30 AM
    So I'm getting the above error message when trying to run the platformer example on the windows target
  • f

    fresh-finland-97755

    11/25/2022, 7:39 AM
    Also the pixel platformer gets really choppy whenever I change the window size on the electron build
  • b

    billowy-waiter-28954

    11/25/2022, 8:05 AM
    That’s odd, I’ll take a look at that one
  • b

    billowy-waiter-28954

    11/25/2022, 8:05 AM
    A video capture would help to see what you mean exactly
  • b

    billowy-waiter-28954

    11/25/2022, 9:05 AM
    Didn't notice any choppiness when changing the windows size on the electron build on my side. Sure the resolution being very low it can feel less and less smooth with a larger windows size, but that's it
  • b

    billowy-waiter-28954

    11/25/2022, 9:06 AM
    Found the build issue on windows, it's been broken recently because of some weird windows build behaviour and a change in AlphaColor. I will push a new release of Ceramic today with a fix!
  • b

    billowy-waiter-28954

    11/25/2022, 9:25 AM
    Here you go: https://github.com/ceramic-engine/ceramic/releases/tag/v0.17.6
  • f

    fresh-finland-97755

    11/25/2022, 10:07 AM
    Copy code
    Run haxe compiler
    Error: Error: Cannot process [arcade]: Library arcade is not installed : run 'haxelib install arcade'
    Error when running clay run with target windows. (status = 1)
    PS C:\devel\ceramic-samples\pixel-platformer> haxelib install arcade
    Error: Failed with error: No such Project : arcade
    PS C:\devel\ceramic-samples\pixel-platformer> ceramic clay libs                        
    Error: Failed with error: No such Project : arcade
    Failed to install arcade
    Now the arcade plugin seems to be missing from haxelib
  • b

    billowy-waiter-28954

    11/25/2022, 10:55 AM
    haxelib install arcade
    won't be any helpful here
  • b

    billowy-waiter-28954

    11/25/2022, 10:56 AM
    You can try to delete the
    .haxelib
    directory of your project and try to build again (
    ceramic clay run windows --setup --assets
    )
  • b

    billowy-waiter-28954

    11/25/2022, 10:56 AM
    If it still doesn't work there is probably something wrong with your Ceramic installation
  • f

    fresh-finland-97755

    11/25/2022, 11:31 AM
    I deleted the .haxelib directory in the project, as well as removed ceramic from the home directory, re-installed ceramic globally and ran
    Copy code
    ceramic clay run windows --setup --assets
    again and got the same message
  • b

    billowy-waiter-28954

    11/25/2022, 11:52 AM
    What does the
    haxelib version
    command give you?
  • b

    billowy-waiter-28954

    11/25/2022, 11:52 AM
    (and what
    ceramic path
    command give you?)
1...212223...124Latest