Fade to black not working properly

    Jun 18 2014 | 9:18 am
    I don't know why this patch does not work. It should load a movie and then fade it to black. And then when you load the next movie, we should see the new movie which starts to fade to black and so forth
    But the thing is once you upload a new movie, it starts by showing the old movie, than showing the new movie and then starting to fade to black.
    I thought I was supposed to have a new movie already once a "read" message comes out through the dumpout output But it seems I still have the old movie. Any suggestions on how to fix this?
    Thank you!

    • Jun 18 2014 | 4:01 pm
      one of the problems with this technique (crossfading via a gl.slab), is that you always need an input coming into the left input in order to output the input in the right.
      an alternative is to use gl.videoplane blend-modes. you can fade in and out with the videoplane color attribute. for the default alpha blend mode, you simply modulate the color alpha value, but you could also try additive blending (@blend add), and they you will have to modulate the color r g b values.
      maybe this will help come up with a working solution.
    • Jun 18 2014 | 4:16 pm
      Thank you for the explanation. In the meantime I found vade's fade shader, but I still wanted an answer for this weird behavior. About your answer, I will try to switch the 2 inputs just to see if the same thing happens.
      I am a bit reluctant to play with blends as the patch above comes from a bigger patch where I use extensively other types of blends for alpha channel mixing. :) But I will definitely try this as well after I finish with this project.
      Once again thank you so much for your help!!