Archived

This topic is now archived and is closed to further replies.

ShockMan

pbuffer not working?

Recommended Posts

I''m trying to create a dynamic cubemap with a pbuffer, but it''s simply not working right. The image just comes out distorted (note that it looks exactly the same whatever I try to render to the buffer! Even if I render nothing.) Here''s the way it looks: If I render to the backbuffer and use glCopyTexSubImage2D I get correct results: Any ideas? Magnus Blikstad www.witentertainment.com

Share this post


Link to post
Share on other sites
Ah! Nevermind... I''m sure feeling stupid right now. hehe. =)

I simply misunderstood how the wglSetPbufferAttribARB function work. I thought I needed to add all attributes all over again (WGL_TEXTURE_FORMAT_ARB, WGL_TEXTURE_TARGET_ARB etc), when I infact only needed to set WGL_CUBE_MAP_FACE_ARB.... Works now!

Share this post


Link to post
Share on other sites
[edit: hehe, now I guess I was too slow =)]

Thanks for the help, but as I said it works now.

The projection isn't a problem as it's a cubemap so it has to be different anyway, all I need to do now is to transfer all my other settings like lights etc.


Magnus Blikstad
www.witentertainment.com

[edited by - ShockMan on March 17, 2004 8:15:14 PM]

Share this post


Link to post
Share on other sites