Saturday 29 July 2017

Keyframing exposure values in After Effects

All of my animated renders are through the render farm, have been composited in Nuke and the final stage is to put the final composition together in After Effects, adding light rays, blurs etc and to use the Dynamic Link to see the After Effects update in 'real time' in Premiere and then the final edit.

Below are some screen shots taken in After Effects - where I have been key framing the exposure values, luminosity and temperature levels to create similar lighting and warmth levels to match the background timelapse footage sequences....

Thursday 27 July 2017

Creating a water droplet effect in After Effects

Creating water droplets in After Effects.
I've used three light ray effects to achieve this.
Light ray 1 highlights the ice geometry in Maya (highlighted with the red box below). I've set a key on the start and end of the timeline and moved the centre point, so that the light is animated.
I then applied two more light rays and set a key frame for the position and intensity. Having them staggered, and the intensity increase and decrease, gives the appearance of a droplet forming and then dropping
 Droplet (light ray) falling

Setting a key frame for the contrast/gain settings in Nuke

Setting a key to change the range values in Nuke.
For this shot the iceman melts in the foreground - it's the end shot of the melting sequence and I wanted to play with the opacity, so I set a key frame at the start (highlighted red rectangle on the left of the timeline below) and another at the end and changed the value sliders on the right.
Using the ID passes, I was able to isolate the men, by selecting the rgba_green channel in the ranges of the colour correct node, and apply the transformations.
Image below with full contrast/gain values
 Image below with the contrast/gain values adjusted, which gives the appearance of a fading colour



Saturday 22 July 2017

DIRECTIONAL LIGHT WRAP....

For one particular shot, there was too much hair noise on the left, which really became apparent when a regular lightwrap was applied....so, if I want the lightwrap to appear from one side only, I can apply a directional lightwrap
Below: Lightwrap matte layer, with a bevelled alpha effect, showing just the light wrap on the left
Composited image, showing the light wrap on the right hand side only
Image below: without lightwrap...there is a visible dark grey line around the edge of the hand, which shows up particularly in front of the lighter background
With the lightwrap applied

See additional notes highlighted in green:

Adding a lightwrap blur around keyed green screen footage in After Effects:
Malcolm Finnie at DJCAD created this great workflow instruction for creating a lightwrap in After Effects.
Essentially this process takes a matte from the foreground image (in the case my green screen footage of Kerry) and creates a duplicated outline, slightly blurred, and reflecting the light levels of the background below (in this case sky).

The process:
You will need a foreground and background on separate layers.
Make sure each layer is pre-composed.
  • Select your foreground layer and add Effects>Blur & Sharpen>Channel Blur
  • Set Alpha Bluriness>1.0
  • Under Edge Behaviour, tick Repeat Edge Pixels
  • Right Click this layer and choose Pre-Compose...(choose Move All Attributes to the new composition)
  • Name it Foreground Blurred


Duplicate the Background layer and call it Light Wrap
Place the Light Wrap layer on top of Foreground Blurred
  • On Light Wrap choose Effects>Channel>Set Matte
  • Set Take Matte from layer > Foreground Blurred
  • Tick Invert Matte
  • Choose Effects>Blur & Sharpen>Fast Blur (depending on your version of AE, search for this in the effects library - it may be listed as obsolete but can still be used)
  • Set Blurriness > 30
  • Tick Repeat Edge Pixels
  • Set Transfer Mode > Add
  • Adjust Opacity as necessary
  • Duplicate Set Matte and move to the bottom of the list
  • Untick Invert Matte
Directional Light Wrap

  • Duplicate foreground blurred
  • Name this layer Light Wrap Matte
  • Choose Effects>Generate>Fill
  • Set colour>black
  • Choose Effects>Perspective>Bevel Alpha
  • Set Edge Thickness>20
  • Set Light Angle to match your scene
  • Select the light wrap layer
  • Set Track Matte>Luma Matte "Light Wrap Matte"



Shot_10 - adjusting the scale of the CG elements

Shot_10 - adjusting the scale of the iceman to suit the live action movement...
and playing with After Effects light rays effects, applied to the .exr CGI footage
Original playblast version.

Friday 21 July 2017

AFTER EFFECTS: Adding a lightwrap blur around keyed green screen footage

