I'm having an issue with the plugin extension aliasing that i cannot seem to
correct. I want it to process files with 4 different extensions (.frad, .ftop,
.tplt, and .cdsc). I wrote a plugin CDSCReaderWriter with a constructor that
reports its ability to process such extensions as follows:
Code:
CDSCReaderWriter::CDSCReaderWriter()
{
supportsExtension("frad","FRAD File");
supportsExtension("ftop","FTOP File");
supportsExtension("tplt","TPLT File");
supportsExtension("cdsc","CDSC File");
}
Then in my scene loader, prior to loading of any files, I put this :
Code:
osgDB::Registry::instance()->addFileExtensionAlias("frad","cdsc");
osgDB::Registry::instance()->addFileExtensionAlias("ftop","cdsc");
osgDB::Registry::instance()->addFileExtensionAlias("tplt","cdsc");
After all this, when I call readNodeFile(...) with a ftop/frad/tplt file the
registry fails to associate the CDSCReaderWriter with these files.
Any ideas?
Thanks in advance!
Paul
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=45452#45452
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org