Hi Robert,

Thanks for forging ahead with this testing program.  I've just read
through it and my first reaction is to consider what we can do to make
it less hard wired.  The osgconv --formats support allows one to query
details about the plugins, while not enough for testing purposes it
could certainly be extended further to help automated testing.

I considered that, but there are several missing features that made it simpler to just hard-code the plugins to test for starters. Going forward we could extend that functionality in order to make it more flexible, but I wanted to get something out there quickly.

As I see it, we'd need these features in order to discover which formats to test automatically:

* There doesn't seem to be a way to know if a given plugin is for reading images or geometry or something else. * The only way I can see to know if a plugin reads, writes or both is if the name contains Reader, Reader/Writer or whatever... If there's a typo in the name then that will fail, so I would suggest we add bools reader = true/false, writer = true/false or an enum READER, READER_WRITER, WRITER to be able to query this.

One problem I have even in my hard-coded implementation is that some image writers only write if the data is in a given pixel format (e.g. the HDR writer only writes if the data is RGBA32_F), and we have no way of querying for this or converting from one pixel format to another in order to test all writers. Or should it be the plugin's responsibility to convert the incoming data to the right pixel format if it can't write it directly? (I think it should be, and it could be made easier by creating some utility functions to do the actual conversion)

I wonder if tools like ImageMagik could be used in the mix to
generated lots of different image files in different formats.

Definitely. We could then programatically convert some image that's in OpenSceneGraph-Data to a given format, and then try to read that image. That would be much easier than to try and collect exemplars of all possible image formats to test with. We'd just have to see if ImageMagick can support most/all of the formats we want to test.

Let me know what missing features in the current plugin query system
you'd feel that could help make things easier to test.

I'll continue pondering and trying things out, and will post from time to time to see what you think.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to