Object hidden when changing background color (jit.world)

    Mar 08 2021 | 5:50 pm
    I made a 3D shape generator. All the patch works perfectly! But now, I'm trying to change the background color of my jit.world with erase_color (it works), but when I choose a white color (or some other bright colors), my shape disappear even if I change its color settings.
    What I'm doing wrong?
    If you don't see the shape after pressing the space bar, juste change the "animated light" ambient color to white. By the way, I just saw that the behavior of my patch change between Max 7 and Max 8 (on Windows 10) with exactly the same settings. On Max 7, the random xyz rotation of the shape and the light works fine, but on Max 8, the shape disappear when the value are at 0. for xyz. And the light result is also really different. And the speed of anim.drive is about 50% faster on Max8 than Max7.

    • Mar 09 2021 | 3:28 pm
      your whole post processing chain (bloom, blur, brightness) is assuming light shape on a dark background. the easiest way to support the reverse without changing your existing setup may be an optional invert stage (simply a jit.gl.pix at the end of your chain, after p BRIGHTNESS with a simple: [ in 1 ] -> [ !- 1. ] -> [ out1 ]
      this will of course invert all the colors, so you might want to add logic to "pre-invert" your shape colors if invert mode is enabled.
    • Mar 09 2021 | 6:25 pm
      Yeah! It works perfectly :) Thanks Rob!
      Now I'm wondering if it's not better to adapt my setup to allow me to use eraser_color with jit.world. Since there's plenty of background colors I want to try (not just black and white). But if I use the jit.gl.pix tricks, I'm stuck with black and white.
      Is there an easy way to choose the color I want for the background and the color I want for the shape?
      Maybe using another shape like a plane in background and change its color with gl_color ?