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

    billowy-waiter-28954

    09/17/2022, 5:46 PM
    What are you misunderstanding precisely?
  • f

    faint-toothbrush-51643

    09/17/2022, 7:28 PM
    i assumed that it was all added together cumulatively, like transforms
  • f

    faint-toothbrush-51643

    09/17/2022, 7:31 PM
    so if i had an object with its and its parents depth, in order, 1, 2, and 0, it would be in front of an object at depth 1
  • b

    billowy-waiter-28954

    09/17/2022, 9:45 PM
    Sorry I don't understand which object has which depth in your example
  • f

    faint-toothbrush-51643

    09/17/2022, 9:50 PM
    An abbreviated object hierarchy
    Copy code
    dialog:DialogSubscene (depth=8008)
      ui:PrexUIObject (depth=0)
        adv:DialogADV (depth=2)
          mainBox:NineSlice (depth=1)
      backImage:Quad (depth=1)
  • f

    faint-toothbrush-51643

    09/17/2022, 9:52 PM
    I expected
    mainBox
    to be in front of
    backImage
    because 8008+0+2+1 > 8008+1
  • b

    billowy-waiter-28954

    09/17/2022, 9:54 PM
    Yes that should be the case
  • b

    billowy-waiter-28954

    09/17/2022, 9:55 PM
    Oh wait, no
  • b

    billowy-waiter-28954

    09/17/2022, 9:56 PM
    ui:PrexUIObject is below backImage:Quad (depth 0 < depth 1)
  • b

    billowy-waiter-28954

    09/17/2022, 9:56 PM
    So anything inside ui:PrexUIObject (like mainBox) will also be below backImage
  • b

    billowy-waiter-28954

    09/17/2022, 9:57 PM
    You can make objects share the same depth space using
    depthRange = -1
  • b

    billowy-waiter-28954

    09/17/2022, 9:58 PM
    Let's say you indeed want mainbox in front of backImage without changing your hierarchy
  • b

    billowy-waiter-28954

    09/17/2022, 10:00 PM
    You can do it if you set
    depthRange
    of
    ui:PrexUIObject
    and
    adv:DialogADV
    to
    -1
  • f

    faint-toothbrush-51643

    09/17/2022, 10:00 PM
    oooh
  • f

    faint-toothbrush-51643

    09/17/2022, 10:01 PM
    i should make
    ui.depthRange = -1
    then
  • f

    faint-toothbrush-51643

    09/17/2022, 10:01 PM
    (but not adv, i think)
  • b

    billowy-waiter-28954

    09/17/2022, 10:01 PM
    And set depth of mainBox to a value higher than backImage
  • b

    billowy-waiter-28954

    09/17/2022, 10:02 PM
    Yes that works
  • f

    faint-toothbrush-51643

    09/17/2022, 10:02 PM
    i want all of adv to be together and higher and higher than backImage
  • b

    billowy-waiter-28954

    09/17/2022, 10:08 PM
    Then your suggestion is correct and should do it
  • b

    bland-noon-32511

    09/19/2022, 2:39 PM
    my brain is probably farts but how similar is ceramic's rendering engine to flixel's
  • b

    bland-noon-32511

    09/19/2022, 2:42 PM
    or OpenFL's
  • o

    orange-van-60470

    09/19/2022, 5:07 PM
    Not similar.
  • b

    billowy-waiter-28954

    09/19/2022, 5:20 PM
    It’s similar in the sense that in all cases (ceramic, flixel, openfl) it’s about providing a high level API to the end user and translate that into textured quads or triangles that are sent to and rendered by the gpu
  • b

    billowy-waiter-28954

    09/19/2022, 5:21 PM
    It is different in how it does this in the details however
  • b

    billowy-waiter-28954

    09/19/2022, 5:21 PM
    And obviously the high level API is different on each framework
  • b

    billowy-waiter-28954

    09/19/2022, 5:26 PM
    I don’t know the state of this in flixel or openfl, but Ceramic has optimisations that include: multi-texture batching, “free” additive blending (in the sense that using it doesn’t need more draw calls), built-in rendertexture support with automatic ordering of the render targets
  • b

    billowy-waiter-28954

    09/19/2022, 5:27 PM
    I guess some of this exists in a form or another with other frameworks as well. I recall flixel addressing the multi-texture thing by creating texture atlases on the fly but I might be wrong
  • f

    faint-toothbrush-51643

    09/19/2022, 9:47 PM
    Now that I'm doing the dialog and save systems I'm really starting to get into the weeds with the scene system
  • f

    faint-toothbrush-51643

    09/19/2022, 9:48 PM
    - How scene transitions are done - How to preload a scene before switching to it
1...181920...124Latest