Hi Paul,

So I can reproduce the problem by running "osgocclusionquery
<yourfile>.osg"? (all that example does is place an OQN above the .osg file
that is loaded.) If so, please post your .osg file so I can take a look at
the problem.
I had forgotten osgocclusionquery could read external files. It seems I can't reproduce the problem, it runs flawlessly (after lowering occlusion and visibility thresholds, of course). Placing the OQNs automatically on the same model using the same node visitor on *my* code does show the problem. I've tried turning off all I could think of, to no avail; I currently have one single model hanging from root with a default trackball manipulator, no stateset (under Qt). I'll see what else I can come up with tomorrow.

You can query the test pass/failure results on a per-camera basis. Are you
saying that this doesn't work for you for some reason? The osgocclusionquery
example does this, IIRC, to display some statistical information.

However, you are trying to use OQN for something that it wasn't designed
for. You might need to modify OQN or make your own custom node to make it do
what you want.

Yes, the query works. I was talking about recovering the pass/failure without acting accordingly (disabling the node if "invisible"), which, yes, is probably quite out of scope.

Thanks for your help,
E.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to