View Single Post
Old 12-19-2018, 02:49 PM   #14
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
Default

Quote:
Originally Posted by wwwmaze View Post
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 || input_track(0) > || input_count() == || input_ismaster() ? (
  
hf ? (
    
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
Eliseat is offline   Reply With Quote