GL_NV_OCCLUSION_QUERY replacement in SW ? how to something similar ?

All of us know about the existance of the nVidia extension “GL_NV_OCCLUSION_QUERY” and its capabilites;
my problem is, that i need a way to do something similar without using this extension.
Yes, i know about frustum-culling - but as you know “occlusion querying” goes one step ahead: not only querying what’s in the frustum, but detecting which objects of the ones already in the frustum should be drawn.
I’m already using frustum-culling, but occlusion queryin (or soemthing like that) would be more powerful, i think.

What do you say ? Is there a way or technique to do something comparable in software ?

You could tag visible objects in the stencil buffer and then copy the stencil buffer to main memory to count the number of tagged pixels. I would not expect good performance, though.

flo

Read this .

@harsman:

laugh
yes, 2 minutes ago i stumbled over this link, too !