Re: GL texture and performer Problems

New Message Reply Date view Thread view Subject view Author view

From: Allan Schaffer (allan++at++sgi.com)
Date: 03/22/2000 11:14:00


On Mar 22, 7:18pm, Gilles GALLEE wrote:
> In draw function, we want to render the performer scene with pfDraw()
> and special effects with Open GL.
> In this effects (durint draw process), we define texture objects with
> glGenTextures() that returns IDs for my textures.
>
> The problem is that some of my effects textures are used by pfDraw() to
> texture som objects of the scene !!!
> Does Performer use glGenTextures() to reserved IDs ??
> If not, how can i choose IDs range for my textures ?

I doubt that duplicate ID's are the problem here, I'd suspect a state
leak. Perhaps nothing is 'resetting' the currently active texture
before subsequent geometry is drawn. In general you should probably
surround your custom-drawing section with:

   pfClear();

   pfPushState();
   pfBasicState();
   ... your stuff ...
   pfPopState();

   pfDraw();

Allan

-- 
Allan Schaffer                                            allan++at++sgi.com
Silicon Graphics                           http://reality.sgi.com/allan


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Mar 22 2000 - 12:14:37 PST

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