[osg-users] cullcallback and visitor ?
u.hertlein at sandbox.de
Fri Sep 26 02:29:32 PDT 2008
Vincent Bourdier wrote:
>> Vincent Bourdier wrote:
>>> If if do a nodevisitior, I've the problem that the operator() takes a
>>> nodevisitor in parameter and so I can't obtain the cull state with that.
>>> (method isCulled() not aviable from a node visitor)
>> The way I understood Robert, the fact that your operator() is called means
>> the node in
>> question is *not* culled so you could simple set your _isCulled=true. And
>> don't forget to call traverse().
> Ok, this is a simple and good way to have the result, but not sufficient :
> cull = true when operator() is called, but if the operator is not called,
> cull still = true and will never be false...
Yes it will never be reset by the cull traversal so you have to do that yourself e.g. just
before cull or maybe after you've read the cull state from your class.
More information about the osg-users