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 humanflag · Dec 30, 2013 at 07:12 PM · cameraviewportorthographic

is it possible to set the view port rect at both ends

so I am thinking about a camera that is in-between orthographic and perspective. an orthographic view that would be wider at the far end so objects would get thinner the further away you are.

so the camera view would only be wider not higher, something in-between ortho and perspective... is there a simple way to achieve this ?

Comment
Add comment · Show 6
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 humanflag · Dec 30, 2013 at 07:18 PM 0
Share

widening the far clipping plane I guess

avatar image humanflag · Dec 31, 2013 at 12:32 AM 0
Share

alt text

avatar image humanflag · Dec 31, 2013 at 12:33 AM 0
Share

so I made this diagram to explain it a bit better. the third one is what I am trying to achieve, is this possible in unity ?

avatar image humanflag · Dec 31, 2013 at 12:34 AM 0
Share

first two are obviously perspective and orthographic

avatar image humanflag · Dec 31, 2013 at 01:45 PM 0
Share

is there maybe a better way to achieve this then to tinker with the camera projection, any ideas ?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by HappyMoo · Dec 31, 2013 at 02:12 PM

You can do this and worse ;) by manipulating the projection matrix.

https://docs.unity3d.com/Documentation/ScriptReference/Camera-projectionMatrix.html

Comment
Add comment · Show 2 · 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 humanflag · Jan 05, 2014 at 01:16 AM 0
Share

nice! this looks promising, is there any better documentation explaining the syntax better ?

avatar image HappyMoo · Jan 05, 2014 at 03:06 AM 0
Share

This looks like an article that the mathematically inclined or the persistently deter$$anonymous$$ed can use to figure this out: http://www.codeguru.com/cpp/misc/misc/graphics/article.php/c10123/Deriving-Projection-$$anonymous$$atrices.htm

Also another projection$$anonymous$$atrix manipulation tha may be interesting: http://wiki.unity3d.com/index.php?title=OffsetVanishingPoint

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

20 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 avatar image avatar image

Related Questions

Ortho camera viewport setup? 3 Answers

Prevent objects from disappearing when zooming in on an orthographic scene? 1 Answer

Center Object in Viewport 1 Answer

Why Is My Orthographic Camera Not Rendering at the Full Resolution? 1 Answer

How to resize a camera's orthoSize for an object to fit inside its rect viewport? 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