Hi Tony, On 22 November 2015 at 23:16, Tony Vasile <[email protected]> wrote:
> I have looked at ValueObject and was wondering why there is no option to > save an osg::Object or an osg::Referenced object. Is this an omission or > intended? > I don't know where you got this impression. You can save custom osg::Object's to .osgb/.osgx,.osgt as long as you provide the serializers - see the OpenSceneGraph/src/osgWrappers/serializer/*/* for examples. The serializers for ValueObject can be found in src/osgWrappers/serializers/osg/ValueObject.cpp. Classes subclassed from osg::Referenced rather than osg::Object don't support serialization though as the serialization requires the RTT info that osg::Object adds. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

