Hi Martin,
The solution is to either roll your own ReaderWriter for you custom
format (which is very easy just look at the osg plugin), or to get the
appropriate ReaderWriter from the Registry and then do s call to
readerwriter->supportExtension("myextension","my description of my
format");
There is no need to add any further complexity to the OSG.
Robert.
On Wed, Apr 14, 2010 at 6:08 PM, Martin Beckett <[email protected]> wrote:
> Now that we can roll custom xml based osg file formats, is it worth looking
> at the file-extention alias again?
>
> If I want to create an app (or several apps) based on OSG and I want to
> associate a fileformat with that app I need a unique file extention.
> The current system lets you alias a new extention with the osg2 handler, but
> the handler will then reject the file. We could adapt
> addFileExtensionAlias()supportsExtension() to allow the reader/writer to
> specify new extentions for the new extensible handler.
>
> This was discussed last year, but got a bit heated
> (http://forum.openscenegraph.org/viewtopic.php?t=4441)
>
> Thanks again Wang - and good luck with the book
>
> Martin
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=26796#26796
>
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org