Re: Texture coordinates

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Thu, 4 Sep 1997 10:13:13 -0700


On Sep 3, 3:03pm, Rémi Arnaud wrote:
> Subject: Re: Texture coordinates
> Prakash Mahesh wrote:
> >
> > Hi,
> >
> > I have a question regarding texture coordinates. I want to transform a
> > set of texture coordinates by a matrix. Do I have to do it point by
> > point, or is there a Performer functionality that can do this?
> >
>
> is pfVec3::fullXformPt() what you are looking for ?

The other option is to use the gl in a draw callback to modify the gl
texture matrix.

Use glMatrixMode(GL_TEXTURE) to get the texture matrix stack and use the
usual gl matrix and other types of transformation.

Be sure and set the matrix mode back to GL_MODELVIEW or whatever state you
read on the way in.

Cheers,Angus.

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

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