Shake notes
From DreamsteepWiki
Shake Notes
RETIMING
// shake bus2.40-79 x2# .jpg -t 1-20 -fo toto.#.iff -v Halfs the timing of the clip. // shake bus2.40-79 x.5#.jpg -t 1-80 -fo toto.#.iff -v Doubles the timing of the clip.
additional libraries needed
libstdc++.so5 (just install )
yum install libstdc++.so5
IMAGE PROCESSOR (SETS UP ALPHAS FOR MULTITEXTURING)
//ALPHA BLACK CORNER CREATOR (FOR MULTI TEXT IFF COMPS)
BLACK = Color(FILE_IN.width/100, FILE_IN.height/100, 1, 0, red,
red, 1, 0);
FILE_IN = SFileIn("//Mithra/G/SUNRISE_TWO/texture/asphalt.iff",
"Auto", 0, 0, "v1.0", "0");
IRetime(FILE_IN, 0, autoInPoint, 1e+007, "Freeze", "Freeze");
WHITE = Color(FILE_IN.width, FILE_IN.height, 1, 1, 1, 1, 1, 0);
Move2D1 = Move2D(BLACK, FILE_IN.width-(BLACK.width/2), FILE_IN.height-(BLACK.height/2),
0, 1, 1, xScale, 0, 0, width/2, height/2, "default", xFilter,
"trsx", 0, 0, 0.5, 0, 0, time);
Reorder2 = Reorder(FILE_IN, "rgb0");
Layer1 = Layer(Move2D1, WHITE, "Over", 1, 0, 0);
Reorder1 = Reorder(Layer1, "000r");
OUT = Layer(Reorder2, Reorder1, "Over", 0, 0, 0);
EXTRACT Z DEPTH
//extract z depth from image
GROUND_RL = SFileIn("//Mithra/G/SUNRISE_TWO/render/GROUND_RL/POLY_ED_4.iff",
"Auto", 0, 0, "v1.0", "0");
Bytes1 = Bytes(GROUND_RL, 4);
Reorder1 = Reorder(Bytes1, "zzzz");
Mult1 = Mult(Reorder1, -1*brightness, -1*brightness, -1*brightness,
1, 1, float brightness = 400);
ALPHA HAZE ON EDGES
//create Alpha haze on edges effect
SFileIn1 = SFileIn("//",
"Auto", 0, 0, "v1.0", "0");
IRetime(SFileIn1, 0, autoInPoint, 3501, "Freeze", "Freeze");
ColorX2 = ColorX(SFileIn1, r, g, b, 0, 0);
ColorX3 = ColorX(SFileIn1, 0, 0, 0, a, z);
Blur4 = Blur(ColorX3, 13.7, xPixels, 0, "gauss", xFilter, "rgba");
Invert1 = Invert(ColorX3, "rgba");
Blur3 = Blur(Invert1, Blur4.xPixels, xPixels, 0, "gauss", xFilter,
"rgba");
Layer15 = Layer(ColorX2, Blur4, "Over", 0, 0, 0);
Mask(Blur4, Blur3, "A", 100, 0, 1);
SKYBOX SIX IMAGE LAYOUT
//SKYBOX UV MAPPER
//LAYOUT SIX IMAGES IN THE STANDARD MAYA UV CUBE PATTERN BASED ON IMAGE X AND Y RES
Color1 = Color(front.width*3, front.height*4, 1, 0, red, red,
1, 0);
back = SFileIn("//Mithra/E/tmp/fr.tga", "Auto", 0, 0, "v1.0",
"0");
front = SFileIn("//Mithra/E/tmp/fr.tga", "Auto", 0, 0, "v1.0",
"0");
IRetime(front, 0, autoInPoint, 1e+007, "Freeze", "Freeze");
left = SFileIn("//Mithra/E/tmp/lf.tga", "Auto", 0, 0, "v1.0",
"0");
IRetime(left, 0, autoInPoint, 1e+007, "Freeze", "Freeze");
right = SFileIn("//Mithra/E/tmp/rt.tga", "Auto", 0, 0, "v1.0",
"0");
IRetime(right, 0, autoInPoint, 1e+007, "Freeze", "Freeze");
right2 = SFileIn("//Mithra/E/tmp/up.tga", "Auto", 0, 0, "v1.0",
"0");
IRetime(right2, 0, autoInPoint, 1e+007, "Freeze", "Freeze");
right3 = SFileIn("//Mithra/E/tmp/dn.tga", "Auto", 0, 0, "v1.0",
"0");
IRetime(right3, 0, autoInPoint, 1e+007, "Freeze", "Freeze");
Move2D1 = Move2D(front, front.width, 0, 0, 1, 1, xScale, 0, 0,
width/2, height/2, "default", xFilter, "trsx", 0, 0, 0.5,
0, 0, time);
Move2D2 = Move2D(back, front.width, front.width*3, 0, 1, 1, xScale,
0, 0, width/2, height/2, "default", xFilter, "trsx", 0, 0,
0.5, 0, 0, time);
Move2D3 = Move2D(left, 0, 0, 0, 1, 1, xScale, 0, 0, width/2,
height/2, "default", xFilter, "trsx", 0, 0, 0.5, 0, 0, time);
Move2D4 = Move2D(right, front.width*2, 0, 0, 1, 1, xScale, 0,
0, width/2, height/2, "default", xFilter, "trsx", 0, 0, 0.5,
0, 0, time);
Move2D5 = Move2D(right2, front.width, front.height, 0, 1, 1,
xScale, 0, 0, width/2, height/2, "default", xFilter, "trsx",
0, 0, 0.5, 0, 0, time);
Move2D6 = Move2D(right3, front.width, front.height*2, 0, 1, 1,
xScale, 0, 0, width/2, height/2, "default", xFilter, "trsx",
0, 0, 0.5, 0, 0, time);
Layer1 = Layer(Move2D1, Color1, "Over", 1, 0, 0);
Layer2 = Layer(Move2D2, Layer1, "Over", 1, 0, 0);
Layer3 = Layer(Move2D3, Layer2, "Over", 1, 0, 0);
Layer4 = Layer(Move2D4, Layer3, "Over", 1, 0, 0);
Layer5 = Layer(Move2D5, Layer4, "Over", 1, 0, 0);
Layer6 = Layer(Move2D6, Layer5, "Over", 1, 0, 0);
SHAKE CHEATS
To Change the tyiming of a clip
use a timex node,set the global range accordingly (for example double the number for half the speed), set the newTime value to "time" plus your speed , like "time/2" ,"time*2" ect
RENUMBERING FRAMES
shake "J:/MGATE_VIDEO/COMPOSITES/MGATE_1TO1000/TREES4_650TO1000_ALPHAFIX/TREES_ADDON_RENDER4.@.iff" -t 1-10 -fo "J://MGATE_VIDEO/COMPOSITES/MGATE_1TO1000/TREES4_650TO1000_ALPHAFIX/toto.#+350.iff" -v pause
TO COMPOSITE WITH ALPHA CHANNEL :
USE A LAYER TYPE-
Z BUFFER
@ for frame number
Macros
EXPRESIONS
r g b a z = red green blue alpha z depth

