Re: Texture coordinates

New Message Reply Date view Thread view Subject view Author view

Anita Kishore (kishore++at++triavest.com)
Thu, 4 Sep 1997 09:58:05 -0700


On Sep 3, 3:33pm, Prakash Mahesh wrote:
> Subject: Texture coordinates
> 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?
>
>
> Thanks.
>
> --

If your texture is mapped on to a geometry and yopu want the texture
transformations to be local, then you can use pre and post DRAW
callbacks. In the pre callback, you load your transformation matrix onto the
texture matrix stack after saving the previous state, and in the post
callback, you restore the stack.

-anita
kishore++at++triavest.com

-- 
Anita Kishore
=======================================================================
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.