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

    fresh-finland-97755

    11/25/2022, 12:01 PM
    I actually just removed the ceramic folder in my user directory (I removed the .ceramic before) and reinstalled everything and now it works.
  • a

    astonishing-jordan-99718

    11/25/2022, 12:27 PM
    No information available.
  • o

    orange-van-60470

    11/25/2022, 5:18 PM
    is it viable to setup ceramic via lix --global currently ?
  • o

    orange-van-60470

    11/25/2022, 5:20 PM
    just setup Flixel and heaps via lix --global, I ended up with git heaps
  • o

    orange-van-60470

    11/25/2022, 5:21 PM
    not used ceramic for a little while
  • b

    billowy-waiter-28954

    11/25/2022, 6:08 PM
    Ceramic is not designed to work with lix, so, maybe it works, but can’t guarantee it
  • o

    orange-van-60470

    11/26/2022, 2:47 PM
    It seems to work with lix
  • o

    orange-van-60470

    11/26/2022, 2:54 PM
    I am unsure how to set the default package path for Project, Import and CeramicUse currently they are contained within src/lsystemx/demoUse/systemx-ceramic I tried setting in YAML...
    Copy code
    package: lsystemx.demoUse.lsystemx-ceramic.CeramicUse
    but suspect that is the output package not input. I can't have Ceramic related methods in the base of the src it would be confusion for the other targets
  • o

    orange-van-60470

    11/26/2022, 2:55 PM
    I think I may have asked this before ..
  • o

    orange-van-60470

    11/26/2022, 2:58 PM
    currently I have ceramic files here ..
  • o

    orange-van-60470

    11/26/2022, 2:58 PM
    https://github.com/nanjizal/lsystemx/blob/master/src/lsystemx/demoUse/lsystemx-ceramic/CeramicUse.hx
  • o

    orange-van-60470

    11/26/2022, 2:59 PM
    but there seems no YAML options for such a setup yet?
  • o

    orange-van-60470

    11/26/2022, 3:01 PM
    I would be uneasy to put them in the src base, as this is just a usage example and really would prefer it within the demoUse folder
  • o

    orange-van-60470

    11/26/2022, 3:02 PM
    I guess can move for a test... locally but looking for nicer yaml solution for the git repo
  • o

    orange-van-60470

    11/26/2022, 3:05 PM
    need to look at samples more
  • o

    orange-van-60470

    11/26/2022, 3:15 PM
    oh done the generation... a few folders... not sure how to do this ..
  • o

    orange-van-60470

    11/26/2022, 3:15 PM
    to be not too messy for generic lib
  • o

    orange-van-60470

    11/26/2022, 3:19 PM
    the paths in 'out/clay/web/Project.hxml' are all hardcoded relative to my system!
  • o

    orange-van-60470

    11/26/2022, 3:20 PM
    Copy code
    -main Main
    -js /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js
    -D clay_web
    -D ceramic_soft_inline
    -D ceramic_shader_vert_frag
    -D clay_webgl_unpack_premultiply_alpha
    -D web
    -D no-console
    -cp ../../../gen
    -cp ../../../../../../ceramic/runtime/src
    -cp ../../../../../../ceramic/plugins/clay/runtime/src
    -cp ../../../src
    --remap components_:components
    -lib format:3.4.2
    -lib hscript:2.4.0
    -lib polyline
    -lib tracker
    -lib bind
    -lib earcut
    -lib poly2tri
    -lib hsluv
    -lib format-tiled
    -lib clay
    -D clay_app_id="lsystemx2"
    -D app_info="{\"name\":\"lsystemx2\",\"displayName\":\"lsystemx2\",\"author\":\"My Company\",\"version\":\"1.0\",\"editable\":[\"ceramic.Entity\",\"ceramic.Visual\",\"ceramic.Layer\",\"ceramic.Fragment\",\"ceramic.Quad\",\"ceramic.Text\",\"ceramic.Mesh\",\"ceramic.Shape\",\"ceramic.Ngon\",\"ceramic.Arc\",\"ceramic.Line\",\"ceramic.Particles\"]}"
    --macro ceramic.macros.MacroCache.init()
    -D tracker_ceramic
    -D tracker_no_default_backend
    -D tracker_custom_entity=ceramic.Entity
    -D tracker_custom_component=ceramic.Component
    -D tracker_custom_array_pool=ceramic.ArrayPool
    -D tracker_custom_backend=ceramic.TrackerBackend
    -D tracker_custom_reusable_array=ceramic.ReusableArray
    -D backend=clay
    -D clay=backend
    -D ceramic=0.17.6
    -D assets_path=/home/nanjizal/haxey/lsystemx/lsystemx2/assets
    -D ceramic_assets_path=/home/nanjizal/ceramic/tools/assets
    -D ceramic_root_path=/home/nanjizal/ceramic
    -D HXCPP_STACK_LINE
    -D HXCPP_STACK_TRACE
    -D variant=standard
    -D standard=variant
    -D HXCPP_CHECK_POINTER
    -D safeMode
    -D absolute-path
    -D ceramic_extra_assets_paths="[\"/home/nanjizal/ceramic/plugins/clay/assets\"]"
  • o

    orange-van-60470

    11/26/2022, 3:22 PM
    why are paths via the generation script absolute...!!
  • o

    orange-van-60470

    11/26/2022, 3:24 PM
    I can't check stuff like that to a repo?
  • o

    orange-van-60470

    11/26/2022, 4:02 PM
    well not overly important but some aspects of ceramic tooling seem a bit awkward
  • o

    orange-van-60470

    11/26/2022, 4:05 PM
    it just feels a bit too complex the setup scripts
  • o

    orange-van-60470

    11/26/2022, 4:30 PM
    Ok I tried just copying the CeramicUse to blank project... and adjusting Project.hx to use it... Request status was 404 / Not Found /home/nanjizal/ceramic/git/clay/src/clay/web/WebIO.hx:102 Request status was 404 / Not Found /home/nanjizal/ceramic/git/clay/src/clay/web/WebIO.hx:102 Request status was 404 / Not Found /home/nanjizal/ceramic/git/clay/src/clay/web/WebIO.hx:102 Request status was 404 / Not Found /home/nanjizal/ceramic/git/clay/src/clay/web/WebIO.hx:102 Request status was 404 / Not Found /home/nanjizal/ceramic/git/clay/src/clay/web/WebIO.hx:102 Request status was 404 / Not Found /home/nanjizal/ceramic/git/clay/src/clay/web/WebIO.hx:102 GL / Failed to compile shader: /home/nanjizal/ceramic/git/clay/src/clay/opengl/GLGraphics.hx:772 [error] /home/nanjizal/ceramic/git/clay/src/clay/opengl/GLGraphics.hx:773 // start -- (vert) compile log -- ERROR: 1:1: '' : syntax error // end -- backend_ClayEvents.tick /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:10274:16 backend_Backend.emitUpdate /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:9932:5 ceramic_App.updatePreReady /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:21686:18 Function.ceramic_Assets.flushAllInstancesImmediate /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:7376:21 ceramic_Immediate.flush /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:34071:5 fn /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:15658:5 at /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:51988:12 backend_ShaderImpl.init /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:15205:25 Function.haxe_Exception.thrown /home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:70212:11 at new haxe_ValueException (/home/nanjizal/haxey/lsystemx/lsystemx2/project/web/lsystemx2.js:71001:17) Error: Failed to create shader (id=null)
  • o

    orange-van-60470

    11/26/2022, 4:30 PM
    not really sure...
  • o

    orange-van-60470

    11/26/2022, 4:45 PM
    Ok well decided for now to leave CeramicUse.hx within the lib as theoretical implementation and strip out any attempt at setup. But if anyone wants to test it out would be curious and would be nice to upload the html related bin. Fixed small typo in my class https://github.com/nanjizal/lsystemx/blob/master/src/lsystemx/demoUse/CeramicUse.hx
  • b

    billowy-waiter-28954

    11/26/2022, 4:52 PM
    @orange-van-60470 Sorry, but I’m confused, I have no idea what you are actually trying to do with Ceramic here 😅
  • o

    orange-van-60470

    11/26/2022, 5:01 PM
    i just wanted to add html ceramic support demo to lsystemx. Probably have a simple implementation that should work but not simple to add a build/compile file to the repo and even if I test it within an auto generated project ceramic seems not to be installed fully.
  • o

    orange-van-60470

    11/26/2022, 5:05 PM
    the code is based on your line sample so should work...
  • o

    orange-van-60470

    11/26/2022, 5:10 PM
    Copy code
    Haxe
    package lsystemx.demoUse;
    // theoretical implementation
    import lsystemx.drawings.AnimationTest;
    //import ceramic.Color;
    import ceramic.Line;
    import ceramic.Scene;
    class CeramicUse extends Scene {
        var time:Float;
        var animationTest: AnimationTest;
        var lastColor = 0xFFffFFff;
        var lastThick = 1.;
        var hi: Int = 768;
        var wid: Int = 1024; 
        // Mesh2D maybe lighter
        override
        function create() {
            time = 0;
            animationTest = new AnimationTest( fillLine, wid, hi, false );
        }
        public
        function fillLine( sx: Float, sy: Float
                         , ex: Float, ey: Float
                         , thick: Float
                         , color: Int, ?alpha: Float = 1. ){
            color = color & 0xFFFFFF;
            var line = new Line();
            if( lastColor != color  ) {
                line.color = color;
                line.thickness = thick;
            }
            line.points = [ sx, sy, ex, ey ];
            add( line );
            lastColor = color;
        }
        override
        function update( delta: Float ) {
            time += delta;
            animationTest.update();
        }
    }
    but would need ceramic haxelib seems incomplete, need to explore and the yaml and basic setup for ceramic is I suspect too verbose in comparative terms to flixel and heaps at the moment?
1...222324...124Latest