Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'd like to stream the output of two cameras to a separate process. Right now, it looks like the best way to do that is to grab the rendered camera views from the screen via platform specific screen capture hooks then compress them real time with h.264. Is there a way to grab the input of the cameras within unity and avoid rendering them to the screen?

One solution I'm considering involves using Unity's multiplayer capability to run the game on a separate machine and grab it from that screen buffer, unbeknownst to the player.

share|improve this question
3  
You're throwing around many ideas: Virtual robot eyes and ears, crowd-sourcing, artificial intelligence, research... Which one of those is your question? –  Anko Feb 25 '13 at 20:35
2  
What do you mean exactly by a "camera stream from Unity"? Do you mean to get video recording and project it into a 3D environment inside Unity? Do you mean to have two video input streams on different textures inside Unity? Do you mean using Unity to generate a video stream? –  Tetrad Feb 25 '13 at 23:28
    
Also, check the faq: "Your questions should be reasonably scoped. If you can imagine an entire book that answers your question, you’re asking too much." –  Laurent Couvidou Feb 26 '13 at 13:14
1  
Question is very vague. What exactly are you trying to achieve? –  Jason Coombes Mar 4 '13 at 9:17
add comment

1 Answer

If you want to allow the players to get some kind of flyCam CounterStrike-like you should have it calculated and redered in client machine because it's cheaper for your bandwith.

But actually what you are trying to perform could be done through RenderTexture and Camera.targetTexture despite the fact that you will not be able to avoid rendering process from the host machine you will still be able to not show the result on screen and actually send it to other players through network.

EDIT : To be more clear other players could also control the cam or any cam you want but the issue would still be the bandwith and processing power of the host machine for each cam you should count that you render and send the package to other player client... If other players have their own version of the game in local then you dont have to render it on the host you can render it on the client which will be much more responsive for everybody. I hope this answered your question

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.