Hi Wangmiao,

The osgDB::SharedStateManager should be able to help you out.  It
doesn't eradicate the sharing completely, as the textures will still
be stored in each file, but  after load time it can help you find
duplicate state and share it.

Longer term it'd be nice to have a formal mechnisn for sharing state
between models that have been serialized separately.  I don't have any
suggestion to a solution for this though, it'll require some time
working various solutions through.

Robert.

On 8/14/07, wangmiao <[EMAIL PROTECTED]> wrote:
> Hello ,
>   I have my model files with texture in it.Some of the texture is shared 
> through different model.I want to do some texture management to prevent those 
> textures be  loaded  more than once. I there any suggestions about how to 
> realize it?
> Thanks a lot.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to