Blur edge of movies to black?


    Mar 14 2008 | 5:43 pm
    Hi there,
    We've all seen it on photos where the outside of the image blurs/fades to black, well I'm now trying to do it to videos. I'm a bit of a beginner still on Jitter so go easy with me if its simple! I'm playing jit.qt.movie in colormode uyvy through a jit.gl.slab and then a jit.gl.videoplane. Preferably I would like to put the fading technique between the slab and the videoplane.
    Does anyone have any idea how to do this? I would post my patch, but its far too big.
    Cheers for any help,
    Ben

    • Mar 14 2008 | 6:54 pm
      here is a simple way to this with creating a mask on the alpha channel, the mask creation part comes from one of Andrew Benson's recipes (#09).
      you could also use black and white images as masks or explore jit.epr or jit.bfg for some more dynamic mask generations .
      hope it helps :)
      Quote: benjohnson wrote on Fri, 14 March 2008 18:43
      ----------------------------------------------------
      > Hi there,
      >
      > We've all seen it on photos where the outside of the image blurs/fades to black, well I'm now trying to do it to videos. I'm a bit of a beginner still on Jitter so go easy with me if its simple! I'm playing jit.qt.movie in colormode uyvy through a jit.gl.slab and then a jit.gl.videoplane. Preferably I would like to put the fading technique between the slab and the videoplane.
      >
      > Does anyone have any idea how to do this? I would post my patch, but its far too big.
      >
      > Cheers for any help,
      > Ben
      ----------------------------------------------------
    • Mar 14 2008 | 8:24 pm
      You also use the tr.vignettes.jxs shader with a slab. There's an example under "slab-helpers, transition" Vade's v001 shaders also have a vignette element, in the lomo shader.
      dan
    • Mar 14 2008 | 9:41 pm
      as Dan mentions the transition shaders , there is tr.edgeblend.jxs that does exactly what you need , i guess
      Quote: skyvat wrote on Fri, 14 March 2008 21:24
      ----------------------------------------------------
      > You also use the tr.vignettes.jxs shader with a slab. There's an example under "slab-helpers, transition" Vade's v001 shaders also have a vignette element, in the lomo shader.
      >
      > dan
      ----------------------------------------------------
    • Mar 15 2008 | 12:47 pm
      I tried the ideas of using specific shaders but was having no joy. I loaded up the help file on the 'tr.edgeblend.jxs' shader and it was just what I was looking for, but then when I placed it in my patch it wouldn't work. First I tried changing the shader on the yellow slab, and that didn't work. So figuring that the shader didn't like two inputs, I tried adding another slab before the videoplane. Didn't work either.
      I need to be able to crossfade between the two videos still. Does anyone know what I could do to make this work?
      Note: this is a very cut down version of my patch but its got the basic parts in that need to be changed.
      Thanks for any help
      Regards,
      Ben
      max v2;
    • Mar 15 2008 | 12:50 pm
      Oops, the slab that I was calling the yellow one.... was the one using the co.normal.jxs shader. I think I forgot to change its colour.....!
    • Mar 15 2008 | 2:33 pm
    • Mar 15 2008 | 2:44 pm
      I think you need to start a new topic for this, you just replied to mine. You will undoubtedly get a better response if you put it in your own topic.
      Regards,
      Ben
    • Mar 16 2008 | 2:04 pm
      Figured it out, it seemed to just be a matter of adding @blend_enable 1 on the videoplane. Daft the things you miss isn't it! Cheers for the help guys.
      Regards,
      Ben