<div dir="ltr"><div><div><div><div>Hi Aaron,<br><br></div>The ReaderWriter mechanism is built around the Chain-Of-Responsibility pattern so it's actually up to the ReaderWriter implementation to decide what files it can handle, you don't even need an file extension, or for the filename to even be an actual file or path name - this allows one to implement various psuedo loaders that various different things such as pre-processing of loaded models or paging. <br><br></div>The only place that the extensions are stricktly checked is when initially loading the plugins - if no plugin that has already been loaded can handle a particle read*File() request then osgDB::Registry checks the extension and loads the plugin associated with that plugin. In the case of psuedo plugin the filename won't be mapping directly to a file system file so the one either pre-loads these plugins, or append a .myplugin to filename and then strip the ".myplugin" inside the the ReaderWriter. The .rot, .trans, .scale, .curl, .gdal plugins are all examples of plugins that use this approach.<br><br></div>In your case I'd recommend supporting both these approproaches - support the dummy extension that maps to your plugin name as well as support usage without the extension.<br><br></div>Robert.<br><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 July 2015 at 00:01, Aaron Andersen <span dir="ltr"><<a href="mailto:aaron@fosslib.net" target="_blank">aaron@fosslib.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I will preface this by saying I'm quite new to open scene graph, so if I'm missing something obvious please forgive me.<br>
<br>
I have a node/scene format I would like to implement in open scene graph. The data for the format is encapsulated in multiple files within a directory, not within a single file.<br>
<br>
How can I make a reader writer for a directory as opposed to a file? The ReaderWriter api is geared toward files (supportedExtension) and this is leaving me a little confused.<br>
<br>
Any help or guidance would be greatly appreciated.<br>
<br>
Thank you,<br>
Aaron<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>