Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by Noelia_N_Encarnacion · Dec 02, 2015 at 08:32 PM · cameraperspectiveorthographic camera

Camera Orthographic to Perspective with rotation

hello I was wondering if anyone knows a code for making a Camera Orthographic view to smoothly rotate to the Perspective view. I was also wanting to trigger this event from pressing the 1 key to be perspective and the 2 key to go back to Orthographic in the form of rotation. I have no idea how i can make this code possible.can anyone help out ? Thanks

Comment
Add comment · Show 5
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 Owen-Reynolds · Dec 02, 2015 at 08:38 PM 0
Share

Orthographic view is like looking at the Scene from very far away, with a very narrow camera (try it -- pull a camera back and narrow the camera angle (size) -- the scene will look less perspective-y and more orthograph-y.)

So you could have the perspective camera zoom in from very far, using trig to adjust the Size to keep the same borders. But I think that would make people dizzy.

I think just snapping the views is the best thing.

avatar image Noelia_N_Encarnacion Owen-Reynolds · Dec 02, 2015 at 10:34 PM 0
Share

yea thanks, I'm currently making a game in which a 2D camera will rotate to a 3D camera so that you can play the game in both 2D and 3D. I was also thinking of the possibility of having 2 separate camera one thats Orthographic and one in perspective and just see if i can code the swiching of the camera's with the 1 & 2 key but yea i'm just experimenting.

avatar image sankalp22 · Dec 03, 2015 at 05:30 AM 0
Share

I found this code at the forums and it works: http://forum.unity3d.com/threads/32765-Smooth-transition-between-perspective-and-orthographic-modes

avatar image Noelia_N_Encarnacion sankalp22 · Dec 03, 2015 at 09:10 PM 0
Share

yes I seen this before but it wasn't exactly what i was looking for.

for ex.

your playing $$anonymous$$ario and obviously the camera is in Orthographic view right? well as you play a 2D platform and press whatever button the orthographic camera then rotates to the point of view of $$anonymous$$ario. you are now seeing the world in perspective in his eyes.

I was doing some experiments and thought i could probably just create an animation for the camera so that when i press the button then the game will trigger the animation. The code they have in that link dose help a lot since i would need to control the zoom in functions for the perspective and orthographic. but Thank you the code dose help

avatar image Owen-Reynolds Noelia_N_Encarnacion · Dec 03, 2015 at 09:27 PM 0
Share

Cameras from and almost-from the player are called "first-person" and "third-person" cameras. You might be able to find more, Searching using those terms.

An overhead camera doesn't even have to be orthographic. Usually a narrow perspective camera shows everything just fine, with a pretty slight 3D look.

0 Replies

· Add your reply
  • Sort: 

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Preventing world interactions when using an UI element with an Orthographic 3D camera 0 Answers

Orthographic camera size not changing 0 Answers

Cursor not staying centered to gameobject 0 Answers

Orthographic camera realtime shadows problem 1 Answer

Orthographic Camera Appears to be Only Rendering Top Half of the Screen? 0 Answers


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