<div dir="ltr"><div>Here is a snippet from osgcatch.cpp:</div><div><br></div><div>    // enable the image cache so we don't need to keep loading the particle files<br>    osgDB::ReaderWriter::Options* options = new osgDB::ReaderWriter::Options;<br>    options->setObjectCacheHint(osgDB::ReaderWriter::Options::CACHE_IMAGES);<br>    osgDB::Registry::instance()->setOptions(options);</div><div><br></div><div>But I haven't tried it myself.</div><div><br></div><div>Regards,</div><div>Per<br></div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 1 Aug 2020 at 17:05, Trajce Nikolov NICK <<a href="mailto:trajce.nikolov.nick@gmail.com">trajce.nikolov.nick@gmail.com</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">Hi Community,<div><br></div><div>I have two different files sharing an image. is there a way to cache (without extra coding) the shared resource? for example</div><div><br></div><div>osgviewer file1 file2 </div><div><br></div><div>and the image to be loaded once and reused later?</div><div><br></div><div>Thanks a bunch as always!</div><div><br></div><div>Cheers,</div><div>Nick</div><div><div><br></div>-- <br><div dir="ltr">trajce nikolov nick<br></div></div></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" target="_blank">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/CAO-%2BzikVOcbto4u832jz-wC%2BqoU3NJi09drbhzSmuVDgf5cEMw%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/osg-users/CAO-%2BzikVOcbto4u832jz-wC%2BqoU3NJi09drbhzSmuVDgf5cEMw%40mail.gmail.com</a>.<br>
</blockquote></div></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/CA%2BJHv0SG6SJ1UwGUHMaQv%3DNWgdO%2BcYA%3D128hvZqezHvcCUfj8g%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/CA%2BJHv0SG6SJ1UwGUHMaQv%3DNWgdO%2BcYA%3D128hvZqezHvcCUfj8g%40mail.gmail.com</a>.<br />