<div dir="ltr"><div>Probably it does, however I tried deactivating Culling and my scene is not rendered properly anymore (some LOD nodes are not rendered).<br><br></div>My bounding spheres are correctly calculated. Are they set with node->setInitialBound(calculatedBound); ?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-22 18:54 GMT+01:00 sam <span dir="ltr"><<a href="mailto:brkopac@gmail.com" target="_blank">brkopac@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When you zoom your mouse feel forward it's possible that the new sphere is outside the camera's view and thus being culled out of the drawing. Check to make sure the sphere doesn't end up behind the camera.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 22, 2017 at 10:38 AM, Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno.manata.oliveira@gmail.com" target="_blank">bruno.manata.oliveira@gmail.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am almost sure I am making some mistake on setting the node's bounding sphere. Is my code correct on that example I gave?<br></div><div class="m_3696945998901663916HOEnZb"><div class="m_3696945998901663916h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-06-22 18:29 GMT+01:00 Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno.manata.oliveira@gmail.com" target="_blank">bruno.manata.oliveira@gmail.c<wbr>om</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Sorry I'm not sure what you're asking.<br><br></div>I manipulate my scene with a Mouse Manipulator (Trackball), hence the view is refreshed and I can see my nodes, but if I zoom in they disappear<br></div><div class="m_3696945998901663916m_5732268745424563675HOEnZb"><div class="m_3696945998901663916m_5732268745424563675h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-06-22 18:23 GMT+01:00 Sam Brkopac <span dir="ltr"><<a href="mailto:brkopac@gmail.com" target="_blank">brkopac@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bruno,<br>
<br>
After you manipulate the coordinates do the new bounds result in the node getting culled by the camera?<br>
<br>
Thanks, Sam<br>
<div><div class="m_3696945998901663916m_5732268745424563675m_-7984642786503318439h5"><br>
> On Jun 22, 2017, at 10:12, Bruno Oliveira <<a href="mailto:bruno.manata.oliveira@gmail.com" target="_blank">bruno.manata.oliveira@gmail.c<wbr>om</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> I have some osg::Nodes with some initial geometry coordinates.<br>
><br>
> Then, after some rendering, at some point I need to transform those initial coordinates. I do something like this:<br>
><br>
><br>
> void MyNodeGeometry::convertCoordin<wbr>ates() {<br>
><br>
> auto* vert = this->getVertexArray();<br>
><br>
> for (int i = 0; i < vert->size(); i++) {<br>
> convertCoordinate(vert->opera<wbr>tor[](i));<br>
> }<br>
><br>
> this->setVertexArray(vert);<br>
><br>
> this->setInitialBound(this->c<wbr>omputeBound());<br>
> this->firtyBound();<br>
><br>
> }<br>
><br>
><br>
> Also, in all parent Nodes I call<br>
><br>
> parentNode->setInitialBound(t<wbr>his->computeBound());<br>
> parent->firtyBound();<br>
><br>
><br>
><br>
> However, when I do this, I can see my points, BUT when I try to manipulate my scene with the mouse, the data disappears if I zoom in, and appears again if I zoom out again.<br>
> This seems like my node's bounds are not well set, But I manually verified all node's bounds and they are correct....<br>
><br>
> Any idea?<br>
</div></div>> ______________________________<wbr>_________________<br>
> osg-users mailing list<br>
> <a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
<br></blockquote></div><br></div>