Search Unity

Sharing the content of a unity camera (or webcam) to a remote user

Discussion in 'Multiplayer' started by juntoalmar, Mar 12, 2019.

  1. juntoalmar

    juntoalmar

    Joined:
    Dec 7, 2018
    Posts:
    6
    Hi,

    I’m developing a project in Unity (C#) with two users with PC laptops (Windows Surface).

    For the first user (A) I’m using Vuforia in order to have some AR content on top of the webcamera image. I have accomplished that, no problem.

    The plan now, is to stream the content of the AR Camera object to the second user (B) using multiplayer code.

    My plan is to render the content of the AR camera into a Render Texture and send this (somehow) through the net. Then apply the texture to a canvas Raw image in order to display it in B. Does this makes sense at all? Can I send the render texture with a “decent” framerate? (this won’t be a computer game, so extremely fast refresh isn’t needed).

    Alternatively (if that's not possible) I could try to send instead the content of the webcam stream (without any AR Vuforia augmentation). Have anyone tried to do that?


    Thanks in advance for your answers,
     
    juan-jo likes this.