Re: [osg-users] Writing osg::Group to osg and osgt : Two different results

2015-03-03 Thread John Pasnom
Hi, Robert, I've attached both files (or I've tried, looks like it ignores the second attachment...) Another interesting part is, as far as I can see, the UserData should be serialized as well. The patch posted http://forum.openscenegraph.org/viewtopic.php?t=5561 seems to be already in 3.0.1

[osg-users] Serialization always says: Unsupported associated class osg::Object

2015-03-03 Thread John Pasnom
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_SER

[osg-users] Writing osg::Group to osg and osgt : Two different results

2015-03-03 Thread John Pasnom
Hi, using 3.0.1 I created the following test code: Code: osg::ref_ptr group = new osg::Group(); group->setName( "dummy group" ); auto path = destDir_ + "/group.osg"; osgDB::writeNodeFile( *group, path ); osgDB::writeNodeFile( *group, path+"t" ); The resulting group however is entirely diffe