InteractiveScapeGmbH / TuioUnityClient

MIT License
13 stars 2 forks source link

Multiple Unity clients #14

Open mroglic opened 1 week ago

mroglic commented 1 week ago

Hi @eqbic ,

Does this library allow multiple clients to listen to the same events from one TUIO device? Also is there a way to get connection status from TUIO Session?

At the moment, I am testing with the TUIO Simulator (https://github.com/gregharding/TUIOSimulator), and it seems that events are only registered for the Unity client that connects first, leaving the second client without any TUIO messages. I also tried to find a 'broadcast' option in the simulator but didn't find one. Also does ScapeTangible have this option?

Do you have any suggestions on how to overcome this?

Thanks!

eqbic commented 1 week ago

I think it is not possible connect to the tuio simulator with multiple clients. Thats because the simulator uses udp connection and allows only one connection to a single port. If you would use a simulator which supports websocket it should be no problem to connect with multiple clients using websocket to a single tuio sender.

Our ScapeTangibles support websocket and multiple udp destinations. So with them it would be possible to connect multiple clients.

Best regards.

paul-peters commented 1 week ago

This TUIO simulator supports websockets: https://github.com/InteractiveScapeGmbH/TUIO11_Simulator

mroglic commented 1 week ago

This is working great with multiple clients, thanks!