PDA

View Full Version : Ignore Pixel ownership test?



_NK47
10-06-2008, 05:00 AM
I have a problem with copying parts of the backbuffer to a texture with windows overlapping certain regions. all windows are getting into my texture as well, both glReadBuffer/glCopySubTexture2d.
Is there any way to somehow mess around with pixel ownership test without the use of render targets?

Thanks

Zengar
10-06-2008, 06:04 AM
No. The GL spec states that the contents of a region that is occluded by another window is undefined. Use pbuffers or, preferably, framebuffer objects.

remdul
10-06-2008, 08:23 AM
On some newer NVidia cards (8800 for example) the pixel ownership test is ignored and the full frame is rasterized. But I wouldn't depend on it, it may disappear with the next driver version. Heck, it could even be a bug.

PBO or FBO.

_NK47
10-06-2008, 09:33 AM
Ok thanks. Using FBO already, just wanted to know how it is.
So basically i cant totally rely on buffer copy functions until i go fullscreen mode?

ZbuffeR
10-06-2008, 10:00 AM
Even on fullscreen, some notifications popups can be above your fullscreen window. Only FBO/pbuffers are free from these problems.

Jan
10-07-2008, 03:25 AM
On some newer NVidia cards (8800 for example) the pixel ownership test is ignored and the full frame is rasterized.

I would guess, that this is due to Vista support, where all windows are rendered off-screen, anyway. Of course on XP/Linux you shouldn't count on it, FBOs are clearly the best solution, in general.

Jan.

Hampel
10-07-2008, 04:28 AM
Would have been good if pixel ownership test had been marked as deprecated in OpenGL 3.0...

remdul
10-07-2008, 08:54 AM
Would have been good if pixel ownership test had been marked as deprecated in OpenGL 3.0...
Good call. It doesn't make sense anymore these days, hardly has any benefit and unnecessarily complicates the spec/implementations.

Jan
10-07-2008, 10:48 AM
Indeed. Though i always thought that would be "optional" anyway, i mean it doesn't have any benefits, it simply allowed for easier implementations on early systems, plus some speed-up.

Maybe it could be deprecated in the impatiently awaited OpenGL 3.1 (what would that actually be? 1.8?).

Jan.

_NK47
10-08-2008, 04:15 AM
I actually thought its already omitted until i tried it out on Quadro FX cards. And even then it turned out to be different in next driver version, where it copied pixels without the ownership test.

_NK47
10-21-2008, 03:56 AM
one last question (hopefully) about ownership test on Vista machines. anyone had experienced problems on vista?
i will check previous problem i had with QuadroFX card on XP, this time on Vista and post the results (though its driver depended and vista drivers are slightly different).

_NK47
10-23-2008, 06:53 AM
works as expected. no problems using texture copy functions.