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

    early-oil-11497

    01/17/2023, 5:43 PM
    cool
  • g

    gifted-whale-78169

    01/17/2023, 5:55 PM
    just what I've been waiting for
  • a

    ambitious-knife-25690

    01/17/2023, 5:56 PM
    btw mention won't actually show your face anymore
  • a

    ambitious-knife-25690

    01/17/2023, 5:56 PM
    it will show a ceramic logo
  • b

    billowy-waiter-28954

    01/17/2023, 5:56 PM
    Noticed that 😄
  • f

    fancy-parrot-1326

    01/17/2023, 6:29 PM
    It looks very cool! If it's not too much work (and time) for you, could you add the coloring of the white cups with the shader. I found this shader that draws blue circles . #version 330 core void main() { vec4 color=vec4(1); vec2 uv = gl_FragCoord.xy; vec2 uv_mod = mod(uv-50, 100); if ( length(uv_mod-50) < 30 ) color.rgb=vec3(0.2,0.3,0.5); gl_FragColor = color; } I tried to draw just a triangle using Opengl with C++, blue circles appear inside it, but their position does not move with the shape (in my case, the shape is just a triangle). Could you make a simple example using your Ceramic engine, an example when there will be not just a white cup on the screen, but a blue circles colored cup from the code of this shader. This will give me an understanding of how to use shape coloring using a fragment shader. As far as I understand, your engine is able to split the image of a cup into triangles under the hood?
  • f

    faint-toothbrush-51643

    01/17/2023, 6:36 PM
    back up there
  • f

    faint-toothbrush-51643

    01/17/2023, 6:36 PM
    start with a simpler use case
  • f

    faint-toothbrush-51643

    01/17/2023, 6:37 PM
    there's no reason to try to combine that with the particles shader
  • f

    faint-toothbrush-51643

    01/17/2023, 6:38 PM
    have you done some of the basic samples?
  • b

    billowy-waiter-28954

    01/17/2023, 7:04 PM
    Sorry but I have no plan to create very specific samples for users. You should study the existing samples and guides to understand better how Ceramic works. I’m here to help on questions that remain unanswered by the docs (or can point to an existing doc), but’s that’s not something to confuse with providing sample code on demand that will not be helpful for everyone 🙂
  • b

    billowy-waiter-28954

    01/17/2023, 7:09 PM
    Anyway, you can already change the color of a quad or mesh using the color property
  • f

    faint-toothbrush-51643

    01/17/2023, 7:21 PM
    and if you want to do something more complicated you use the shader property
  • f

    fancy-parrot-1326

    01/17/2023, 8:39 PM
    I will try to study the available examples, of course! I'm just trying to understand shaders better, because I believe they will look especially good in the children's game that I was assigned to create for school. For example, I found such a wonderful thing. https://www.babylonjs.com/demos/ink/ Is it possible to do this on the Ceramic engine? There, as far as I understand, shaders are used. But I'm not that good at it yet. I do know more or less the theory (matrices and quaternions), but I don't quite understand what needs to be passed to the fragment shader program so that it draws beautiful pictures. In all examples, the screen resolution, time, and mouse position are passed there. But I don't understand how the drawing turns out. To begin with, I would like to at least use the shaders that are available for public use in order to use them to color different shapes.
  • f

    faint-toothbrush-51643

    01/17/2023, 8:50 PM
    i do not understand what you are actually trying to do
  • f

    faint-toothbrush-51643

    01/17/2023, 8:50 PM
    are you trying to exactly recreate that?
  • f

    faint-toothbrush-51643

    01/17/2023, 8:50 PM
    are you trying to learn about shaders and ceramic in general for use in the future?
  • f

    faint-toothbrush-51643

    01/17/2023, 8:52 PM
    just... read this first https://en.wikipedia.org/wiki/XY_problem
  • b

    billowy-waiter-28954

    01/17/2023, 10:29 PM
    Doing this is definitely possible with Ceramic, but you need to know how to use and write shaders and configure them with uniforms. There are examples of code using shaders and uniforms with Ceramic in this sample (https://ceramic-engine.com/examples/ceramic-demo/, check the source on github, like this code: https://github.com/ceramic-engine/ceramic-samples/blob/master/ceramic-demo/src/Demo.hx#L422-L432)
  • f

    fancy-parrot-1326

    01/17/2023, 10:40 PM
    Oh! Thank you for your valuable guidance!
  • a

    ambitious-knife-25690

    01/19/2023, 2:34 PM
    the debugging in ceramic seems wrong/incorrect
  • a

    ambitious-knife-25690

    01/19/2023, 2:34 PM
    i'm not sure what's going on here
  • a

    ambitious-knife-25690

    01/19/2023, 2:35 PM
    scenes is undefined
  • a

    ambitious-knife-25690

    01/19/2023, 2:35 PM
    I can't get the value of
    logo
  • a

    ambitious-knife-25690

    01/19/2023, 2:35 PM
    is it a source map issue?
  • a

    ambitious-knife-25690

    01/19/2023, 2:38 PM
    it seems like i can get the value of "some things" and not others
  • a

    ambitious-knife-25690

    01/19/2023, 2:39 PM
    logo
    does not exist at runtime, is there some macro magic going on here?
  • a

    ambitious-knife-25690

    01/19/2023, 4:29 PM
    ahhh nevermind, seems like normal haxe -> js behaviour
  • a

    ambitious-knife-25690

    01/19/2023, 4:36 PM
    there we go
  • a

    ambitious-knife-25690

    01/19/2023, 4:40 PM
    no need to restart the whole web server or electron instance every change
1...394041...124Latest