Simon Bennett (simonb++at++wormald.com.au)
Thu, 5 Sep 1996 11:27:47 +1000 (EST)
> 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
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:30 PDT