morphing images using pfMorpg node

New Message Reply Date view Thread view Subject view Author view

Triavest (mail++at++triavest.com)
Mon, 18 Nov 1996 10:16:54 -0800


Frank:

        So far I have not received any replies to this morphing
problem. I had also tried using OPenGL extension called:
glBlendColorEXT as follows:

in the pre-DRAW traversal of the geode node do:

        glEnable(GL_BLEND)
        glBlendFunc(GL_CONSTANT_ALPHA_EXT,
                    GL_ONE_MINUS_CONSTANT_ALPHA_EXT)
        for (i=0; i<numFramesNeededForBlending; i++)
        {
                p = (float) i / (float)numFramesNeededForBlending
                glBlendColorEXT(0,0,0,p)
                draw imageB
        }

in post-DRAW traversal of geode do:

        glDisable(GL_BLEND)

The above is supposed to blend image B onto an already drawn image A as
(1-p)*imageA + p*imageB over numFramesNeededForBlending. This should
blend images of only RGB format using external alpha 'p' over here.

But, offcourse, it doesn't work in performer. I will try to do this in
only OpenGL and see if it works.

Please forward me any solution that you may find.

thanks

-anita
kiahore++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:58 PDT

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