Solved this,

it was enough to issue the      osg::ChangeList::setReadWriteDefault();
before the osginit.

Sorry for the annoyance :)

> -----Messaggio originale-----
> Da: [EMAIL PROTECTED] [mailto:opensg-users-
> [EMAIL PROTECTED] Per conto di [EMAIL PROTECTED]
> Inviato: mercoledì 15 novembre 2006 18.26
> A: [email protected]
> Oggetto: [Opensg-users] cluster client hanging when updating scene
> 
> 
> 
> Hi opensg users;
> 
> 
> 
> i am trying to set up a 2 point client server architecture.
> 
> Basically the client part is running a qt application
> 
> and the server is just a small GLUt window very similar
> 
> to the 12ClusterServer application.
> 
> 
> 
> I set up the scene like usual:
> 
> 
> 
> osg::ChangeList::setReadWriteDefault();
> 
> osg::init ();
> 
> 
> 
> m_pWin= osg::MultiDisplayWindow::create();
> 
> beginEditCP(m_pWin);
> 
>       m_pWin->setConnectionType("Multicast");
> 
>       m_pWin->getServers().push_back("ciao");
> 
>       // dummy size for navigator
> 
>       m_pWin->setSize(300,300);
> 
> endEditCP(m_pWin);
> 
> 
> 
> // retrieve all the sensitive stuff
> 
> m_pMgr = new osg::SimpleSceneManager;
> 
> m_pMgr->setWindow(m_pWin);
> 
> 
> 
> m_pCamera = osg::PerspectiveCamera::create ();
> 
> beginEditCP(m_pCamera);
> 
>       m_pCamera->setNear (0.1);
> 
>       m_pCamera->setFar (1000);
> 
> endEditCP(m_pCamera);
> 
> 
> 
> /* build a shadowviewpot with the camera attached */
> 
> 
> 
> // issue viewports changes to the window
> 
> beginEditCP(m_pWin);
> 
> {
> 
> m_pWin->addPort(m_pMainShVprt);
> 
> }
> 
> endEditCP(m_pWin);
> 
> 
> 
> m_pMgr->showAll();
> 
> 
> 
> m_pWin->init();
> 
> 
> 
> 
> 
> 
> 
> 
> 
> now, when I update the manager navigator and then issue an
> 
> 
> 
> // redraw the cluster window
> 
> m_pMgr->redraw();
> 
> // clear change list. If you don't clear the changelist,
> 
> // then the same changes will be transmitted a second time
> 
> // in the next frame.
> 
> OSG::Thread::getCurrentChangeList()->clearAll();
> 
> 
> 
> The application hangs on the redraw command, freezing without crashing.
> 
> My best guess is that the client and the server are both waiting
> 
> For news one from the other without being able to talk.
> 
> 
> 
> The small dot in this theory is that the server ackowleges when the client
> 
> Connects/disconnects.
> 
> 
> 
> Any clues?
> 
> 
> 
> Thanks,
> 
> Enrico
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to