Hello Michael, On 09/21/2010 05:02 AM, Michael Raab wrote: > I'm using a second OpenSG thread (beside the main one) to generate some > textures asynchronously (using aspect 1). Once a texture is generated I'm > trying to sync the newly generated texture into our main thread: > > texGenThread->getChangeList()->apply(); > texGenThread->getChangeList()->clearAll(); > > The displayed results are resonable, no crashes (standalone mode). > My problem arises when I try to run this application in cluster mode. There > the generated textures are not displayed. I get several lines of the > following warning: > > WARNING: Can't find container id:7700 > > I guess thats the ID of one my asynchronously generated images. > Debugging the 2 changelists, it seems to me the creation of my texture image > gets never sync'd to the main changelist. Looking at the code of > ChangeList::apply() only AddRef, SubRef and Changed fields get sync'd. What > happens to created and destroy FC's? Do I miss something?
applying a changelist to a thread does not add the applied changes to the target thread's own changelist (this is done to avoid bouncing changes back and forth when syncing in both directions). You need to merge the changes from your texture generation thread into the main thread's changelist so they get shipped across the cluster: texGenThread->getChangeList()->apply(); OSG::Thread::getCurrentChangeList()->merge(*texGenThread->getChangeList()); texGenThread->getChangeList()->clearAll(); Cheers, Carsten ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users