PDA

View Full Version : Render to Texture with cg problem



Sandruzzo
06-24-2004, 05:52 AM
hi.
I've a problem with cg and pbuffer.when I render to texture(under cg) some object with his texture,I've
noticed that the texture is ignored!! :eek:
but if I render normally that objects,the texture is correct!!why?

this is my operation:

activepbuffer();
clearpbuffer();

activeCgTextureState();

renderobject();

disableCgTextureState();
disablepbuffer();
restoreContext();

rendQuadWithPbufferTexture();

thanks in advance
Sanddro

CatAtWork
06-24-2004, 05:09 PM
Are you using wglShareLists (or your equivalent OS function) to share texture objects across your main and pbuffer contexts?

Sandruzzo
06-24-2004, 10:45 PM
thanks for your "tips".now all work well