Stream multiple renderwindows with wslink

Hello again!

I was trying to create an imageStream server which streams 3 renderwindows on different ports. But after setting up everything, all streams are showing the same image.

Is “getApplication” from wslink.ServerProtocol a singleton, so that it does not matter that I have multiple objects of the the server?

self.getApplication().GetObjectIdMap().SetActiveObject("VIEW", renderWindow)

I guess one solution would be to start multiple processes, but this would be uncomfortable since the renderwindows should be synchronized. Do you see another way to achieve this?

Thank you and best regards

Christoph

2 Likes

Any updates on this?

You can’t have more than 1 active view. You need to use each view id independently.

Ive made it work here, im creating each renderWindow and passing the id to the ui to use the imageStream based on the id i get from self.id = self.engine.server.getApplication().GetObjectIdMap().GetGlobalId(self.renderWindow)