[osg-users] setCullMask and computeBounds of nodes

Jannik Heller scrawl at baseoftrash.de
Tue May 10 08:38:57 PDT 2016

Hi Andrew,

the computeBound() does not respect node masks. In theory it would be possible to skip the bounds update for nodes that were filtered by the cull mask, but implementing this would get complicated quickly - you have to consider there may be different cameras with different masks, maybe even running their cull phase in different threads (e.g. with the CullThreadPerCamera threading mode). So, for simplicity, the OSG will just computeBound() once per frame before the culling starts. Note, however, that bounds will *not* be updated for nodes that have not moved, so the bounding update is usually not a performance issue anyway.


Read this topic online here:

More information about the osg-users mailing list