CameraShake
Function
This function is a macro that merely applies noise functions onto the
Pan values of Move2D.
Its a nice example of how to use noise, so you might want to look at the
actual macro parameters. Usually, a Scale is appended after a CameraShake
to make up for the black edges that appear. Keep in mind because of the
concatenation of transformations, this will not double-filter your image,
so speed and quality are maintained.
Parameters
|
Type
|
Defaults
|
Function
|
x,yFrequency |
float
|
1,1 |
The x and y frequency of the shake. Higher
numbers means more jittering. |
x,yAmplitude |
float
|
10,10 |
The maximum amount of pixels moved in the
shake. |
seed |
float
|
0 |
The random seed value. Change this number
if you want different shaking rhythms. |
motionBlur |
float
|
0 |
Motion Blur quality level.
0 means no blur, whereas 1 represents standard filtering. For more
speed, use less than 1. This value gets multiplied by the Global Parameter
motionBlur. |
shutterTiming |
float
|
.5 |
Shutter length. 0 means no
blur, whereas 1 represent a whole frame of blur. Note that standard
camera blur is 180 degrees, or a value of .5. This value gets multiplied
by the Global Parameter shutterTiming. |
shutterOffset |
float
|
0 |
This is the offset from the
current frame at which the blur is calculated. Default is 0, previous
frames are less than 0. |
Synopsis
image CameraShake( image,
float xFrequency,
float yFrequency,
float xAmplitude,
float yAmplitude,
float seed,
float motionBlur,
float shutterTiming,
float shutterOffset,
);
Script
image = CameraShake(
image,
xFrequency, yFrequency,
xAmplitude, yAmplitude,
seed,
motionBlur,
shutterTiming,
shutterOffset,
);
Command Line
shake -camerashake xFrequency yFrequency xAmplitude etc....
Examples
shake lisa.iff -camera -t 1-30
shake lisa.iff -camera .5 2 30 30 -t 1-30
shake lisa.iff -camera -savescript example.shk
|