Quote:
Originally Posted by wwwmaze
This is a very primitive motion blur (it just averages the last and current frame).
Basically it's just a tiny mod of Justins "show motion- subtract last frame" preset:
PHP Code:
// simple motion blur
input = 0; // could also do input = input_track(0);
input > 0 || input_track(0) > 0 || input_count() == 0 || input_ismaster() ? (
hf > 0 ? (
gfx_img_getptr(hf) != gfx_img_getptr(input) ? (
gfx_img_free(last_frame);
last_frame = hf;
hf = gfx_img_hold(input);
);
gfx_blit(last_frame);
gfx_a=0.5;
gfx_blit(input,1);
) : (
// first frame: black
gfx_fillrect(0,0,project_w,project_h);
hf = gfx_img_hold(input);
last_frame = gfx_img_hold(hf);
);
);
Maybe it helps a bit.
You can increase the effect by duplicating the preset.
|
While this motion blur is pretty awesome (Thank you again, wwwmaze.
) it only helps for faster motion where this squary movement can't be seen anyway. It seems there is something odd going on which rounds or adds zoom and pan together. Because it looks like zoom happens only every 4th or 5th frame while panning sometimes updates every single frame (as expected) but stops after zooming has updated.
I will take a look if this can be analyzed a bit more in detail. Maybe I should zoom and pan for 10% with linear interpolation or something like that.
But thanks to both of you, for making some thoughts about it.
Good night.
Eli