Hi Toni,

Antonio Bleile wrote:
> Hi,
> 
> I'd like to query some occlusions with OpenSG... I don't know
> if there's any support for this in OpenSG. I'd like to render
> a set of points and query their visibility using some OpenGL
> query extension. I know how to do that in OpenGL, but I
> don't know if I can map that somehow into OpenSG. Here's
> a typical loop:
> 
> Gluint queries[N];
> GLuint pixelCount;
> glGenOcclusionQueriesNV(N, queries);
> 
> 
> for (i = 0; i < N; i++) {
>       glBeginOcclusionQueryNV(queries[i]);
>       // render point i
>       glEndOcclusionQueryNV();
> }
> 
> // evaluate visibility...
> 
> Any hints?

A query for each point? That sounds fairly expensive. In that form there 
is not support directly in OpenSG. You could use the OpenSG extension 
handling methods if you wanted to, but other than that I don't see what 
we could do to help. On the other hand, running through a bunch of 
points doesn't seem that hard, your code up there is pretty much it, 
unless I missed something. ;) You can use it with a PassiveWindow before 
calling swap, and it should work just fine.

Yours

        Dirk



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to