Hello,
While ReaderWriterDAE::readNode("file://petrus.dae") works,
writeNode(node, "file://petrus.dae") does not. The latter transforms
internally the file parameter in file://file://petrus.dae ... The point
is, that readNode calls
std::string fileName( osgDB::findDataFile( fname, options ) );
if( fileName.empty() ) return ReadResult::FILE_NOT_FOUND;
std::string fileURI = ConvertFilePathToColladaCompatibleURI(fileName);
while writeNode uses to evalutate fileURI just
std::string fileURI = ConvertFilePathToColladaCompatibleURI(fname);
thus findDataFile does not eliminate file:// if it is already presented.
My proposal is not to include "file://" within
ReaderWriterDAE::ConvertFilePathToCOLLADACompatibleURI, if the parameter
FilePath starts already with "file://"
http://test.aegee.org/osgPlugin-dae-rev7791.patch
... is my patch to resolve the inconsistence. It includes as addition
in writeNode the debug message
osg::notify(osg::INFO) << "ReaderWriterDAE( \"" << fileURI << "\" )"
<< std::endl;
that is present in readNode .
I will be glad if my patch finds its place in the OSG SVN.
Със здраве,
Дилян
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org