Re: texture modes
Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Wed, 22 Oct 1997 20:53:29 -0700
On Oct 22, 9:06am, Steve Baker wrote:
> Subject: Re: texture modes
> On Tue, 21 Oct 1997, ken sartor wrote:
>
> > I would like to use the GL_ADD texture mode that is available in
> > OpenGL in my Performer app:
> >
> > glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_ADD);
> >
> > But i do not see it in the pfTEnvMode function:
> >
> > pfTEnvMode(tev, PFTE_ADD); !! not allowed
> >
> > Will this be supported in Performer 2.2? Is there any work
> > around possible in currently released versions of Performer?
>
> My (beta) copy of 2.2 *does* define PFTE_ADD - so I guess it should
> work in 2.2.
>
> I don't know if there is a work-around for 2.0 or 2.1. The 'define'
> for all the PFTE_ env modes are just the same as the OpenGL tokens,
> so I suppose there is a *chance* that you might have success if
> you simply hack in:
>
> #define PFTE_ADD GL_ADD
>
> -- NO promises!
> -- Don't forget to take this out when you eventually do upgrade to 2.2!
> -- Don't do this for IrisGL!)
>
I've used this successfully for light map textures in beta
Performer 2.2, you should be aware that you can always call
the gl or even try calling performer with the gl token.
The performer texture code makes some tests on the token so
the GL_TEXTURE_ENV_COLOR parameter will not actually work
when using the add token and you must call the gl for this
anyway.
This should be fixed in the 2.2 release.
Cheers,Angus.
=======================================================================
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:56:07 PDT