- Home /
Applying renderTexture to camera1 it takes full screen and overlaps camera 2
Im using ffmpeg to broadcast video. Im passing a RenderTexture to camera1.targetTexture. Then I pass camera1.targetTexture to ffmpeg for broadcasting my cameras. On my GUI canvas I have 2 cameras side by side. When I apply the Render texture to camera1.targetTexture I get a full screen of camera1 and overlaps camera2. Is there a way to make camera 1 have the same dimension and position after calling camera.targetTexture = _tempRT and not overlap camera2?
if (camera.targetTexture == null)
{
_tempRT = new RenderTexture(_width, _height, 24, GetTargetFormat(camera));
_tempRT.antiAliasing = GetAntiAliasingLevel(camera);
camera.targetTexture = _tempRT;//This sets the camera full screen
_blitter = Blitter.CreateInstance(camera);
}
Your answer
Follow this Question
Related Questions
I need to take (save) a screenshot from a camera other than the main one. How would I do this? 0 Answers
Cant find where the screenshots are saved or if they are even taken 1 Answer
Saving Texture at Run time and Reusing it 0 Answers
Rendering screenshot using multiple cameras and one rendertexture 0 Answers