Thanks Robert! On Sun, Aug 2, 2020 at 10:34 AM OpenSceneGraph Users < [email protected]> wrote:
> HI Nick, > > The osgDB::ObjectCache can be used to share loaded data, so if the images > are loaded from external files this will ensure the data gets shared. > > There is also the utility for sharing state at runtime, but I don't recall > it's name. > > In each of these cases there is a limit to what it'll figure out as > shared, none of them look at the internal data. > > In the VulkanSceneGraph I have implemented the ability to place objects > that you wish to share into a vsg::Objects container that you can place in > an external file, then the model scenes then reference this with the a > cache ensuring that the vsg::Object container is only loaded once and > shared there after. The scheme is able to connect all the object IDs > together so everything is consistent. This scheme only works with native > VSG scene graphs as they obviously have to know about the scheme. > > I mention the VSG approach as it should be possible to do something > similar with the OSG, as the OSG has, in principle, most of the required IO > features. > > Robert. > > -- > You received this message because you are subscribed to the Google Groups > "OpenSceneGraph Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/osg-users/mailman.7313.1596357254.3541.osg-users-openscenegraph.org%40lists.openscenegraph.org > <https://groups.google.com/d/msgid/osg-users/mailman.7313.1596357254.3541.osg-users-openscenegraph.org%40lists.openscenegraph.org?utm_medium=email&utm_source=footer> > . > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- > You received this message because you are subscribed to the Google Groups > "OpenSceneGraph Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/osg-users/mailman.7313.1596357254.3541.osg-users-openscenegraph.org%40lists.openscenegraph.org > . > -- trajce nikolov nick -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/CAO-%2Bzi%3DisF1bDC9mp3WGv5-8WRFAKyUtp3uUFSRRfpZBFOpPYA%40mail.gmail.com.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

