Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
APPLE SHAKE: HomeShake ForumShake TutorialsApple Shake

Depth Mattes

Cow Forums : Apple Shake

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
Depth Mattes
by james gervais on Nov 3, 2009 at 6:59:30 am

Hi guys,

Ive gone through the forum here looking for an answer to a problem im having with Depth mattes in shake. im totally new to shake and node based compositing. I come from the old school and ancient Jaleo system and recently have mucked around with Nuke (i cant use nuke anymore as my office was broken into and that nice computer is long gone)....anyway here is my problem.

im working on a 3D animation series and the Maya guys are giving me a bunch of files to comp together.

example (all in tif image sequence):

Character Color
Character Shadow
Character Background Shadow
Character Toon lines
Character Z Depth

Environment Color
Enivronment Z Depth

My problem is when i try and comp in the Z Depth file. I tried to follow the tutorial in shake and do those steps to the 3D stuff im working on and it hasn't worked.

right now im just comping the files together with a multilayer, leaving out the Z Depth for now and i get pretty much what i want that way but i do need to have those nasty Z Depth files in there, along with some motion blur (i think i got the motion blur handled but not to sure yet)

Can anyone out there help in explaining to me step by step what the heck i need to do to make these Z Depth files work.

Cheers
james

Respond to this post   •   Return to posts index

Re: Depth Mattes
by Les Stuck on Nov 5, 2009 at 12:04:41 am

Maya's Z is a different format than Shake's.
It needs to be mapped onto the A channel, inverted, and scaled.

Here's a little macro that should convert for you:
http://www.creativecrash.com/shake/downloads/macros/misc/c/viewmayaz

www.stuckfootage.com

Respond to this post   •   Return to posts index

Re: Depth Mattes
by james gervais on Nov 5, 2009 at 8:12:25 am

Thanks Les for the heads up. Im downloading the viewmayaZ now. When i have that node hooked up to my Z-Depth tiff what do i do next? Which node should i apply? a Z-Defocus? Shake is really tweeking my brain out at the moment and i dont know why.

Cheers

james

Respond to this post   •   Return to posts index


Re: Depth Mattes
by Les Stuck on Nov 5, 2009 at 6:46:17 pm

Maybe you could upload a couple of example frames somewhere
so we can download them and look at them?

www.stuckfootage.com

Respond to this post   •   Return to posts index

Re: Depth Mattes
by james gervais on Nov 6, 2009 at 6:22:47 am

ive uploaded a frame of the project to sendspace and here is the link


http://www.sendspace.com/file/o3w6hh

i hope the link will go to the forum.

Thanks for all the help....its great and much appreciated

cheers
james

Respond to this post   •   Return to posts index

Re: Depth Mattes
by Les Stuck on Nov 6, 2009 at 7:36:07 am

Try pasting this into your Shake node view:

CHAR_COLOR_SC05_SH12_001 = SFileIn("$HOME/Desktop/james_Sc05_Sh12/shot12/Char/CHAR_COLOR_SC05_SH12_001.tif",
"Auto", 0, 0, "v1.1", "0", "");
CHAR_ZDEPTH_SC05_SH12_001 = SFileIn("$HOME/Desktop/james_Sc05_Sh12/shot12/Char/CHAR_ZDEPTH_SC05_SH12_001.tif",
"Auto", 0, 0, "v1.1", "0", "");
ColorWheel1 = ColorWheel(720, 576, 1, 0, 1, 1, 1);
RGrad1 = RGrad(720, 576, 1, width/2, height/2, 1, min(width,height)/4,
min(width,height)/4, 0.5, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0);
Reorder1 = Reorder(CHAR_ZDEPTH_SC05_SH12_001, "rgbar");
Reorder2 = Reorder(CHAR_COLOR_SC05_SH12_001, "rgbar");
Reorder3 = Reorder(RGrad1, "rgbar");
Reorder4 = Reorder(ColorWheel1, "rgbar");
Copy1 = Copy(Reorder2, Reorder1, 1, "z", 0);
Copy2 = Copy(Reorder4, Reorder3, 1, "z", 0);
Move2D2 = Move2D(Copy1, 228.432968, -95.27313, 0, 1, 1, xScale,
0, 0, width/2, height/2, "default", xFilter, "trsx", 0, 0,
0.5, 0, 0, time);
ZCompose1 = ZCompose(Move2D2, Copy2, 1, 0, 0);


