<div dir="ltr">Hi Johny,<div>you can't reimplement or override the osgDB::findDataFile(), but with osgDB::setFindFileCallback() you can make it do whatever you want.</div><div><br></div><div>Regards, Laurens.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 10, 2017 at 3:28 PM, Johny Canes <span dir="ltr"><<a href="mailto:psijsma@gmail.com" target="_blank">psijsma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
More keywords would be: How to reimplement or override the osgDB namespace functions? They have<br>
Code:<br>
__declspec(dllimport)<br>
<br>
 and it seems the osgPlugins are hardcoded to use this.<br>
<br>
>From the osgrecipes I've got a small, effective and somewhat working ReaderWriterPhysFS. It reads my model.obj.physfs properly, however, osgdb_obj looks for the existence of the mtllib file using<br>
Code:<br>
osgDB::findDataFile<br>
<br>
<br>
<br>
What are my options to make subloads like textures work, because right now it says<br>
<br>
<br>
Code:<br>
Obj unable to find mtllib 'bla.mtl'<br>
<br>
<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Johny<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=71143#71143" rel="noreferrer" target="_blank">http://forum.openscenegraph.<wbr>org/viewtopic.php?p=71143#<wbr>71143</a><br>
<br>
<br>
<br>
<br>
<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>
</blockquote></div><br></div>