[osg-users] enabling image cache

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Wed Aug 5 05:04:33 PDT 2020


Thanks Robert!

On Sun, Aug 2, 2020 at 10:34 AM OpenSceneGraph Users <
osg-users at lists.openscenegraph.org> 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 osg-users+unsubscribe at googlegroups.com.
> 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
> osg-users at lists.openscenegraph.org
> 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 osg-users+unsubscribe at googlegroups.com.
> 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 osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/CAO-%2Bzi%3DisF1bDC9mp3WGv5-8WRFAKyUtp3uUFSRRfpZBFOpPYA%40mail.gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200805/d0937d16/attachment.html>


More information about the osg-users mailing list