<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">I'm trying to do the following.</font>
<br>
<br><font size=2 face="sans-serif">A vtk application A (the server) that renders a scene and has an interactor</font>
<br><font size=2 face="sans-serif">an other vtk application B (the client) that renders an onther scene and has also an interactor </font>
<br>
<br><font size=2 face="sans-serif">(in fact A and B are the same program ran twice)</font>
<br>
<br><font size=2 face="sans-serif">What I'd like to achieve is this:</font>
<br><font size=2 face="sans-serif">Whenever the user changes the camera in application A, the camera of the application B is updated accordingly.</font>
<br><font size=2 face="sans-serif">but when the user moves the camera in B, the camera is not changed in A.</font>
<br>
<br><font size=2 face="sans-serif">I managed to do almost what I want using a socket communication.</font>
<br><font size=2 face="sans-serif">a callback that reacts on camera modifed events in A sends through the socket the position of the camera, the focal point and the viewup vector.</font>
<br>
<br><font size=2 face="sans-serif">application B listens to the socket and updates its own camera.</font>
<br><font size=2 face="sans-serif">Unfortunately, this listening is blocking the interface of B.</font>
<br>
<br><font size=2 face="sans-serif">Then I tried to set the socket listenner of B in a spawned thread so that the main interaction loop continues to occur.</font>
<br><font size=2 face="sans-serif">But then, the renderer->Render() call in the thread fails saying that: "</font>
<br><font size=2 face="sans-serif">vtkWin32OpenGLRenderWindow (018F0F40): wglMakeCurrent failed in MakeCurrent(), error: resource in use" (translation from french La ressource demandée est en cours d'utilisation).</font>
<br>
<br><font size=2 face="sans-serif">What is the solution then ?</font>
<br>
<br>