Re: texture switch

New Message Reply Date view Thread view Subject view Author view

From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 06/04/2001 10:36:00


You can used indexed geostates and switch the geostate table on the fly.
Take a look at pfGeoSet::setGStateIndex. Another option is to load new
data into the texture all the geostates share. You have to do this in a
draw callback to be frame-synchronous.

-- Marcin

On Mon, 4 Jun 2001, Alexis Matte wrote:

> Hi,
> I want to switch the texture referenced from many polygons at run time, so that all polygons using this texture will then display the new texture.
>
> What is the best way of doing this?
> Is there some sample code for doing this?
>
> Merci
>
> -----------------------------------------------------
> Alexis Matte
> Software Developer
> Adacel Inc.
> EMail: alexis.matte++at++adacelcanada.com
> Tel: (450) 672-3888 ext:244
> -----------------------------------------------------
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jun 04 2001 - 10:36:03 PDT

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