Textures substitution.

New Message Reply Date view Thread view Subject view Author view

Svend Tang-Petersen (svend++at++rex.copen.sgi.com)
Thu, 19 Sep 1996 11:11:22 +0200


Hi Perfs.

What would be the best way to, on the fly, change the texture on a surface ?

i.e. is it sufficient to replace a pointer to texture_1 with a pointer to
texture_2, or do I have to traverse the scenegraph and do a new texbind ?

The idea is to cycle through a number of materials/wood textures by hitting a
function key. In some demos, e.g. Divisions 'showroom', you change the color
of polygons by hitting a number of different keys.

-- 

Regards Svend

************************************************************************* * Svend Tang-Petersen, MSc Email: svend++at++copen.sgi.com * * Silicon Graphics Denmark Fax: (+45) 43438606 * * Stationsparken 25 Phone: (+45) 43438600 * * 2600 Glostrup Voice mail: 5-7507 * * Denmark * * * * Homepages http://www.sgi.com * * http://www.sgi.dk * * * * OutBox (SGI only) http://rex.copen.sgi.com/~svend * ************************************************************************* ======================================================================= 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:53:34 PDT

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