Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

Using photon to make recordings.

$
0
0
I have a multiplayer VR unity application that uses photon (PUN) (mostly to keep all game objects synchronized). I now wish to add a recording element to the VR application, the bulk of the recording consists of changes to game object positions. But these changes are already being sent by photon to synchronize all the clients! So I tried to implement my recording system using photon.

The recording has to be done server side because players can connect/disconnect as they please.

Possible approaches:
1) Attach an extra server sided application to the photon room that listens for changes made by the clients.
This seems the most logical approach, the problem is that since my clients use PUN my recording client that listens would also have to use PUN and thus unity (as far as I understand photon).
Using unity would create a lot of overhead, since I would have to run a unity application for each multiplayer VR session.

2) Create a private photon server and listen to traffic.
This one is a bit out there because I don't think that there is a "supported" way to do this, so this would have to be done in a hacky way + I'm taking a big leap in assuming that I can even deserialize the data I need.

3) Don't use photon and send data a different way.
This seems needlessly complex (a photon connection already exists, so why not use it?), data will be sent twice, .... Doesn't seem like a good approach.

Is there any better way that I'm missing?
Any questions/answers or suggestions are appreciated.

Viewing all articles
Browse latest Browse all 1557

Trending Articles