HI Hatwig,

The code is correct, you can't cull something that you don't have a
valid bounding volume for.  Distabling culling for a particular node
only affect that node and all it's parents, it does affect culling of
the children which can still have their own culling be effective.

If you don't like the default behaviour of AutoTransform w.r.t
bounding volume calculation you can always write your own or subclass
from AutoTransform to specialise it to be compatible with a fixed
bounding volume,

Robert.



On 27 March 2018 at 17:44, Hartwig Wiesmann <[email protected]> wrote:
> Hi Robert,
>
> I was not talking about the cullingActive flag but the method 
> isCullingActive! isCullingActive checks besides the cullingActive flag if the 
> boundary sphere is valid. As long as the boundary sphere is invalid 
> isCullingActive() returns false. This is the problem I reported.
>
>
> Code:
> inline bool isCullingActive() const { return 
> _numChildrenWithCullingDisabled==0 && _cullingActive && getBound().valid(); }
>
>
>
>
> Cheers,
> Hartwig
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73183#73183
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to