Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 bogikolarov · Aug 26, 2015 at 08:53 PM · vrvuforiaaugmented-realityaugmented realitystereoscopic

Google Cardboard + Vuforia - Camera size is small

I'm trying to integrate Google Cardboard SDK to Vuforia Unity project. The way of achieving this is described here. My problem is that the camera size is too small. I'm uploading pictures to explain it better:

Here is what I achieved: what I achieved

Here is what I expected to be: what I expected

As you can see the camera size in the first picture is smaller than in the second. I'm pretty new to Vuforia and Unity and things aren't very clear. Can you tell me why the camera size is so small? Is there a way to make it big enough? Thanks in advance!

screenshot-2015-08-25-23-01-23.png (397.5 kB)
gf1rr.jpg (72.7 kB)
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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by dolims · Aug 31, 2015 at 03:58 AM

Comment out the following line in CardboardEye.cs:

 Vuforia.VuforiaBehaviour.Instance.ApplyCorrectedProjectionMatrix(proj, eye == Cardboard.Eye.Left);

It is forcing each stereo camera eye to use the same aspect ratio as the whole screen, which is not what you want.

Comment
Add comment · Show 3 · 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 orvedal · Dec 02, 2015 at 11:13 PM 1
Share

I am not using cardboard, but am having the same problem. I load a prefab ARCamera into my scene, and enable stereo camera and cannot find the options I'm looking for the use the correct aspect ratio(s). Any chance you know about this?

avatar image dolims orvedal · Dec 03, 2015 at 01:39 AM 0
Share

No, the internals of Vuforia are a bit mysterious to me. We found the fix above by luck, because I'm familiar with the code in CardboardEye.cs -- their modification to the script stood out to me, so we just tried commenting it out and that worked.

avatar image orvedal dolims · Dec 03, 2015 at 10:13 AM 0
Share

Thanks anyways. I even searched for the above function name in the entire project in studio and only came up with the definition.

avatar image
0

Answer by Guxar · Jan 16, 2016 at 07:31 PM

@dolims After you comment out that line, how do you change the aspect ratio? I dont know if I'm doing it wrong but, I try to change the ratio by changeing the values of the W and H in ViewportRect in the main camera rigth and left but nothing happens. How do you change it? Thank you.

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 dolims · Jan 18, 2016 at 09:20 PM 0
Share

Values on the left and right cameras are copied from $$anonymous$$ain Camera at startup and when the app resumes, or when you call StereoController.UpdateStereoValues(). So your changes might be getting overwritten.

avatar image
0

Answer by Ikaro88 · Sep 26, 2016 at 09:10 AM

i have try to comment but NOTHING change.....

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

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

Related Questions

Vuforia detect large objects 2 Answers

Custom Device Tracker for Vuforia? 0 Answers

Can I disable Vuforia's Device Tracker and implement my own? 0 Answers

Is there any way to combine text recognition with extended tracking in unity using vufria's sdk? 0 Answers

Is it possible to have an AR without image target or marker?,Is it possible to make an AR without a marker or target image? 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