Hello Jan,
OTOH, could we do a workaround somewhere, like replacing all backslashes
with slashes before passing the path to OpenVRML in the plugin, for
example?
I have implemented this in the attached file. Could you test it, please?
I do not have a way how to do this on Linux.
Geez, seems it isn't the backslashes after all, it's the drive
letter... Trying these with your latest version fails:
osgviewer sample.wrl (if sample.wrl is in OSG_FILE_PATH)
osgviewer G:/OpenSceneGraph-Data/sample.wrl
osgviewer G:\OpenSceneGraph-Data\sample.wrl
But, if my current directory is G:\, both of these work (before and
after your patch):
osgviewer OpenSceneGraph-Data/sample.wrl
osgviewer OpenSceneGraph-Data\sample.wrl
Sorry for the red herring about backslashes.
Looking at ReaderWriterVRML2.cpp, the OpenVRML method name
openvrml::browser::load_url got me thinking that maybe all it needs is
a valid "file://" - style URL. And it turns out that changing line 81 to
fileName = "file:///" + osgDB::convertFileNameToUnixStyle(fileName);
makes it work (both for OSG_FILE_PATH and direct full path with drive
letter). Does that work for you too on Linux? If so I suggest we put
that into the file, which would pretty much fix the last remaining
problem I had with the plugin.
Thnaks,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/