In this sample we showcase
remote control (viewpoints) between web-apps using Photon.
We setup a first 3D App (this one) like
App basic sample, where we load a scene with some viewpoints (POVs). Then we create a second App for remote control.
You can open this second App by clicking, tapping or using this QR-code (for instance in another device, like a smartphone):
Both apps join a Photon session named "sample-wapp-remote" via:
ATON.Photon.connect("sample-wapp-remote")
The control App can send custom events to this one (in this simple case, viewpoints requests named "POV"), via:
ATON.Photon.fireEvent("POV", id)
The 3D App (this one), handles incoming viewpoints requests via:
ATON.Photon.on("POV", function(id){...})
Note that depending on where the framework is deployed, everyone in same network can remotely request viewpoints. If the server is public, remote people can request specific viewpoints (or handle your own custom logic)! You can try it also on HMDs