Hi Robert,
On 18 July 2014 14:36, Robert Gosztyla <[email protected]> wrote: > > robertosfield wrote: > > Hi Robert. > > The new serializers allow you to implement your own serializers for your > own osg::Object subclasses... > > > > > This means that i need to subclass all osg classes to have such > possibility? What about osg::Group, osg::Transform and osg::Geode? Is it > possible to just add new serializer to them? In fact, i'm not subclassing > any osg classes now, so it would be good to avoid it still. To serialziers your user values you just need to do is subclass the user value objects you have from osg::Object and then provide the serializers for these, you don't need to touch any other OSG classes like osg::Group/Transform etc. The OSG support for .osgt/.osgb/.osgx will automatically write out/read any user values that you provide serializers for. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

