Hello, I'm facing the following problem: I would like to allow the import of collada files from pathes containing spaces. I know that this is ugly, but it is normaly expected on the windows platform. Today this does not work for collada files because the file path is internally modified by replacing all space characters with string '%20'. This does lead then to problems on loading associated textures files.
I do not know what is the correct way to handle this, but a viable hack would be to undo the replacement in file 'OSGColladaImage.cpp': void ColladaImage::read(void) { OSG_COLLADA_LOG(("ColladaImage::read\n")); domImageRef image = getDOMElementAs<domImage>(); domImage::domInit_fromRef initFrom = image->getInit_from(); if(initFrom != NULL) { daeURI imageURI = initFrom->getValue(); std::string imagePath = imageURI.path(); boost::replace_all(imagePath, "%20", " "); ... Could we introduce such a hack? Is there any better alternative solution? What do you think? Best, Johannes ____________ Virus checked by G DATA AntiVirusKit Version: AVF 21.64 from 26.05.2010 Virus news: www.antiviruslab.com ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users