Adding a lightwrap blur around keyed green screen footage in After Effects:
Malcolm Finnie at DJCAD created this great workflow instruction for creating a lightwrap in After Effects.
Essentially this process takes a matte from the foreground image (in the case my green screen footage of Kerry) and creates a duplicated outline, slightly blurred, and reflecting the light levels of the background below (in this case sky).

The process:
You will need a foreground and background on separate layers.
Make sure each layer is pre-composed.
  • Select your foreground layer and add Effects>Blur & Sharpen>Channel Blur
  • Set Alpha Bluriness>1.0
  • Under Edge Behaviour, tick Repeat Edge Pixels
  • Right Click this layer and choose Pre-Compose...(choose Move All Attributes to the new composition)
  • Name it Foreground Blurred


Duplicate the Background layer and call it Light Wrap
Place the Light Wrap layer on top of Foreground Blurred
  • On Light Wrap choose Effects>Channel>Set Matte
  • Set Take Matte from layer > Foreground Blurred
  • Tick Invert Matte
  • Choose Effects>Blur & Sharpen>Fast Blur (depending on your version of AE, search for this in the effects library - it may be listed as obsolete but can still be used)
  • Set Blurriness > 30
  • Tick Repeat Edge Pixels
  • Set Transfer Mode > Add
  • Adjust Opacity as necessary
  • Duplicate Set Matte and move to the bottom of the list
  • Untick Invert Matte
Image below showing the After Effects UI with the various light wrap instructions and effects highlighted in red.

Tip: Play the timeline to watch out for hair noise. I didn't notice hair noise in the static images, and then needed to go back and adjust the black and white clip planes in the Keylight 1.2 process and then pre-compose again, to get a clear image.


After Effects: Keylight 1.2. Removing the green screen

Using the keylight effect in After Effects:
Select Effect> keylight 1.2.
Drag and drop the keylight 1. 2 effect (highlighted in red on the right) onto the green screen layer
Select eyedropper tool and click on the green screen
Select 'Screen Matte'
Adjust the black and white clips until the black is completely black and the white completely white.


NUKE: isolating CGI elements using an ID pass

Using an ID pass, to isolate a CGI element within the scene, to create a blur and colour adjustments, to just that particular area.
In this case the tree bark. The render was too sharp, so I adjusted the ranges, just on the rgb_red channel (the tree geometry had a red surface shader applied to it in Maya prior to render)
Image Below:
ID pass adjustments. Red rectangles highlight the ID pass in the node graph, the final image in the render view and the range and rgb channel selector on the right.
Bark with the blur node deactivated. Bark looks sharp
Blur node on bark activated
Connecting the ID pass to the colour correct node, so that the individual R G B channels can be selected

Wednesday 19 July 2017

NUKE COMPOSITING: Green Screen Keylight, Zdefocus and Blur nodes

Now that my rendered exr files, with multipasses are ready, I can composite the scenes in Nuke.
Below: Node graph showing (green background) my CGI elements, with the shuffle nodes, which split out the passes. Colour correct nodes are applied to the passes so I can adjust the refraction, reflection etc accordingly.
My ID pass (small square to the right of the green background) includes my CG elements, each with a shader applied in Maya....in this case, red for the tree, green for the men and blue for the ice. I can then isolate any particular element if necessary.
The orange/mustard box shows my timelapse footage elements, this time with a transform node included in the pipeline - this is for any scaling etc that I may want.
The purple box shows the green screen elements. My green screen footage was shot at 4K resolution, so I've applied a reformat node, so the output will be HD 1080p
 Below: Green screen footage 'read' node > reformat> keylight. The properties for the keylight node are highlighted in the red rectangle on the right. The smaller red rectangle shows the icons for the eydropper tool. Initially this shows up as a black square iceon (adjacent to the colourful one!)
'Click' on the black square and then 'CTRL Click' on the green screen area of the footage, in the viewer .
 Below: Click on Screen Matte and then adjust the black and white clip planes, so that all the black is completely black and all the white is completely white, with no grain.
 Below: A Gaussian blur node is applied below - blur node ringed in red
 Below: to turn off the blur node temporarily, so that the 'difference' is easy to spot, simply highlight the node by clicking on it and press 'D'. Press D again to reactivate.
 Below: The CGI elements using the Zdefocus node, and adjustments to the focal plane set up - the channel is set to the CAMZ_depth channel. Far = 0
