- Home /
Camera split screen - how to get rid of unwanted black border?
I'm trying to do 4-way split screen, using 4 cameras and Normalized View Port Rect. I'm setting the width and height to 0.5 and the respective X and Y coordinates. But unfortunately I'm getting an unwanted horizontal black line - no vertical one though.
Anyone know why this is or how I can get rid of that line? I've attached a picture. Thanks for any help.
I'm not getting a line like that with my 4-way split screen. Are you sure that you don't have .51 etc. in one of your settings? Could be a computer rounding error. I get a similar line with .501
Thanks for the reply.
I just double checked with a new scene and 4 new cameras, all with 0.5... same result.
Can you post your camera settings? Does the bottom row start at y= .5 or .51?
Hmm. Just discovered that changing the aspect ratio to 'free aspect' removes the line. Upon further investigation this seems to be a problem where you have an 'odd' number of vertical resolution lines...that can't be evenly split in two so you get a black line.
Answer by PeterJK · Jul 31, 2013 at 06:06 PM
Oops! Simple cause and simple solution. If your vertical resolution has an odd number of lines, Unity inserts a black line between the two halves because it can't evenly divide the resolution in two. So just changing your window size to accommodate an even number of vertical resolution lines solves this.
Answer by usz · Apr 12 at 12:58 AM
I want this border. how can i get it? I tried make my viewport smaller but the problem is that I get last camera1 view in this space instead black line when player2 joins and screen is splited