Hmm, that might be one way to do it, but I was really hoping to be able 
to learn the actual process that is happening.  From what I can tell, it 
is similar to image distortion in photoshop.  I've seen the morphing 
programs that calculate the "triangles" and "quadrilaterals" between the 
"dots" placed on the picture.

My question is how do I distort the picture?  From my imagination, I 
look a the two polygons as a mapping of the pixels of the picture. 
Then, I simply need to calculate which pixel corresponds to which 
mapping to create the distortion.

How do I do pixel mapping from one picture, using the geometry to 
determine what pixel from the source to use with the geometry from the 
other?

Perhaps I sound a bit confused... because I am.

- Ryan Dary

[EMAIL PROTECTED] wrote:
> On May 10, 2007, at 23:14 UTC, Ryan Dary wrote:
> 
>> Does anyone know a good morphing algorithm that they'd share?  I
>> think I  have a good idea for an interface, and I wanted to produce a
>> Mac  morphing program because they're hard to find.
>>
>> I think I understand the basics, but I don't know the actual graphic 
>> processing portion of the application.
> 
> I'd use the Trimesh class.  It would work basically like this:
> 
> 1. Divide the image area up into a series of triangles based on
> features you can get the user to identify.  For faces, this would be
> things like each pupil, tip of the nose, end of each eyebrow, ends and
> center of the mouth, ears, hair, etc.
> 
> 2. Prepare two Trimeshes.  One has the starting image as the texture;
> the other has the ending image.  Set the vertices in both to where they
> belong for the first image (making the second one quite distorted). 
> Set the alpha of the first one to fully opaque, and the second to fully
> transparent.  Position them so the second one is slightly in front of
> the first.
> 
> 3. Now, on each frame of the update, slightly increase the opacity of
> the second image, and shift the vertices in both Trimeshes towards
> where they belong for the final, second image.
> 
> That should do it, I think...
> 
> Best,
> - Joe
> 
> 
> --
> Joe Strout -- [EMAIL PROTECTED]
> Strout Custom Solutions
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to