Skip to content

Latest commit

 

History

History
91 lines (52 loc) · 2.57 KB

README.md

File metadata and controls

91 lines (52 loc) · 2.57 KB

slitscanner

Slitscan video effect in Processing

Example video

This tool simulates the slitscan effect by delaying pixels in a video by a certain amount of frames depending on the darkness of a reference gradient image.

Important:

This script uses a semaphore object from java.util.concurrent so if you are getting wierd errors executing it you'll probably need to install JDK 7 or later. JDK 8

Usage:

  1. Specify a video file path.

IMPORTANT : Videos must be located in the project's 'data' folder.

Video must be .mov type (only version tested, maybe other quicktime compatible types are supported)

  1. Set the output path.

  2. Check video details and set the width and height.

  3. (Optional) Set max delay. This can be changed while hte program is running.

Webcam mode:

  1. Set WEBCAM_MODE to true.
  2. Run the script, it will output a list of the available resolutions for your webcam and then probably crash
  3. Set WEBCAM_NUMBER to the desired camera number in the list
  4. Set VIDEO_WIDTH and VIDEO_HEIGHT to that camera's resolution

Modes (GRADIENT recommended):

GRADIENT : Uses the pixels of a gradient to apply the effect

SLITS (DEPRECATED): Only in the up direction, might run a bit faster than gradient mode.

Key controls:

Gradient controls:

g : toggle gradient visibility (controls still work while gradient is not displayed) ####Press 1 : Stardard GRADIENT mode w: up gradient

a: left gradient

s: right gradient

d: down gradient

Click to move the gradient around ( will produce wierd edges)

Press 2 : Symmetrical GRADIENT mode

q,w,e,a,s,d,z,c : Different directions/polarities for symmetry (switch to the gradient view and you'll see what I mean)

Click/drag to move the point of symmetry around

Press 3 : WORMHOLE mode

Click and drag to place the wormhole

9 : Decrease wormhole size

0 : Increase wormhole size

Press 4 : PAINT mode

Click and drag to paint the gradient layer

[ : Decrease brush size by 10

] : Increase brush size by 10

Delay controls:

Increased max delay means that the gradient is interpreted with a higher resolution, but also means more time delay between the top and the bottom of the video.

"=" : Increase max_delay by 1

"-" : Decrease max_delay by 1

"SHIFT" + "=" : Increase max_delay by 10

"SHIFT" + "-" : Decrease max_delay by 10

Author:

Etienne Richan

12/07/2015