Hi Jp, Thanks for this info. I wrote a node visitor to change the texture setting after load by calling "texture->setUnRefImageDataAfterApply(false);" and that does indeed seem to fix the problem, so I'm pleased others have come up with the same fix.
Though I'm now wondering if I still need to consider the potential problems sharing of opengl objectids between contexts that Robert suggested might have been the problem. i.e. is sharing scene graph data between viewers running on different threads intrinsically safe? It seems stable for me, but I'm wondering if it would be better to implement my own "per viewer" object cache instead of using the shared one that results from using the cache provided by osg registry singleton. Regards. Chris. J.P. Delport wrote: > Hi, > > On 13/01/2012 18:37, Chris Denham wrote: > > > Ah ha, > > Another interesting experiment doing the round trip from osg to ive and > > back. > > e.g. > > osgconv -O noTexturesInIVEFile cow.osg cow.ive > > osgconv cow.ive cow2.osg > > > > cow2.osg has the same problem and cow.ive, and on comparison on cow.osg and > > cow2.osg I noticed the image definition has grown an > > "unRefImageDataAfterApply TRUE" > > > > I get the same texture problem when I load cow2.osg, and it behaves > > normally again when I set the 'unRefImageDataAfterApply' flag to false. > > > > So my guess is that the image data may getting released before the other > > viewer instance has finished with it? > > > > Yes, I think so. > > See here for changing the unref setting after load: > http://article.gmane.org/gmane.comp.graphics.openscenegraph.user/52034 > http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/71893 > > rgds > jp > > > > > > > Chris Denham > > > > ------------------ > > Read this topic online here: > > http://forum.openscenegraph.org/viewtopic.php?p=44816#44816 > > > > > > > > > > > > _______________________________________________ > > osg-users mailing list > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > -- > This message is subject to the CSIR's copyright terms and conditions, e-mail > legal notice, and implemented Open Document Format (ODF) standard. > The full disclaimer details can be found at > http://www.csir.co.za/disclaimer.html. > > This message has been scanned for viruses and dangerous content by > MailScanner, > and is believed to be clean. > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44828#44828 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

