[osg-users] Camera serializer and culling

Robert Osfield robert.osfield at gmail.com
Sun Apr 22 00:47:31 PDT 2018


Hi Julien,

On 21 April 2018 at 13:16, Julien Valentin <julienvalentin51 at gmail.com> wrote:
> Doing some RTT serialization I came into an issue:
> I just saw that only inheritedmask is the only CullSetting serialized. Neither CullMode neither NearFarComputeMode
> I also set Node::ActiveCulling to false (does it even do anything) but nothing do the trick: some of my Geometry are never drawn.
> If someone have an answer I would me very glad

I have the weekend off so I'm not going to dive into the OSG serialzer
implementation right now, it may well be that not all parameters are
serialized.  Some parameters are viewer centric rather than scene
graph centric so might be appropriate for serializing, I'll need to do
a full review.

Could you create a small example that illustrates the problem you are
seeing.  Thanks.

FYI, Node::setActiveCulling(bool) toggles on/off whether that node and
it ti's parents should have culling done on them during the cull
traversal.  With questions like this a quick search of osg and osgUtil
for instances of CullActive will show you how the rendering back-end
works using this bool.

Robert


More information about the osg-users mailing list