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
2
Question by krystelle4 · Feb 22, 2016 at 01:17 PM · guivrzoom

Zoom in and out on an object VR Cardboard

Hello, i'm working on a virtual museum with google cardboard and i want to be able to zoom in and out on a painting with a controller button. (I'm using xbox controller for movement and interaction.)

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
1

Answer by EthanFischer · Sep 19, 2016 at 02:49 AM

I am also wondering how to implement zoom functionality in my Cardboard app. Help please!

I've tried editing the Field of View property in GvrEye, fruitlessly :( It's the only class in my project I can find that mentions field of view.

Edit: Aha. Found it.

Attached to my Camera is a script called Stereo Controller. After searching for "zoom", I found the following description of the matchMonoFOV property.

/// Determines the method by which the stereo cameras' FOVs are matched to the mono /// camera's FOV (assuming #matchMonoFOV is not 0). The default is to move the stereo /// cameras (#matchByZoom = 0), with the option to instead do a simple camera zoom /// (#matchByZoom = 1). In-between values yield a mix of the two behaviors. /// /// It is not recommended to use simple zooming for typical scene composition, as it /// conflicts with the VR need to match the user's head motion with the corresponding /// scene motion. This should be reserved for special effects such as when the player /// views the scene through a telescope or other magnifier (and thus the player knows /// that VR is going to be affected), or similar situations.

If you want to manually tweak your cameras zoom/FOV, set the 'matchMonoFOV' to 1 (it's a public property, so you can use the slider from the Unity editor). Then just set your cameras FOV property to whatever you desire (again, you can use the slider). Hope this helps someone.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to change the small circle in google cardboard with another texture? 0 Answers

GUI elements are not distorted by the VR camera 0 Answers

How to differentiate between Swipe and Tap using Gear VR? 1 Answer

GUI with fixed position in VR 0 Answers

Pushing on GUI button not working the second time the same scene is loaded (after a Google Cardboard scene) 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