Thanks all for the info, much appreciated! Regards, Morne
On Fri, Jan 9, 2009 at 2:18 AM, Paul Martz <[email protected]> wrote: > A while back, I posted a submission that tried to programmatically determine > which formats were supported, did they support read or write, and did they > support the "read/writeNode", "read/writeImage", "read/writeObject", or > "read/writeHeightfield" interface. > > To query for reading, the code created an empty file in a temp directory > with the appropriate extension, then tried to read that file with OSG. It > depended on the plugin returning the correct error code: FILE_LOADED or > ERROR_READING_FILE (because it was, after all, an empty file) meant it was > supported, anything else indicated a lack of support. And it tried to do > something similar with writing. > > Unfortunately, this algorithm didn't work because many plugins contain bugs > than cause them to return the incorrect error code. This caused my algorithm > to return incorrect results a large percentage of the time. As a result, the > submission was rejected. > > Ultimately, though, Robert did see value in having a way to determine some > level of file support, and he coded up the "osgconv --formats" support. > While this lists supported formats, unfortunately it provides no information > about whether read or write is supported, or which interface is supported. > On the plus side, the current implementation has a mechanism to display > information about supported plugin Options; on the minus side, the output is > somewhat incomplete, and we're still waiting for members of the community to > flesh this out. > > In summary, the best mechanism available today to determine supported > formats is to look at the code. > > Paul Martz > Skew Matrix Software LLC > http://www.skew-matrix.com > +1 303 859 9466 > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Morné > Pistorius > Sent: Thursday, January 08, 2009 3:11 AM > To: OpenSceneGraph Users > Subject: [osg-users] Exportable file formats > > Hi guys, > > I am trying to figure out which of the osg plugins support > writing/exporting. Is there a list of supported formats or a way to query > osg to find out which plugins support exporting? I will be happy if I can > just get a handful - from comments read on the list, I think these are all > supported: > > osg > ive > obj > flt > collada (dae) > > Thanks, > Morne > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

