Motion Blur plus BlendMode(ADD)

edited July 2015 in How To...

Hi!

Is there anyway of achieving a motion blur effect other than drawing a rect with low opacity? Using the blendMode unfortunately disables the motion blur effect.

the motion blur I am talking about:

void draw() {
  fill(255,50);
  rect(0,0,width,height);
}

Thank you!

Tagged:

Answers

  • Just to confirm, you are talking about this effect? http://bit.ly/1GGQ4NC

  • yes, exactly thats what I mean

  • Answer ✓

    Without completely understanding what your code does I suggest setting the blend mode back to it's default after you've rendered your ADD stuff

    // Draw normal graphics
    
    blendMode(ADD);
    // Draw graphics that need ADD
    
    blendMode(BLEND);
    // Blend mode is back to default
    // Draw normal graphics again
    

    And to answer the question - yes, you can write a shader that uses motion interpolation and motionmaps and then applies variable blur according to the motion vectors, but I suggest you keep it simple. : )

  • Ah thank you! thats easy enough. I think I can get it to work like that. never worked with shaders yet, so I 'D definitely prefer the first solution

Sign In or Register to comment.