Texture animate

New Message Reply Date view Thread view Subject view Author view

Eric Tran (etran++at++cgsd.com)
Tue, 3 Sep 1996 12:10:12 -0700 (PDT)


Hi all,

Do you know of a good way to animate by sliding texture ?
I tried:

{
    pfTexture *tex;
    ulong *image;
    long comp, ns, nt, nr;

    /* get texture mapping parameter */
    pfGetTexImage( tex, &image, &comp, &ns, &nt, &nr);

    /* compute new parameter */
    ns++;
    nt++;
    nr;

    /* set new parameter */
    pfTexImage( tex, image, comp, ns, nt,nr);
}

This code does slide texture, but the program run
*really slow* (1-2 frames / second).

Is it possible to do this at a higher speed ? Perhaps
a difference approach ?
  
EricTran.
-------------------------------------------

=======================================================================
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:30 PDT

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