[osg-users] AutoTransform, ROTATE_TO_SCREEN and small feature culling

Robert Osfield robert.osfield at gmail.com
Thu Mar 29 00:29:32 PDT 2018


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 <hartwig.wiesmann at skywind.eu> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list