Re: highlighting a texture

New Message Reply Date view Thread view Subject view Author view

Ran Yakir (rany++at++rtset.co.il)
Sat, 13 Feb 1999 10:18:21 +0200


Stephen,

Why don't you try the texture color scale and bias ? I think those are cheaper
than TLUT. You can then saturate your texture color, in order to highlight it,
or you can totaly remove one color component.
You control the scale and bias with glTexParameterfv, with the arguments
GL_POST_TEXTURE_FILTER_SCALE_SGIX and
GL_POST_TEXTURE_FILTER_BIAS_SGIX

Ran

Phil Keslin wrote:

> The OpenGL imaging operators will effect any pixel movement operations
> (ReadPixels, DrawPixels, CopyPixels, CopyTexSubImage, CopyTexImage,
> TexImage, etc.). They can be expensive though (depending upon the
> operation).
>
> Angus suggested the TLUT, but what about modulating the texture with a
> different color?
>
> - Phil
>
> Angus Dorbie wrote:
> >
> > It does affect your texture download path but you'd have to resend from
> > the host.
> >
> > You could use a TLUT, texture lookup table, or you could perhaps change
> > the texture environment.
> >
> > Cheers,Angus.
> >
> > Stephen Maher wrote:
> > >
> > > Hi,
> > >
> > > I'm trying to find a way to slightly change the appearance of a
> > > texture (including clip textures) on the fly to make it appear
> > > "highlighted" or "selected".
> > >
> > > I first tried modifying the GL_COLOR_MATRIX_SGI, but I guess the "imaging
> > > pipeline" that it effects, as described in the OpenGL on SGI doc, is the
> > > glDrawPixel, etc., path, not the texture mapping path.
> > >
> > > And clever ideas?
> > >
> > > Thanks,
> > > Steve
> > > --
> > > stephen.maher++at++gsfc.nasa.gov (301) 286-3368 fax:(301) 286-1776
> > > http://holodeck.gsfc.nasa.gov/vr/vr.html
> > > NASA Goddard Space Flight Center
> > > =======================================================================
> > > List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> > > Submissions: info-performer++at++sgi.com
> > > Admin. requests: info-performer-request++at++sgi.com
> >
> > --
> > "Only the mediocre are always at their best." -- Jean Giraudoux
> >
> > For advanced 3D graphics Performer + OpenGL based examples and tutors:
> > http://www.dorbie.com/
> > =======================================================================
> > List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
>
> --
> Phil Keslin <philk++at++engr.sgi.com>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

--
 __                                  | Ran Yakir
 /_)  _  __   \  / _   / o __        | RT-SET Ltd.
/ )_ (_(_) )   \/ (_(_/<_(_)(        |
              _/                     |
-------------------------------------+--------------------------------
Phone :                              | E-mail : rany++at++rtset.co.il
  Work : 972-9-9552236  Ext #119     |          rany++at++netvision.net.il
  Res. : 972-9-7489974               |
Fax    : 972-9-9552239               |

http://rtset.co.il/rany


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Sat Feb 13 1999 - 00:18:37 PST

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