morphing images using pfMorph node

New Message Reply Date view Thread view Subject view Author view

Triavest (mail++at++triavest.com)
Fri, 08 Nov 1996 10:38:48 -0800


Hi everybody:

        I am not on this mailing list, but hope that some of you
will be able to help me solve my problem. Please send any reply
directly to me at: kishore++at++triavest.com
I would suggest that you didn't use the "reply to" option of the
mailing system, as I don't trust it at my end.

Problem:

        I am trying to morph one image into another using the pfMorph
node (based on the sample program morph.c). I set up everything as
follows:
        initMorph()
        -----------
        - get tex from geode's geostate
        - get its image out with pfGetTexImage : is oldImage
        - load the new tex using pfLoadTexFile
        - get its image out : is newImage
        - use oldImage->newImage as the attribute for pfMorphAttr
          as: pfMorphAttr(morphNode, 0, ns*nt*nr, 1, NULL, 1,
                          srcs, NULL, NULL)
          where: ns, nt, nr: are as returned by pfGetTexImage
                 srcs: is array of float pointer to oldImage and
                 newImage.
        - use the dest image as the new texture of the geode.

My program gets stuck inside pfMorpfAttr() call - never returns from
there.

If anyone has done image morphing, I would appreciate a sample code.
Thanks for any pointer.

-anita
kishore++at++triavest.com
=======================================================================
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:53:55 PDT

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