Jump to content
  • Advertisement

Archived

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

ShockMan

pbuffer not working?

This topic is 5237 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!