• 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
Question by S1l3nz3 · Jul 08, 2016 at 11:33 AM · vroculusdisablecamera movementsamsung

Locking OVRCamerarig for a few seconds to load script.

I'm building an app for the GearVR. Basically, I need the virtual reality camera to stay put for a few seconds to let me load a script that instantiates a 3d model that will follow the camera around and will stay wit$$anonymous$$n the player's field of vision.

The problem is t$$anonymous$$s 3d model will take a bit to load and the player looking around will cause the object to spawn after the player has looked away and follow the camera but outside its field of view.

Is there any way to keep the ovr camera still for a few seconds so I can load t$$anonymous$$s script?

Comment

People who like this

0 Show 0
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

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Winterblood · Jul 08, 2016 at 11:42 AM

Never lock the camera, that will make the player nauseous. Is there a reason you can't spawn the object in front of the current camera position or preload the object based on proximity?

Comment
S1l3nz3

People who like this

1 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 S1l3nz3 · Jul 11, 2016 at 06:57 PM 0
Share

I have a PUN script that connects to the server in order to spawn a multi player object. So I send the coordinates where the camera is looking, but because the server takes about 2 seconds to respond, if the player moves, the object will not be synched to the camera. The easiest way to fix it would be to lock the camera for 2 seconds, but if it's not possible I will take any suggestions haha.

avatar image

Answer by S1l3nz3 · Jul 12, 2016 at 05:42 PM

I'm using PUN to spawn a game object that keeps track of the position of the camera. The problem is since it has to connect to their server, the script will send the position where it needs to spawn but the player usually moves around and by the time the server response comes back, the object will of course spawn on the spot he was looking at the beginning instead of where hes looking at the moment. Thanks for answering by the way!

Comment

People who like this

0 Show 0 · 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

GearVR, Using Swipe to control Camera in VR 0 Answers

GearVR Recenters view when you take off and put on the headset 1 Answer

anybody working on gear vr oculus ? 0 Answers

Occulus Vr and Unity 0 Answers

Unity on Gear VR with Galaxy S6 2 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