[osg-users] Sharing statesets across files
robert.osfield at gmail.com
Sun Sep 16 06:16:59 PDT 2007
I'm afraid there isn't a mechanism for sharing objects between
separate .osg or .ive files, only between one file.
I can certainly imagine ways of implementing such a scheme - something
like a shared resource file that all the files refer to. This will
require mods to .osg and .ive plugins in both the reader/writers so
its not a trivial change. The community are welcome to pick this ball
and run with it, I can review suggestions.
On 9/16/07, Matt Franklin <mattfranklin1 at googlemail.com> wrote:
> Is there a way of including a proxy stateset node or referencing a stateset
> stored in another file? I am trying to split up a single model into smaller
> pagable chunks. However, my original model makes significant use of shared
> statesets to maximise reuse of textures. When I break up my model each leaf
> node includes its own copy of the shared stateset. The total disk space used
> by the resulting fragments is a factor of ten larger than the original file.
> This in itself is not a problem but the resulting texture memory usage is
> also a factor of ten larger as a result of the lack of reuse.
> Thanks in advance,
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users