Robert
I realise what is happening. There must be an internal string
comparison, which is case sensitive, when trying to load the sub-tiles.
This only accepts "osga", so a file named "OSGA", which I assume is used
to build the required file name string, cannot find sub-tiles. This
happens even if the archive file name is specified on creation as "OSGA"
- so at the least there is an inconsistency. I also noted that changing
other parts of the file name to a different case does not affect the
loading of sub-tiles - only the extension. ReaderWriter etc always does
a case insensitive comparison on the extension, so it should be
compatible with that.
This was found using osgViewer after creating an archive similarly to
osgDem / osgTerrain, just as a check on the archive created, so it is
not important to me - I just think it is illogical.
Cheers
Alan
Robert Osfield wrote:
Hi Alan,
On 1/18/07, Alan Harris <[EMAIL PROTECTED]> wrote:
My archive (*.osga) file displays fine using osgviewer, but only the top
level is shown if renamed to *.OSGA (i.e. capitals).
I could not find anything in the archives about this. I know unix can be
picky about case in file names, but Windows ignores case in file names
(which to me makes sense).
The archive is a not a filesystem, just pretends to be one, its based
on std::string for filenames and these comparison between then is case
sensitive.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/