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

Johny Canes psijsma at gmail.com
Mon Jul 10 06:28:35 PDT 2017


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







More information about the osg-users mailing list