[osg-users] PHYSFS / VFS - How to make a custom osgDB:: function ?

Voerman, L. l.voerman at rug.nl
Mon Jul 10 07:01:05 PDT 2017


Hi Johny,
you can't reimplement or override the osgDB::findDataFile(), but with
osgDB::setFindFileCallback() you can make it do whatever you want.

Regards, Laurens.

On Mon, Jul 10, 2017 at 3:28 PM, Johny Canes <psijsma at gmail.com> wrote:

> Hi,
>
> More keywords would be: How to reimplement or override the osgDB namespace
> functions? They have
> Code:
> __declspec(dllimport)
>
>  and it seems the osgPlugins are hardcoded to use this.
>
> 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
> Code:
> osgDB::findDataFile
>
>
>
> What are my options to make subloads like textures work, because right now
> it says
>
>
> Code:
> Obj unable to find mtllib 'bla.mtl'
>
>
>
> Thank you!
>
> Cheers,
> Johny
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=71143#71143
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170710/6afa6a86/attachment.htm>


More information about the osg-users mailing list