apexearth

Members
  • Content Count

    2
  • Joined

  • Last visited

About apexearth

  • Rank
    Newbie

Contact Methods

  • Twitter
    apexearth
  1. Thanks for the reply! The multiply blend mode has a pretty good effect, but it does still leave a gray trail. I've thought about directly reading and writing the pixels too but I think that pass through the CPU will kill performance too much. I think a SUBTRACT blend mode might be able to do the trick for me, thought I don't see that available in Pixi.js. I'm guessing that blend mode is left out for a reason. (?) Update: Looking closer, the blend modes seem to all work in multiples. I'm not sure a subtract blend mode would work. On the flip side, I'm able to get beautiful fades to white. If I could just invert that somehow...
  2. I have application made using Pixi.js and it uses a WebGLRenderer. I'm preserving the drawing buffer and not clearing before render: { preserveDrawingBuffer: true, clearBeforeRender: false } This allows me to create trails as objects move around. I want the trails to fade out over time, so I apply a transparent black rectangle on top over every rendering. This works, but the fade out eventually rounds off to gray. I want a complete fade to black. I've tried using a ColorMatrixFilter filter with a lowered brightness on my root container, hoping it would cause a fade effect. It didn't cause any fade effect, instead just causing everything to be slightly darker. If that had worked, then a custom filter could help to do the job. How can I get a slow gradual fade to complete black for the trails of my rendered objects? I've also asked this on StackOverflow: https://stackoverflow.com/questions/44866613/trailing-fade-to-complete-black-with-pixi-js-and-webglrenderer