Re: Generating textures on the fly

New Message Reply Date view Thread view Subject view Author view

Ran Yakir (rany++at++rtset.co.il)
Wed, 25 Jun 1997 20:09:14 +0000


On Jun 25, 5:47pm, Amaury Aubel wrote:
>
> I was not aware there was such a thing as pbuffers.
> But how could I load something from the pbuffer into the TRAM? That puzzles
me
> most...
>
> I could use glXMakeCurrentReadSGI to tell openGL to use the pbuffer as a
source
> for all subsequent glReadPixels, glCopyPixels etc.
> But I strongly doubt this will apply to a texture load specified as follows:
>
> pfTexLoadMode(tex, PFTEX_LOAD_SOURCE, PFTEX_SOURCE_FRAMEBUFFER);
> pfTexLoadSize(tex, WIN_X, WIN_Y);
> pfLoadTex(movie->tex);
>
> Does anyone have an idea of what would happen?
>

This is exactly the way to do it. glXMakeCurrentReadSGI does apply for
glCopyTexImage2DEXT and glCopyTexSubImage2DEXT, which are encapsulated by
pfLoadTex of SOURCE_FRAMEBUFFER textures.

Ran

-- 
 __                                  | 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               |
=======================================================================
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:55:30 PDT

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