I am fairly new to ThreeJS and I am curious to know if it is possible to achieve the following, and if so, how can it be done:
- Two web browser clients on separate machines want to load the same html-based Scene code, but view it from different perspectives initially.
- Client 1 wants to rotate the cube, and have client 2 see the cube being rotated.
- Client 2 wants to update the cube mesh texture on one face and have client 1 see the new texture.
- As more clients load the app, they also want to view the same mesh/updates from their own perspectives.
After going through the documentation on ThreeJS, it isn't clear to me whether each of the clients should be provided with their own 'camera' object for reference, or if multiple canvases, renderers, or just clever use of viewports are necessary...or perhaps something completely different...
I've seen examples like the galaxy sim on WebGL which involve syncing content between viewports, but I'm not sure if it's relevant in this case...
Any guidance would be greatly appreciated - thank you in advance!