Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by PeterJK · Jul 31, 2013 at 05:29 PM · camerasplit-screen

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.

alt text

screen shot 2013-07-31 at 18.25.07.png (20.1 kB)
Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jamora · Jul 31, 2013 at 05:44 PM 0
Share

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

avatar image PeterJK · Jul 31, 2013 at 05:59 PM 0
Share

Thanks for the reply.

I just double checked with a new scene and 4 new cameras, all with 0.5... same result.

avatar image perchik · Jul 31, 2013 at 06:02 PM 0
Share

Can you post your camera settings? Does the bottom row start at y= .5 or .51?

avatar image PeterJK · Jul 31, 2013 at 06:04 PM 0
Share

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.

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to make camera position relative to a specific target. 1 Answer

How to do a 4P split screen internet multiplayer 2 Answers

Pixel perfect camera with split-screen - is it possible? (2D) 2 Answers

Any clues on how to create a split-screen effect like the lego harry potter game? 3 Answers

Multiple cameras such as in MarioCart 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges