<div dir="ltr">That is so strange..!<div><br></div><div>> osgversion</div><div>OpenSceneGraph Library 3.6.4<br></div><div><br></div><div>

Captured a short video of the issue:</div><div> osgviewer --window 0 0 1024 768 osg_3.6.4_culled.osgt</div><div><br></div><div></div><div><a id="gmail-link" href="https://gofile.io/?c=A6LCw6" target="_blank" style="box-sizing:border-box;color:rgb(81,203,206);text-decoration-line:none;font-family:Montserrat,"Helvetica Neue",Arial,sans-serif;font-size:14px;text-align:center">https://gofile.io/?c=A6LCw6</a>  <br></div><div><br></div><div>What on earth could be the difference here? Have tested on several computers (only Windows though).</div><div>Windows 10, NVida GeForce card.</div><div><br></div><div>Also, how it works in 3.5.1:</div><div><br></div><div>">"osgversion<br>OpenSceneGraph Library 3.5.1<br></div><div><br></div><div><div>osgviewer --window 0 0 1024 768 osg_3.5.4_not_culled.osgt</div><div></div></div><div><a id="gmail-link" href="https://gofile.io/?c=i2Ssx0" target="_blank" style="box-sizing:border-box;color:rgb(81,203,206);text-decoration-line:none;font-family:Montserrat,"Helvetica Neue",Arial,sans-serif;font-size:14px;text-align:center">https://gofile.io/?c=i2Ssx0</a>  <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 9, 2020 at 2:00 PM Voerman, L. <<a href="mailto:l.voerman@rug.nl">l.voerman@rug.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Anders,</div>I did have a quick look, but I can't see any unwanted culling, nor do I get the warnings you write about.<div>tried versions 3.6.3 3.6.4 and 3.6.5 on windows with</div><div>OSG_NOTIFY_LEVEL=INFO</div><div>osgviewer osg_3.6.4_culled.osgt</div><div><br></div><div>Looking in the file I see a lot of empty osg::Text nodes - I guess that causes an empty bounding sphere in the specific version of osg you have.</div><div>Laurens.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 9, 2020 at 1:19 PM Anders Backman <<a href="mailto:andersb@cs.umu.se" target="_blank">andersb@cs.umu.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><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 clear="all"><div>I tried to attach the files, but it made the message too big.</div><div>Instead I shared the files using gofile: <a id="gmail-m_-6840964748152791968gmail-m_6060730565742848610gmail-link" href="https://gofile.io/?c=M5xPmU" style="box-sizing:border-box;color:rgb(81,203,206);text-decoration-line:none;font-family:Montserrat,"Helvetica Neue",Arial,sans-serif;font-size:14px;text-align:center" target="_blank">https://gofile.io/?c=M5xPmU</a></div><div>There are two files osg_3.5.1_not_culled.osgt</div><div>and osg_3.6.4_culled.osgt</div><div><br></div><div>Thanks,</div><div>Anders</div><div><br></div><div><br></div>-- <br><div dir="ltr">__________________________________________<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>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="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>