<div dir="ltr"><div>My quick fix is to clear the cache on the first render (and call clear thereafter). OpenFlight files open and render fine now. Is this a safe fix?</div><div><br></div><div><div>void ViewerBase::frame(double simulationTime)</div><div>{</div><div> if (_done) return;</div><div><br></div><div> // OSG_NOTICE<<std::endl<<"CompositeViewer::frame()"<<std::endl<<std::endl;</div><div><br></div><div> if (_firstFrame)</div><div> {</div><div> viewerInit();</div><div><br></div><div> if (!isRealized())</div><div> {</div><div> realize();</div><div> }</div><div><br></div><div> _firstFrame = false;</div><div> }</div><div> advance(simulationTime);</div><div><br></div><div> eventTraversal();</div><div> updateTraversal();</div><div> renderingTraversals();</div><div><br></div><div><span style="white-space:pre"> </span>osgDB::Registry::instance()->clearObjectCache(); // ADDED TO CLEAR CACHE AFTER RENDER SINCE IT BECOMES CORRUPTED</div><div>}</div></div><div><br></div><br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/8a2ea36c-dee7-4600-88a1-cdcdc1b4da4b%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/8a2ea36c-dee7-4600-88a1-cdcdc1b4da4b%40googlegroups.com</a>.<br />