> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:osg-users-
> [EMAIL PROTECTED] On Behalf Of Gordon Tomlinson
> Sent: 18 November 2007 19:17
> To: 'OpenSceneGraph Users'
> Subject: Re: [osg-users] Collada plugin DAE flaws
>
> Hi Roger
>
> I cannot seem to get a URI that will load of a network location, I have
> tried "/////SomeMachine/somedir/somefile.dae" and
> "file://///SomeMachine/somedir/somefile.dae" and variations but cannot
> load
> I just get a file note found while it works locally
>
> Can you load of a networked file ?
>
> Sadly I only have access to release files for a while so cannot really
> step
> into it to find the issue ;(
>
>
>
[Roger James]
Hi Gordon.
I am afraid it worse than I intimated in my last message. Dae uses uris
internally but osg only expects file names to be passed to plugins.
The dae reader contains the following code
osgDB::ReaderWriter::ReadResult
ReaderWriterDAE::readNode(const std::string& fname,
const osgDB::ReaderWriter::Options* options) const
{
SERIALIZER();
std::string ext( osgDB::getLowerCaseFileExtension(fname) );
if( ! acceptsExtension(ext) ) return ReadResult::FILE_NOT_HANDLED;
std::string fileName( osgDB::findDataFile( fname, options ) );
if( fileName.empty() ) return ReadResult::FILE_NOT_FOUND;
findDataFile will choke on the uri you passed to it.
You can browse the source at www.openscenegraph.org just select the "Browse
Source" option from the menu bar. You might have saved yourself a bit of
head scratching that way :-)
This means that only simple path names get through complex windows ones
break it.
I doubt if
"\\?\UNC\<server>\<share>"
Will work :-)
Roger
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org