| Shapeshifter:
An Xmorph Tutorial (page 4) by Dr. Michael J. Gourlay |
|
|||||||
|
|
Single morphed images To manually create a single morphed image, move the "warp" slider to set the shape of the "tween" mesh, select the "Commands" menu within an image panel, and select the "Warp Image" button. Both images will be warped. Now move the "dissolve" slider to see the warped images. To save a morphed
image displayed in an image panel, select the "Commands" menu and select
the "Save Image..." button. A dialog box will pop up asking for an image
filename. Type in the name of the file you want use to to save the image.
The image file will be written in the Targa TrueVision TGA image file
format.
|
|||||||
|
Xmorph sets the values for the warp and dissolve parameters differently in time. The warp parameter changes linearly in time, but the dissolve parameter changes slowly at first, rapidly in the middle, and slowly at the end of the morph sequence. The reason for this is that the warping looks more plausible than the dissolving, so the dissolving is peroformed relatively rapidly in the middle of the morph sequence when both images are reshaped to about mid-way between the source and destination shapes.
An alternative way to generate a morphed images is to use the command-line program "Morph" which accompanies Xmorph. After the meshes have been generated, execute morph once for each image:
To animate the morph
sequence, a program other than Xmorph has to be used. Xmorph generates
the morphed images but does not create a consolidated animation file.
The reason for this missing feature is that there are simply far too
many options for animations: MPEG (multiple versions), motion JPEG (many
nonstandard varieties), animated GIF, QuickTime (many versions), many
forms of digital video, and so on. Just as Xmorph leaves the task of
image file conversion to other programs, Xmorph also leaves the conversion
from images to movies to other programs.
Still, for the purposes of this tutorial, let's assume you have a Unix machine, the NetPbm utilities, and whirlgif. Convert each morphed image from TGA to GIF like this:
Since 1989, Dr. Michael J. Gourlay has been writing programs in C almost entirely on UNIX systems. He has worked on computer animations, image procesing, and scientific data visualization software both professionally and as a hobby. His Ph.D. is in physics in computational fluid dynamics and he has the coursework equivalent of a bachelor's degree in computer science. Although he's held the title of UNIX system adminstrator now and then over the past 9 years, his current position of Research Scientist with Colorado Research Associates involves visualization of large 3D data sets which rely heavily on volume rendering.
You can contact
Dr. Michael J. Gourlay at 303-415-9701x203, fax:303-415-9702, or by
e-mail at Michael.Gourlay@colorado-research.com.
His home page is located at http://www.colorado-research.com/~gourlay.
Information on XMorph can be found at http://www.colorado-research.com/~gourlay/software/Graphics/Xmorph/.
|
© 2003, Digital Media Online, All Rights Reserved
| |||||||