Hi,
using OSG 3.0.1 I've implemented a custom class deriving from osg::Object that should support serialization:
The register object wrapper looks like this:
Code:
REGISTER_OBJECT_WRAPPER( MyLights,
new dx::MyLights,
dx::MyLights,
"osg::Object dx::MyLights" )
{
ADD_USER_SERIALIZER( VisionLight );
}
While the serialization to osgt works perfectly I still get msgs during serialization:
> OutputStream::writeObject(): Unsupported associated class osg::Object
> InputStream::readObject(): Unsupported associated class osg::Object
Why is that happening? I know this occurs because my inheritance says "osg::Object dx::MyLights" but I've searched through the osg source for classes deriving from osg::Object and they all do the same inheritance, first osg::Object then their own one
Example:
Code:
REGISTER_OBJECT_WRAPPER( AutoTransform,
new osg::AutoTransform,
osg::AutoTransform,
"osg::Object osg::Node osg::Group osg::Transform osg::AutoTransform" )
How can I properly solve this? Leaving osg::Object simply out? Or do all those classes generate serialization messages?
Thanks
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62924#62924
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org