Steve Baker (steve++at++mred.bgm.link.com)
Thu, 19 Sep 96 10:40:14 -0500
> What would be the best way to, on the fly, change the texture on a surface ?
I use the Performer "Indexed GeoState" facility to do this.
In this mode, you can define a table of GeoStates and give
each polygon an index into that table instead of the GeoState
itself.
This means that all you have to do is to change one memory location
(the pointer in the table) to make all polygons with that index
use a different GeoState.
This is cool because you can change *ALL* of the surface properties
(not just the texture) with a single instruction!
You can even do cute things like defining a different GeoState table
for each channel. That means that you could have the same object
with different material properties in different channels.
Steve Baker 817-323-1361 (Vox-Lab)
Hughes Training Inc. 817-695-8776 (Vox-Office/vMail)
2200 Arlington Downs Road 817-695-4028 (Fax)
Arlington, Texas. TX 76005-6171 steve++at++mred.bgm.link.com (eMail)
=======================================================================
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:34 PDT