Hi Robert.

On 18 July 2014 14:11, Robert Gosztyla <[email protected]> wrote:

> Is it possible to force osg plugin to store user values for nodes (set by
> setUserValue() method from osg::Node) somehow? Maybe using osgDB::Options,
> but haven't found any solution. Or only solution to store nodes with user
> values is writting separate plugin?
>

The new serializers allow you to implement your own serializers for your
own osg::Object subclasses, this allows you to extend the scene graph and
still have these extensions read/written via the .osgt, .osgx and .osgb
file formats.  Support for UserValues is already provided as long as you
provide the serializers.  Have a look at the existing
src/osgWrappers/serializers/*/*.cpp implementations to see how it's done.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to