- Home /
Broadcast rendered camera through networking.
Is it possible to fetch a specific camera in unity and send whatever it sees through networking in order to be rendered on a separate build/display? (preferably assuming we're running on just one pc) What's the best workaround to achieve this?
I would appreciate any kind of hint or help, thanks in advance!
Answer by Pangamini · Jan 14, 2014 at 07:19 PM
You need to render the camera to the texture, then convert that RenderTexture to a Texture2D (so you can easily get PNG bytestream from it). Then transfer this bytestream in a RPC and reconstruct a texture from it on the other device.
This is a very simple solution, not suitable for realtime image transfer over the internet, but it could work as a guideline for what you need.
Thank you very much, that seems to be a great solution. I had no idea how to approach this. I will try it immediately. At least this is a very logic starting point and it certainly helps a lot.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Two game views when build and run only one will build 0 Answers
Render Texture display different with its camera preview 1 Answer
Camera FOV in build with custom render pipeline in Unity 2019.3 1 Answer
Networked Game Issues - Camera does not follow script 1 Answer