A User Explains
Introduction
| Stills
| Keys
| Edges
| Backgrounds
| Groups
| Tips
| Controls
| A User explains
A User Explains
The usual method of working
with morphing clips, involves 'looking' at the Source and Destination
input clips, by using the buttons on the far left of the screen
(as you would in the DL Warper). However, this causes a rather nasty
conflict in Morpheus.
To see what happens try the
following, as an experiment:
-
load two clips of 30 frames.
-
view one, Source or Dest
(it does not matter which), by using the clip viewing buttons on the left
of the screen.
-
'scrub' up and down the DL
timeline.
Notice that the value in the
Work Frame value (2nd column first button) DOES NOT reflect
the frame you are currently viewing! e.g. you may be looking at frame 15
but the Work Frame value still reads 1. This means that Morpheus
thinks you still want to define, and change curves on frame one.
This becomes a real nightmare, as you would expect the two values to be
'in sync' at all times.
Also, if you work this way,
you can NOT set keyframes for any changes to your warping curves!
(Note: that switching on the DL AutoKey will not
work, as this only controls the setting of keyframes in the Anim
curve window).
CONCLUSION:do not do it
like that, do it like this!
The 'trick' to working with
Morpheus in an efficient and sensible manner:
-
locate the Skip Proc(essing)
option, 3rd column, fourth button.
-
make sure that it is switched
ON. (This might be the Default State, but check it anyway).
-
you can now ignore the
Source and Dest buttons and, work whilst looking at the Result
buffer.
Basically, you have instructed
Morpheus not to bother to calculate the result of what it's doing, by switching
on the Skip Proc option. So now view the Result buffer by
selecting it on the far left.
The next question is, "if
I don't use the Source and Dest, buttons how do I
see the clips I want to work with?"
-
locate the first blue 'pop up'
option list, which reads: S Curves, D Curves and Result,
1st column, first button.
This is now used as your
'viewing' window to display the incoming clips.
-
try switching to D Curves
and scrub the timeline. Notice that the 'actual' frame number and
the Work Frame number both update in sync!
-
switch back to S Curves,
change the frame, and you can now see your Source clip.
Note: if you change a
warping curve, Morpheus will now set an auto keyframe for you at
the synchronised viewing frame and work frame!
Tip: If you either
leave on the Skip Proc option, or switch it on before
you leave Morpheus, then when you load Morpheus again this will 'cure'
the corrupted frame you see when entering for the first time. In fact,
such corruptions will resolve by themselves, but by doing this you are
not distracted by them, and Morpheus will load a
little faster.
Note: it is pointless
viewing the Result buffer, as we havent done anything yet.
Note: if you type,
or drag, into the Frame Number, instead of manually scrubbing into
the timeline, then you will have to use the Preview switch,
just above AutoKey, to refresh the frame, or if that fails,
jog to another frame.
Doing It: Building the Curves.
Having grasped the concept of
working with Skip Proc on, you can now start to define your warping
curves. (If there are curves already defined, you may like to trash them.
Go to Ctrl page 2, and press on Delete All Curves, you will
be asked to Confirm this action).
Morpheus uses free form warping
and distorting Bezier curves, drawn over the Source and Destination
images.
Generally, you choose an
image feature in the Source image, and draw a curve over it using
the drawing tools provided. This generates two identical curves - one over
the Source image, and one over the Destination image. You
then switch to view the Destination image, and adjust the D curve
to match the corresponding feature in the Destination image.
Here we go:
-
make sure you still have the
S Curves option selected to view the Source image.
-
now you need to define your
first curve by interacting with the on screen Tool Bar.
-
the first thing you need to
know is, which icon represents how to start a new curve?
-
locate the icon
third from the right hand end of the Tool Bar.
-
select it, click on it and it
will change colour.
-
and start to click down points
where you would like to have control over your Source image.
Notice: that after the first
point has been 'dropped' onto the picture the Tool Bar icon changes
to
on the far
left. Don't worry this only means that Morpheus is adding new points to
the end of a curve (a useful option if you need to extend the end of a
curve later).
-
try experimenting with only
a few points initially.
Now you may like to change the
position of one of your points.
-
locate the icon
second from the left-hand end.
-
click and drag on your point,
to change it's position and control handles.
Note: the S Curve
is pink by default (you can change this via the colour box at the
bottom of column 1), and as you move the point around the yellow D Curve
will be revealed. If this becomes distracting then switch off the display
of the D Curve by selecting the Hide Other option, 2nd column
sixth button down. (This acts as a 'toggle' switch, e.g. if you choose
to work with the yellow D Curve then the pink S Curve will
become hidden). You can change the colour of the D Curve via the
colour box at the bottom of column 2.
Gaining better control over
the curves.
So we have seen how to start
a new curve, add points to the end of the curve and how to move points
on the curve.
Let's reposition the whole
curve.
-
locate the icon
fourth from the right hand end of the Tool Bar.
-
select it.
-
click on one of the existing
control points (if you 'miss' then the action will have no effect, and
the icon will remain on the screen as a reminder of the selected function).
-
you can now drag the whole curve
around to a new position.
Try setting a keyframe with
this technique.
-
go to another frame in the sequence
-
move your curve or point (the
'mode' is usually changed automatically, to pick/move after each action).
-
jog one frame backwards or forwards
and return to the frame you just made your move on.
-
a small key symbol
will appear at the far right hand end of the Tool Bar, indicating
that a keyframe has been set.
You can use the ][< Last
Key and Next Key >][ buttons (1st and 2nd columns third buttons
down), but the Work Frame will now lose sync with the actual
frame. It is much better to either type in the frame number, or scrub the
timeline and watch for the key symbol.
To add a point into a
curve.
-
locate the icon
fourth from the left-hand end.
-
click on an existing
point and drag away to add a new one.
Note: you can only
add in one direction, to the right of the existing point, so be careful
to use a convenient point that already exists.
To delete a point.
-
locate the icon
third left.
-
click on the point that you
want to remove.
Note: Morpheus allows
a different number of points on the same curve between keyframes.
Of course, this could be very useful but if you want to delete the same
point from all the keyframes that you have set, then you may have to do
this keyframe by keyframe. However, you must have at least
two points on your curve. If you try to delete one of just two points
then Morpheus will consider this to be an illegal action AND WILL DELETE
BOTH S AND D CURVES AUTOMATICALLY.
Note: Undo
(far right), does work, but for best results do not move to another frame
before trying it!
Deleting a whole curve across
the entire timeline
-
locate the
icon second right.
-
click on a point remove the
curve.
Joining, breaking and controlling
the curve handles.
By default all the curve
handles are in a 'broken' state. That is, you can move a handle either
side of single point and they will move independently from each other.
However, you may want continuity between the control handles.
-
locate the icon
in the middle of the Tool Bar.
-
click to select it.
-
click on an existing point.
-
You will see
-
the handles 'snap' into a straight
line
-
and the point becomes a filled
green box
-
now if you change one handle
then the other will follow.
If you want to break the continuity
again:
-
locate the icon
fifth left.
-
click back on the point.
Note: this action
will have no effect on a point that is already 'broken'.
Switching between curve and
linear interpolation, between points:
-
locate the icon
fifth right.
-
click on a point.
Note: this sets the
'outgoing' handle on the selected point, and the 'incoming' handle on the
following point to near zero, thereby giving you the linear interpolation.
-
If at first the 'direction'
of the interpolation is wrong, then simply use Undo and select
the next point around.
-
After this action the points
will become filled red boxes, indicating their linear status.
To restore the curve interpolation:
-
select the icon
.
-
click on the point you want
to return to a curve.
Note: this seems
to have no immediate effect, you have to reselect the point move icon,
and push and drag very hard on the point to restore the handles.
Remember when you set them to 'linear' the handles were reduced to nothing!
Now we can start to do something
useful armed with our new-found knowledge.
Understanding the power
and problems of spline based warping.
For an initial experiment:
-
exit Morpheus.
-
reload with the same
clip as Source and Destination, as we will be trying a simple
warp first.
-
delete any curves you may have,
by using the Delete All Curves option on Ctrl page 2.
-
make sure the Skip Proc
button is on.
-
go to frame one if you are not
already there.
-
define a curve with only two
points, whilst looking at the S Curves.
-
fast forward to the last frame
in your sequence, and switch to the D Curves.
-
change the position and orientation
of your points and handles.
-
go to Ctrl page 2 .
-
check that AutoKey
is switched on.
-
locate the G0 S->D Frac:
and M0 S->D Mix: pink sliders.
Note: the G0
and M0 denote that the Group and Mix values for Group
Number 0,Ctrl page 1, will be changed. Morpheus can use up to seven
groups, labelled as 0 to 6 for its effects (more on this
later).
-
set a value of 1.00 in
both of these, G0 and M0.
-
rewind to frame one.
-
set both these values to zero
0.0.
You have now set up warping
and crossfade curves in the Anim window.
-
return to Ctrl page 1.
-
change the frame you are looking
at.
-
switch off the Skip
Proc, option otherwise nothing will happen.
-
if by some chance the blue pop
up options on the 3rd column, first button, have been changed, switch it
back to the default of S to D.
-
switch to Result, instead
of D Curves, and Morpheus will calculate a frame for you.
As you can see the whole
frame has been warped by just a single curve with only two control points.
This is the power of warping
with splines, but it is also the draw back. It is far easier to 'lock'
down parts of the image that you don't want to warp with mesh based
warpers, such as the inbuilt DL Warper. Techniques for this will
by discussed later.
As the whole frame is now
warped, it is likely that you can see black beyond the edges of the picture,
especially if you are looking at the final frame in the sequence where
the warp will be at it's maximum. You can change this by locating the Black,
Wrap and EdgeDup blue pop up 3rd column, second button.
Doing something useful.
Let's Morph.
Setting up the curves on
a moving sequence:
-
exit and reload with the clips
you want to use for a morph sequence. Of course these could be static frames
but this would be a cheat, right!
-
now let's make sure Morpheus
is 'properly' defaulted:
-
go to Ctrl page 2 to
delete all the curves.
-
return to Ctrl page 1.
-
switch on Skip Proc.
-
make sure you are viewing the
S Curves, thereby seeing your Source clip.
-
go to frame one if your not
there already.
-
start to define your first curve,
bearing in mind all the stuff mentioned earlier!
-
you may like to zoom into the
picture to be more accurate.
Note: if you Pan,
the Tool Bar stays where it is. This may obscure some detail in
the picture you are trying to work on. You can in fact move the Tool
Bar by clicking on it's left hand edge, watch for the mid grey
border to turn white, indicating that you can now drag it around.
Once it's been dropped in a new position, you can reset it by using the
Reset Tool Bar Position option, 3rd column, bottom button.
-
you can define as many curves
as you like, but keep it simple in the initial stages. The curve interpolations
work best when there are few points spaced far apart, so don't go mad adding
in hundreds of control points. If you have only used the DL Warper
then you will learn that with Morpheus you simply don't need to
add a point on every detail.
Tips: try to avoid curves
passing over each other and try to avoid a curve 'pushing' up close against
other curves. You can move curves outside of the video frame if this helps
with following a motion. Remember to keep it simple, the more points you
have, the more likely it is that you will end up in trouble later on.
Note: you DON'T
need to completely enclose a shape, for instance, someones eye or mouth,
a simple line above and/or below will suffice.
In general, it is best to
use curves that are roughly convex. Curves which have lots of ins and outs
are legal, and will work, but may not give the best results. Just dividing
up your outlines into separate convex curves helps a lot.
Once you have 'modelled'
the curves to your satisfaction, move to the next frame you are interested
in. Now you will have to start moving the curves and points around to set
keyframes to 'follow' the features you are interested in. A common question
is 'are there any trackers?' er.. no. Although it makes more sense to motion
track splines rather than meshes, SpeedSix have not yet implemented this into
Morpheus. This will be done as soon as possible, but until then sorry you
will have to do it manually.
Note: there is no
way of globally rotating or scaling an entire curve.
Copying a single curve
between keyframes, or all curves between keyframes.
As you begin to set keyframes,
it may be useful to copy curves around between them. You can use the Copy
Current Thru option to do this. Located at the bottom of column 1,
this will copy the currently selected curve to all keyframes associated
with this curve. If you need to copy all the curves for the Source
modelling, to all the keyframes, you can use the Copy All Thru
S Keys option. Similarly, the option Copy All Thru D Keys, will
do the same for the Destination curves.
Saving your work
As you start to work along
you will want to save your curves for later retrieval in case something
goes wrong.
To save the spline warping
curves:
-
first type a file name
into the green box located at the bottom of column 4.
-
click on Save Design
just above it.
Note: you will have
to remember the file name if you want to Restore (the) Design
later. I can only suggest you right it down, or execute an ls on
the directory ~/sparks/setups/SpeedSix.Morpheus.
Once you are happy with your
Source curves you will need to work on the Destination image
and it's D Curves.
-
switch from S Curves
to D Curves to do this.
-
now you need to start to model
your Destination curves as the points are only 'placed', as you
defined the S Curve, without any handle manipulation.
-
if you are lucky and your clips
are 'close' enough in content, e.g. two similar faces in the same position,
then you can use the Map D-S option, 2nd column, fourth button,
to 'copy' one curve at a time between the S and D curves.
Note: to pick a new
source curve, you must look at the S Curves to select it.
You can then use the Map S-D (1st column) option, to make the copy
from the curve on to the matching D curve.
-
If you create unneeded keyframes,
you can kill them by 'parking' on them and executing a Delete Key,
second button, column 2.
When you have finished with
the curve modelling you can set up the warp and mix.
-
go to Ctrl page 2
-
and set up the Group
and Mix values for Group Number 0.
-
you can check on the action
of your curves by using the Show Key Anim option in the 1st column
or, slightly slower, actually 'play' the clip to see the footage update
with your curves, dependant on whether you are viewing the S or
D Curves.
Now you will want to process
a final result.
-
go back to Ctrl page 1
and rewind.
-
switch from D Curves
to Result and switch off Skip Proc.
-
switch from S to D into
Morph.
-
you may also like to switch
on Quick & Dirty on Flint and Inferno systems,
as this speeds up the processing a little.
Common Problems
The morph 'boils' on details.
-
reload Morpheus and switch off
Quick & Dirty.
-
now locate the pink UnderSample
slider, 3rd column third button. The range is 64 to1. This
basically controls the amount of 'smoothing' that is used, as Morpheus
calculates the interpolation between the S and D Curves.
Lesser values will yield smoother results, but at slower processing speeds.
However, do not make this value smaller than 4 on film res.
Images, as it will take a very long time to calculate the result................
The morph 'sqidges' and 'puffs'
along some of the curves.
I told you not to push curves
close together! However this may not be practical in all situations. As
a last resort you can use the 'cutter' icon:
on
the Tool Bar far right, to 'chop' a long line into smaller segments.
-
select the tool.
-
click on the point where you
want to 'cut', e.g. the point in the centre of the sqidge or puff. This
cuts both S and D Curves and their mates in all defined keys.
-
the line is now cut, although
you see no actual 'separation' on the screen as two points now lie on top
of each other.
-
you can try an immediate reprocess
to see what happens, but often you will need to move these points apart
to create a 'gap'.
Remember, you will have to do
this on each keyframe, hence the advice to keep it simple in the initial
stages of construction. You can always save a simple morph, and add to
it later.
Tip: If you want to
'examine' the morphing process to track down such anomalies, try this:
-
go to Ctrl page 2
-
switch on the Draw Arrows
option, 1st column, fourth button.
This will display a green 'interpolation'
line with arrows, that will be placed between the S and D
curves (if you switch back to S Curves then only the red S Curve
will be displayed). This line represents the 'state' of the morph interpolation
at the current frame. This is a very useful function, as it allows you
to view 'into' how Morpheus 'thinks'.
You can manipulate the green
interpolation line, but only by changing either the S or
D curves, you can't click and drag on the interpolation line
directly.
Tip: You may be tempted
to go mad with the ability to do this, however, as you are changing the
S and D curves themselves, you will be changing the
fundamental effect of the morph, so save a version before you play around
with this.
The interpolation arrows
also give an important clue as to the likely result. If the arrows are
'bunched' very close together, or change direction suddenly, then this
indicates there could be a problem around this area. You can try using
the 'cutter' technique on these points to 'sort out' the interpolation.
Finally, if all else fails,
you may forced to try and 'disguise' any anomalies by forcing the morph
or crossfade to happen very quickly, thereby giving you fewer frames to
clean up elsewhere. This will involve you moving the offending curves into
another group to gain independent control over them.
Which leads quite neatly
onto...
Now I want to... Play
around with the other groups.
The first thing we need to
think about is making the display show us which curves we are dealing with,
for the sake of clarity.
-
on Ctrl page 1 locate
the option Hilite Cur(rent) Gr(ou)p, last column second
button. Initially you won't see any change, as the group number will still
be at 0.
-
if you now change the group
number, logically, to 1 then the curves in group 0 will become
'dashed'.
-
now to copy a curve from 0
to 1.
You may like to use the Do
not move option (fourth button down), this is like the DL Select
function, which means you can click on a point without moving it.
-
click on a point on the curve
you want to copy, to make it the current curve.
-
click on Picked->Group
command. As the curve is copied into group 1, it will become a solid
line again.
You can copy as many curves
into any of the seven groups as you need.
Remember that you need to
set key framed time lines for each of the groups to control the
fade and warp rates as each group has distinct warp interpolation,
morph mix and curve width parameters.
Tip: Try to change
the rate of crossfade in preference to the rate of morph. If you change
the rate of morph to be very quick, you may get some strange results (of
course one day this could be useful!).
If you want to copy parameter
curves from one group to another, compare curves etc, the Flint/Flame/Inferno/etc,
curve editor should provide the required functionality.
Locking down areas of
the picture I don't want to morph, or warp.
This will involve defining
'static' curves in a separate group, and controlling their line width.
-
start very simply by defining
a curve (either S or D, it doesnt matter as you won't be
moving them), in a 'high' group, e.g. 5 or 6, and on one
frame only, without setting any movement keys.
-
broadly outline the edge of
frame, or lock down area, with as few points as possible.
-
set up the fade and morph Anim
channels for the group (Ctrl page 2).
-
increase the W(5,6
etc) Line Width: value. This value controls the 'thickness' (in
pixels) of the area around the warper curve (can be useful for other effects
as well).
Now to view the result of the
'lock down'.
-
go back to Ctrl page 1.
-
and locate and use the Mix
Map Only option, 3rd column, sixth button.
-
and switch off Skip Proc.
-
refresh the frame by changing
the frame number, or 'jogging'.
With this on, you will see a
black to white image that represents the 'state' of the morph and mix (black
corresponding to S fully visible, white to D fully visible,
and greys are intermediate mixes).
Note: if you see
a uniform colour, then the mix values are not sufficiently different between
groups.
Areas that do not move,
e.g. your lock down will remain black. On Onyx based systems, and at
video res. you can attempt to actually 'play' the clip at a reasonable
speed.
Note: the rendering
code makes full use of multiprocessing on Onyx machines, in fact you process
the Mix Map for some quite 'spooky' results. If you do end up with
a good clip of movement then try using it in Action, as a displacement
map, with your morphed, clip for some very strange 3D effects.
Tip: Doing this will
also provide you with a clip that can give you clues as to the speed of
the fade and morph as the luminance changes. By default the interpolation
between moving curves is linear, you can change this by switching on Time
Fair on Ctrl page 2. This will 'cushion' the interpolation,
but you can't change the rate of the effect, as this is 'hard wired'.
Button by button.
Well, I hope this has helped.