Green is in focus, and I've adjusted the sliders to create more or less blur, as shown in the images below



Monday 17 July 2017

Nuke interface with Zdefocus nodes. Maya ice figures animated

Nuke tiff sequence imported into After Effects
Nuke script with blur and Zdefocus nodes
 Nuke interface with shuffle nodes for the render passes
Imported sequence in After Effects, with a light ray animated behind
 Nuke inteface with colour correct node applied to the render passes



Friday 14 July 2017

Nuke: Zdefocus and shuffle nodes


Final renders all downloaded from the render farm!
Now into compositing using both Nuke and After Effects.
My render files are open_exr files, all with associated passes.
Using Nuke and the 'shuffle' node, plus a colour correct node, I can adjust the levels for each pass.
Below, final render shot in Maya - showing the perspective panel and geometry and a render test
Nuke interface using a background node (lilac rectangle) to differentiate between node groups
Colour correction node (highlighted in pale yellow), using the ID pass
Colour correction node [tab>colorcorrection] outlined in red - applied to the specular pass. Double clicking on the colour correction node, brings up the properties dialogue box and then I can adjust the levels
First view of the composited image 
Selection of the 'reflection node' (highlighted yellow) and then press '1' shows just the reflection pass in the viewer. I can then adjust the properties to suit
Zdefocus node, with an inverted node applied. I can then alternate between the 'result' and 'focus plane set up' to adjust the focal point and create a 'tilt shift' effect. The red areas of the tree are closest to the camera, the blue furthest away (therefore having more blur) and the green is the focal point. 
Dialogue box (highlighted in cream on right) explains the focus plane set up
Composition still, showing the 'focal point' centre.
Next step is to import into After Effects and create some light rays

Saturday 8 July 2017

Playing with After Effects today, and creating the opening titles for THAW.
I've set some animation to the opacitiy of the lens flare, so it is more convinicing as it passes behind the frozen branch.
I've chosen a simple dissolve on both the fonts, and have created them in 3D and animated the letters in sequence....

Wednesday 5 July 2017

Renders prior to NUKE

A couple of rendered shots, all ready for Nuke.
Both are renders from Maya, and the top image has a Light Ray effect applied in After Effects.
All shots apart from the final one are through the render farm, and I aim to start compositing next week in Nuke - and possibly After Effects.



Monday 3 July 2017

Creating blendshapes in Mudbox and exporting to Maya

Final blend shapes for shot_19

I've been creating some blend shapes for the iceman, to allow for a subtle change in his expression, for a final close up shot.
Below: Mudbox screen shots showing the view panel, the sculpt layers on the right. The red indicates the mask tool, for when creating a blinking eye.
For some weird reason that we can't discover, the blend shapes, when exported directly to Maya, created irregular deformation of the legs; so the method below is based on the old style method of exporting blend shapes into Maya


Process:

MAYA

Select geometry
Select 'Send to Maya' (drop down menu under 'File'

Go to: MUDBOX

Create group in Sculpt Layers
Create new layer
Sculpt desired expression e.g smile. Once happy with the sculpt, save.
Duplicate layer (at this point the geometry will show double strength and will look very distorted. Simply turn off the visibility of the new duplicated layer.
Select the original layer and rename for either left of right. E.g  'L_smile'
Select the mask tool and also select the mask icon (at the top of the layers menu).
This will create a red mask brush.
Apply the red mask to the geometry that is to remain unaffected by the blend shape. E.g for the layer 'L_smile' apply a mask to the right hand side of the face. Once done
Turn off visibility of the layer.
Select the duplicated layer and re-name. E.g 'R_smile'. Turn on visibility. Apply mask

Repeat the above for all blend shape expressions.

Select the geometry (in object tab, adjacent to the layers menu)
Enable one blend shape layer at time.
e.g Left Smile
Create a folder in the Maya project, to save the blend shapes.
Export selection as an .obj file.

Go to: MAYA

File > import obj files
(They appear as geometry in the Outliner)
Re-name clearly
Once all obj files are imported, select them in order of blend shape (however preferred), making sure that the main geometry is the last to be selected)
Hide obj files in Outliner
Open Animation Deformer Tab
Select Blend Shape option box
Rename blend shape node
Open blend shapes, by selecting 'windows' > 'animation editors' > 'blend shapes'
Blend shapes should appear and be working!