<div dir="ltr">Hi all.<div><br></div><div>Another issue I discovered with 3.6.4 is that we now suddenly get unwanted culling. </div><div>At first it looks like a small feature culling thing (which we disable at global level with: </div><div><br></div><div>  // Don't do small feature culling<br>  osg::CullStack::CullingMode cullingMode = m_viewer->getCamera()->getCullingMode();<br>  cullingMode &= ~(osg::CullStack::SMALL_FEATURE_CULLING);<br>  m_viewer->getCamera()->setCullingMode(cullingMode);<br><div><br></div><div><br></div><div>However, this does not look like a small feature thing to me at all. Actually, it culls even when you get close to the objects.</div><div>Attached are two osgt-files.</div><div><br></div><div>One is saved from OSG 3.5.1 (works as intended).</div><div><br></div><div>Second one is saved from OSG 3.6.4 (where we get the unwanted culling).</div><div><br></div><div><br>If you use a later version of OSG (3.6.4) the one from 3.6.4 generates lots of warnings:</div><div><br></div><div>CullVisitor::apply(Geode&) detected NaN,<br>    depth=nan, center=(0 0 7.125),<br>    matrix={<br>        -nan(ind) -nan(ind) -nan(ind) -nan(ind)<br>        -nan(ind) -nan(ind) -nan(ind) -nan(ind)<br>        -nan(ind) -nan(ind) -nan(ind) -nan(ind)<br>        0.187249 -0.470484 -6.20285 1<br></div><div><br></div><div>whereas the one from 3.5.1 does not.</div><div><br></div><div>Anyone give me a hand on this? I am really stuck.</div><div>I was first totally into small feature culling, trying to dig up old code where people was trying to disable small feature culling on subgraphs etc. But that is not the issue here.</div><div><br></div><div>Any suggestion would help. I tried to make the scene as small as possible.</div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">__________________________________________<br>Anders Backman, HPC2N<br>90187 Umeå University, Sweden<br><a href="mailto:anders@cs.umu.se" target="_blank">anders@cs.umu.se</a> <a href="http://www.hpc2n.umu.se" target="_blank">http://www.hpc2n.umu.se</a><br>Cell: +46-70-392 64 67</div></div></div>