Hi WeSee, Have you ported your submissions across to use setUserValue/getUserValue() on the Drawables? I'll wait to do a review till you post changes based on this suggest as I feel this is certainly the way to go. I don't know if you did it with your original changes but I'd also suggest make assignment of this of extra data as a osgDB::Options specified control as only a small number of users will require it and I don't wish other users to have a bigger and less efficient scene graph thanks to the unused data.
Thanks, Robert. On 21 January 2013 10:47, We See <[email protected]> wrote: > Hi Aurelien, > > I just tried it out => UserValues will be serialized (as I expected): > > > Code: > > Drawables 1 { > osg::Geometry { > UniqueID 14 > DataVariance STATIC > UserDataContainer TRUE { > osg::DefaultUserDataContainer { > UniqueID 15 > UDC_UserObjects 1 { > osg::ShortValueObject { > UniqueID 16 > Name "SMC" > Value 1027 > } > } > } > } > PrimitiveSetList 1 { > DrawArrays GL_QUADS 0 4 > } > ... > > > > > > > Cheers, > WeSee > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=52048#52048 > > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
