Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Fri, 6 Sep 1996 18:48:49 +0100
Modifying the texture matrix will also do this,
I recommend a draw callback where you translate the texture matrix
before drawing your animated geometry.
Rgds,
Angus.
On Sep 5, 11:27am, Simon Bennett wrote:
> Subject: Re: Texture animate
> On Tue, 3 Sep 1996, Eric Tran wrote:
>
> > Hi all,
> > Do you know of a good way to animate by sliding texture ?
> > I tried:
> > {
> > pfTexture *tex;
>
> -- snip --
>
> > }
> >
> > 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 ?
>
> Why don't you look into changing the texture co-ordinates every frame
> rather than changing the texture every frame. I think you'll find that this
> is quite a *bit* faster...
>
> +----------------------------------------------------------------------------+
> Simon Bennett simonb++at++wormald.com.au
> Wormald Technology Advanced Systems Engineering Ph: +61 2 9981 0669
>
> "Good judgement is the result of experience.
> Experience is the result of poor judgement"
>
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Simon Bennett
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:30 PDT