Sign in to follow this  
Hobbiticus

2D pbuffers

Recommended Posts

For the last day or so, I've been trying to get pbuffers working on both linux and windows. I figured that the easiest thing to do to test to see if they were working was to render some 2d geometry to them. I had no luck the past couple days. Very strange things would appear like setting the raster pos to 0,0, then retrieving the raster pos and seeing it alternate between 479 and 579 in the y coordinate. I tried rendering the same stuff to a second window and it worked fine (c+p all rendering code). Just today, I tried some 3d stuff just for kicks, and it worked. I don't know how or why, but it just does. It appears that 2D stuff is just broken. Could this be a driver bug? Or is there something special I need to do in order to draw in 2D for a pbuffer short of generating my own modelview/projection matrices?

Share this post


Link to post
Share on other sites
It's hard to paste code because it's all intermixed into different classes and such. The strange thing is that if I create a window and a pbuffer of the same size, then execute the same exact rendering code, the window displays properly, and the pbuffer is empty. If I do the same test with some 3d rendering code, the window and pbuffer are identical.

I did hear somewhere that pbuffer support was broken in the latest nvidia drivers for 6800's (I have a 6600GT), but I seem to recall that it was only for their linux drivers. I decided to try it on windows as well with the same result.

I have to get to class in a minute, so I'll try and paste some code when I get back.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this