Search Unity

Third Party Voxel Game Multiplayer Photon?

Discussion in 'Multiplayer' started by ashjack, Jan 29, 2014.

  1. ashjack

    ashjack

    Joined:
    Jun 9, 2013
    Posts:
    44
    Hi. I have used a voxel engine that I found on YouTube(http://www.youtube.com/watch?v=qOeaG2Q686Y), and wish to add multiplayer via photon, but it occurred to me that each player who joins the room will have a different terrain generated for them, and the multiplayer would not work. How could I work around this or fix this?

    I watched a YouTube video on how to use Photon, so I don't need any help in that department.

    Thanks

    AshJack
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,066
    You would have to sync every single voxel to get the same terrain on all clients.
    As this is potentially a lot of data (!) you should just send updates where needed in the smallest possible way. If you send integers for type and float positions per block, your game will break really fast.
     
  3. ashjack

    ashjack

    Joined:
    Jun 9, 2013
    Posts:
    44
    Thanks for your reply! The game works only in chunks, not single blocks, so I'll unload unused chunks.

    Thanks again

    AshJack