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
2
Question by Reactorcore · Feb 08, 2012 at 02:02 PM · camerafov360panorama

360 degree camera FOV?

Is it possible for a camera have a full field of view of 360 degrees?

The point is to have a player character in a FPS/TPS game have an ability to look everywhere at once. The image would be such of a 360' panorama image both horizontally and vertically fitted across the entire screen. Distortions do not matter, as it is simply a temporary ability the player may toggle on/off.

This video shows what I'm trying to achieve

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

4 Replies

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

Answer by Marnix · Feb 08, 2012 at 02:52 PM

Well it is possible actually. But you need to have PRO...

Check this function: `Camera.RenderToCubemap`

It makes a cubemap and you can say which sides of the cubemap you need. Rendering this to a long rendertexture can make it possible to show the cubemap back on screen. It needs some coding, but yes it is possible.

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
1

Answer by DaveA · Aug 03, 2012 at 12:37 AM

You could also have two cameras of 180 degrees each, one forward the other rear facing, and render side-by-side.

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 Reactorcore · Aug 03, 2012 at 02:27 PM 0
Share

A simple, yet great idea. Thank you!

avatar image hacky97 · Nov 19, 2014 at 02:39 PM 0
Share

Sorry, but it is impossible to render a 180 degree camera. You could render 4 90 degree camera's, but it would create a nasty edge because of the non-existing camera distortion. I tried it once with 90 4 degree camera's. That works out out, but takes some time.

avatar image
0

Answer by CHPedersen · Feb 08, 2012 at 02:20 PM

This is impossible, because the camera model used in standard computer graphics is based on a 2-dimensional rectangular viewport (to fit it to a screen). You can read this article on graphical perspective to learn more:

http://en.wikipedia.org/wiki/Perspective_%28graphical%29

The short version is that the width of the plane onto which the scene is projected approaches infinity when the field of view approaches 180 degrees, and 0 when FOV ~ 0. That's why Unity's cameras have the FOV value limited to 1-179.

Real world cameras with fields of view higher than 180 do not project the scene onto a 2D rectangular surface, they use a cylindar instead, and what you see in that YouTube video is what happens when you project 360 degrees onto a cylindar and then unwrap the cylindar's surface to a 2D sheet instead.

But, as said, the cameras of computer graphics aren't mathematically designed that way.

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 Reactorcore · Feb 08, 2012 at 06:47 PM

Thanks for the replies, both of you.

I'm definitely going to read that wiki page you suggested, Christian H Pedersen. It wouldn't hurt to learn how this stuff works and what limitation should one consider. Thanks.

The scripting reference says the Camera.RenderToCubemap that Marnix suggested might be quite expensive to do in real time, but even if it would work at a slower FPS or with a simplified wireframe view, it would still be perfect for the purpose. Its just a quick awareness booster the player could do anytime, not the main game camera, so this is exactly what I'm looking for.

However since I do not have unity pro, I'll need to implement this feature much later when I can afford to buy pro. I'll probably find the answer later on how to pull this off when the time comes.

Comment
Add comment · Show 1 · 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 Marnix · Feb 08, 2012 at 11:02 PM 1
Share

Actually, you can set a number of interesting options, like the resolution or the layers that need to be rendered. Also, you can (if you are a student) buy a commercial year license for less than the default 1000 euros. See www.studica.com for more info.

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

7 People are following this question.

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

Related Questions

How to use a 360° panoramic photo as a texture inside a cylinder 4 Answers

Screen position out of view frustum error on FOV change? 0 Answers

Native camera FOV? 0 Answers

Zooming camera using move z position. 0 Answers

Why is there camera sway when using a 360 controller? 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