Hi Peter,

Oh there is another feature of the osgb plugin that I almost forget. :-) It
supports serializer control using the version number. You may read about it
at this page:
http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/2010-November/007273.html


Unfortunately the version number mentioned above will automatically be set
to OPENSCENEGRAPH_SOVERSION, so unless the OSG soversion changed, all your
modifications to your own serializers will not be separated. I guess we may
have to modify the plugin source code slightly to add an option to allow
setting the version number (or just an auxiliary version number) manually
when writing/reading files to achieve your goal.

Regards,

Wang Rui


2012/8/21 Peter Bako <osgfo...@tevs.eu>

> Hi mr. Wang Rui.
>
> Thank you for your response. I am actually an owner of your OSG book :-).
> I tried your suggestion, it works, but the limitation is that we can have
> only 2 versions of osgb files (old format - with the schema) and the new
> (actual format).
> Does this mean that there is no way to make more versions readable for my
> application? For example, could we generate schema for every version and
> try to load the file with the schema from the oldest version, if not
> succeed, then with the newer version, then with newer and so on until the
> load is successful (loaded component is not NULL).
> I don't see under the hood of binary serialization, I couldn't find the
> correct file.
>
> I need this functionality because I know, that my application will grow
> after release and maybe we will need to change the serialization after the
> release to the customers.
> Do you have any other idea to make this possible?
>
> Thank you once more!
>
> Cheers,
> Peter
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=49376#49376
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to