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 Strommen · Apr 19, 2013 at 04:38 PM · newbiecamerasangles

Brand new to Unity, trying to grasp some basic stuff related to cameras and angles

Just started learning Unity yesterday, coming from a development/design background, and I'm having problems understanding something that should be very basic. Please bear with me here.

I've made a scene with two cameras. I've made both cameras follow an object using an edited version of the SmoothFollow script. And have changed their Normalized View Point Rects so that one shows on the left side of the screen, and the other one on the right.

Now I want these cameras to point in separate directions, each one capturing a 90° viewing angle, and together capturing a 180° view. Why use two cameras instead of just one? Well I want to project each of these onto a corner in a room, and thereby creating a window on both walls going out into the generated world.

My initial reaction was, well, let's offset one camera by -45°, and the other by 45°, and set their viewing angles to 90°. In my head that means that they'll together capture a 180° viewing angle with the center being straight in front of my object. But apparently my reasoning here is faulty. What I ended up having to do was set the viewing angle to 115° to get them to cover 180° together and not overlap. And it seemed to work perfectly… Until…

I resized the scene view.

…

Suddenly the previous angles didn't work anymore. Now what I can't grasp is why would resizing the scene view, or moving my viewing angle on the scene view up or down affect what these cameras can see? If I position my view (not the object or any of the cameras) correctly, and set the right width of the scene view, then it works perfectly, but if I try to resize it in any way it affects the game view.

Example where my cameras are aligned up (well, almost, can see them diverging a bit): 180 almost working

Example where I resized the scene view slightly and they no longer line up: 180 not working

So what is going on here? What am I misunderstanding? And how can I get these two cameras to behave in the way I want?

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by cjdev · Apr 19, 2013 at 06:03 PM

I think the problem is that when you resize the scene view you are also changing the game view which is changing the target resolution. The cameras are adjusting to the new resolution accordingly.

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

12 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

Related Questions

How to rotate the head in the direction of the camera 2 Answers

walk around using unity and playmaker 0 Answers

How to edit terrain features such as grass to be removed and add in real time? 0 Answers

How Can I Rotate an object and stop 0 Answers

How to make an upgrading game? 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