Re: pfMorph

New Message Reply Date view Thread view Subject view Author view

Rob Jenkins (robj++at++quid)
Wed, 21 May 1997 21:53:48 -0700


On May 21, 4:12pm, Tran cong Tam wrote:
> Subject: pfMorph
> Hi Performers,
>
> I am studying pfMorph with
>
> /usr/share/Performer/src/pguide/libpf/C/morph.c
>
> But I do not see: How it changes from Sphere to Cube ?
>
> Please, Can you show me where they do the transformation
> SPHERE to CUBE and inverse ?
>
> Thanks in advance for your helps.
>

The initMorph function has a loop which looks at each vertex in a sphere and
calculates which face of a cube it's closest too. breatheMorph() then cycles
back and forth combining the cube and sphere attributes with varing weights.
The pfMorph man page has a better explanation of the general case, if you apply
that to the example code it starts to make sense.

Cheers
Rob

-- 
________________________________________________________________
Rob Jenkins mailto:robj++at++csd.sgi.com
Silicon Graphics, Mtn View, California, USA
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:16 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.