Respond to this post   •   Return to posts index


Re: Depth Mattes
by james gervais on Nov 6, 2009 at 11:08:01 am

cool thanks. copied it into the node view and worked great. thanks alot for helping me out. just one more question, cause i know the director and producer are going to want it done.

to defocus the d.o.f. i would add in a defocus node inbetween the copy and reorder node on the Z-Depth part of the node tree. at least that is what im thinking. i hope im not completely off target.

cheers
james

Respond to this post   •   Return to posts index

Re: Depth Mattes
by Les Stuck on Nov 6, 2009 at 8:47:49 pm

Well, I'm no expert, but this is what I came up with.

I'm using the depth pass to do a depth-of-field blur and desaturation.
Then I composed the result over your background plates.

Les

BACKGRD_SC05_SH12 = SFileIn("$HOME/Desktop/james_Sc05_Sh12/shot12/Env/BACKGRD_SC05_SH12.tif",
"Auto", 0, 0, "v1.1", "0", "");
BACKGRD_ZDEPTH_SC05_SH12 = SFileIn("$HOME/Desktop/james_Sc05_Sh12/shot12/Env/BACKGRD_ZDEPTH_SC05_SH12.tif",
"Auto", 0, 0, "v1.1", "0", "");
CHAR_COLOR_SC05_SH12_001 = SFileIn("$HOME/Desktop/james_Sc05_Sh12/shot12/Char/CHAR_COLOR_SC05_SH12_001.tif",
"Auto", 0, 0, "v1.1", "0", "");
CHAR_ZDEPTH_SC05_SH12_001 = SFileIn("$HOME/Desktop/james_Sc05_Sh12/shot12/Char/CHAR_ZDEPTH_SC05_SH12_001.tif",
"Auto", 0, 0, "v1.1", "0", "");
Bytes1 = Bytes(CHAR_ZDEPTH_SC05_SH12_001, 4);
Reorder4 = Reorder(BACKGRD_SC05_SH12, "rgbaa");
Reorder5 = Reorder(BACKGRD_ZDEPTH_SC05_SH12, "z");
Copy2 = Copy(Reorder4, Reorder5, 1, "", 0);
Mult1 = Mult(Bytes1, -1, -1, -1, -1, 1);
Expand2 = Expand(Mult1, -1, -1, -1, 0, 0, 0, 0, 1);
IDefocus2 = IDefocus(CHAR_COLOR_SC05_SH12_001, Expand2, 4, xPixels/GetDefaultAspect(),
"rgba", 41.8, "circle", 1, 1, 5, 1, "R", 0);
Invert1 = Invert(Expand2, "rgba");
Reorder1 = Reorder(Expand2, "rgbar");
Saturation1 = Saturation(IDefocus2, 0.7);
Mask(Saturation1, Invert1, "A", 100, 0, 1, 1);
Reorder2 = Reorder(Saturation1, "rgbar");
Copy1 = Copy(Reorder2, Reorder1, 1, "z", 0);
ZCompose1 = ZCompose(Copy1, Copy2, 1, 0, 0);


www.stuckfootage.com

Respond to this post   •   Return to posts index

Re: Depth Mattes
by james gervais on Nov 7, 2009 at 7:14:22 am

Les thank a whole lot. the script u did is awesome and is going to save my hide from the producers and director. there's nothing like jumping into a new software you've never really used right in the middle of project that has a crazy and almost impossible deadline.

also it's way cool that help is close at hand thanks to forums. makes life a lot easier and less stressful.

mate your a lifesaver

cheers
james

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]