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

2017-07-10 Thread Voerman, L.
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  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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2017-07-10 Thread Johny Canes
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Forum

2017-07-10 Thread Sebastian Messerschmidt

Hi folks,

The forum seems up and running again. My best guess is, that Art Tevs 
(who is hosting the forum) has fixed the issue.


Cheers
Sebastian
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org