sharing the same icon image across multiple objects. #2032
Unanswered
keince
asked this question in
Support Q&A
Replies: 1 comment 1 reply
-
I was sharing the same image icon across multiple PaceNode objects (loaded once) i am pretty sure, i haven't used TrackNode but i would think the same would be true, i had to allow each of my PlaceNode to have it's own unique color of the same image icon, so i changed to cloning the original image, then coloring it, so the worst case should be that you only have to read the image once, and clone it, osgEarth/ImageUtils:60: static osg::Image* cloneImage( const osg::Image* image ); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does osgEarth have the ability to share the same icon across multiple objects? We have several hundred TrackNodes that all use the same icon image. Right now, we just load the same image each time the TrackNode is created which seems wasteful and slow.
If there's no support for this, can I use osgDB::SharedStateManager() with osgEarth to share the icon image?
Thx
Shayne
Beta Was this translation helpful? Give feedback.
All reactions