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

    billowy-waiter-28954

    12/05/2022, 9:38 AM
    No, only the assets you add in your scene preload
  • f

    fresh-finland-97755

    12/05/2022, 9:39 AM
    Got it. 👍
  • f

    fresh-finland-97755

    12/05/2022, 9:53 AM
    Also... does Ceramic have anything like the Phaser TileSprite game object? A sprite that repeats it's texture based on a width and height. That also allows wrapping based on an offset X/Y value. https://phaser.io/examples/v3/view/game-objects/tests/tilesprite
  • b

    billowy-waiter-28954

    12/05/2022, 10:58 AM
    No it doesn't, but should not be too difficult to make one yourself using quads inside a visual subclass
  • f

    fresh-finland-97755

    12/06/2022, 7:55 AM
    Cool, I'll look into that when it comes along.
  • f

    fresh-finland-97755

    12/06/2022, 7:55 AM
    Is there a debug rendering mode for showing arcade physics bodies?
  • b

    billowy-waiter-28954

    12/06/2022, 9:45 AM
    unfortunately not 😦
  • b

    billowy-waiter-28954

    12/06/2022, 9:45 AM
    That would be useful for sure
  • f

    fresh-finland-97755

    12/06/2022, 12:03 PM
    samme made a pretty useful plugin for doing draw debugging in phaser, maybe the same could be made for ceramic. Does ceramic have lifecycle hooks for the scenes that a plugin could use to inject the debug shape drawing? Similar to this implementation https://github.com/samme/phaser-plugin-debug-draw/blob/master/src/main.js
  • f

    fresh-finland-97755

    12/06/2022, 12:10 PM
    (sorry for the tons of questions btw 😂)
  • b

    billowy-waiter-28954

    12/06/2022, 12:46 PM
    No worries, this channel is here for that!
  • b

    billowy-waiter-28954

    12/06/2022, 12:49 PM
    And yes, you can hook into the app lifecycle using
    app.onPostUpdate()
    or by creating a
    System
    class that implements
    lateUpdate()
    (check the existing classes that inherit from
    System
    in the code base)
  • b

    billowy-waiter-28954

    12/06/2022, 12:50 PM
    You might also want to use
    visualToScreen()
    method (of Visual) to convert local coordinate to screen coordinates
  • b

    billowy-waiter-28954

    12/06/2022, 12:50 PM
    And a quick way to display a rectangle is to use the
    Border
    class
  • f

    faint-toothbrush-51643

    12/07/2022, 1:21 AM
    Whenever I add a Spine, it appears in its setup pose for one frame, even if I immediately call a function to apply an animation
  • b

    billowy-waiter-28954

    12/07/2022, 8:26 AM
    This is not how it behaves normally. You should check what you do on the spine objects that might trigger this issue
  • b

    billowy-waiter-28954

    12/07/2022, 8:28 AM
    You may also check when you do add that spine. Maybe you can try to wrap the add(spine) in a app.onceUpdate() so that you know it will be added in the update loop before it is processed by spine system
  • f

    faint-toothbrush-51643

    12/07/2022, 9:06 AM
    maybe it's because i always use tracks instead of setting animation?
  • b

    billowy-waiter-28954

    12/07/2022, 9:35 AM
    I don't know, but you should try my above suggestion with onceUpdate() to see if you still have the problem when doing that
  • f

    faint-toothbrush-51643

    12/07/2022, 5:17 PM
    i did a thing so my spines are invisible on the first frame, which works well enough
  • s

    salmon-waitress-70321

    12/07/2022, 7:53 PM
    can i get a draw calls?
  • s

    salmon-waitress-70321

    12/07/2022, 7:54 PM
    is there any profile in ceramic?
  • b

    billowy-waiter-28954

    12/07/2022, 10:06 PM
    @salmon-waitress-70321 Hey, profiling is done with standard tools: chrome profiler, xcode profiler etc...
  • b

    billowy-waiter-28954

    12/07/2022, 10:07 PM
    However, you can get some info about draw calls using
    ceramic_debug_draw
    define
  • b

    billowy-waiter-28954

    12/07/2022, 10:07 PM
    (to add defines: https://ceramic-engine.com/guides/ceramic-yml-reference/#defines)
  • s

    salmon-waitress-70321

    12/08/2022, 7:55 PM
    i get an extension error on startup vscode - Failed to run command:
    ceramic ide info --print-split-lines
    (signal=null code=1) command ctrl+shift+B does not work for me (got No command defined) os windows 10 run (ceramic clay run web) from powershell work well
  • s

    salmon-waitress-70321

    12/08/2022, 8:29 PM
    how do i get the information фищге draw calls after adding the define ceramic_debug_draw?
  • b

    billowy-waiter-28954

    12/08/2022, 9:45 PM
    That’s weird, did you install ceramic globally? What does ˋceramic path` give you?
  • b

    billowy-waiter-28954

    12/08/2022, 9:46 PM
    You should see infos in the logs
  • s

    salmon-waitress-70321

    12/09/2022, 7:32 PM
    PS C:\Windows\system32> ceramic path C:\Users\User1\ceramic\tools
1...282930...124Latest