Hi Wang Rui, Thanks for your efforts on adding schema support directly into the .osgb, I've done a quick test and I'm able to generate and read back in .osgb files with and whout schema. These changes are now checked into svn/trunk.
I've also tried the SchemaFile option and it outputs a schema file, but when reviewing the file it looks a bit too minimal to serve as a guide for 3rd party codes to use for deciding how to read the binary or ascii files. I believe we'd need to add type information along with the properties. Cheers, Robert. On Mon, May 10, 2010 at 12:15 PM, Wang Rui <[email protected]> wrote: > Hi Robert, > > Welcome back. :) I'd like to submit my inbuilt schema data support of > the OutputStream/InputStream implementations, which was just finished > last weekend with a few tests on Windows and Ubuntu. Hope it could > work and get more feedbacks soon. > > I've added a new option "SchemaData" to the osg2 plugin. Developers > may test the new feature with the command line: > > # osgconv cow.osg cow.osgb -O SchemaData > > It will record all serializer properties used in the scene graph, at > the beginning of the generated file. And when osgviewer and user > applications is going to read the osgb file, the inbuilt data will be > automatically read and applied first, to keep backwards compatibility > partly. This will not affect osgb files generated with older versions. > > Cheers, > > Wang Rui > > _______________________________________________ > 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
