Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 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 /
avatar image
0
Question by CiberX15 · Feb 19, 2021 at 08:23 PM · steamvirtualreality

How do I manually offset a VR players head?

Ok. So what I am trying to do is ridiculous, and probably sickness inducing. But I am having fun in VR so let me have this! What I am trying to do is make a game where you play as a giraffe. I want to offset the players point of view in VR so that their POV is from about 10ft above where their actual head is. So if they look down in reality, their vr head will swing in a wide arc bringing them closer to the ground. I am using the SteamVR plugin to manage my vr and it really doesn't want to let me do this.


If I set the VR Eye position in Update() Editor shows that the object has moved to the correct position, but the image rendered to the headset does not.


Here's the really fun part. If I set the VR Eye position in OnPreRender() it works perfectly! But only in the right eye! The left eye continues to render from the normal head position!


I assume somewhere the value is being updated, probably to render from the second eye position, but I can't figure out where that logic is run to modify the position. I don't see it in the steam VR_Camera script.


Does anyone know what is resetting the camera position, and/or how I can modify it?

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
0

Answer by MUG806 · Feb 19, 2021 at 11:22 PM

Its not really intended to manually change the positions of the various tracked objects within the vr rig, however you can move the entire rig, or scale it. You could try finding the position of the head within the vr rig space, and then also move the position of the rig itself by a multiple of that amount. Scaling the rig will have similar effects, but will also make everything appear smaller.

Comment
Add comment · Show 4 · 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 CiberX15 · Feb 20, 2021 at 12:26 AM 0
Share

I've played with variations of that in other games actually. The problem with that is it scales the player uniformly. Like, with no other indicators, the player won't notice anything has changed.

What I am looking for is an effect where the players head is placed 1-10ft up but the pivot point remains at the original head location.

avatar image MUG806 CiberX15 · Feb 20, 2021 at 08:52 AM 0
Share

In that case go with my first suggestion of moving the rig as the head moves, not scaling.

avatar image CiberX15 MUG806 · Feb 20, 2021 at 09:23 PM 0
Share

Doesn't moving the rig move the head with it? The head is a child of the rig, so if I try to move the rig based on head motion won't that create an infinite movement loop?

Show more comments

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

119 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 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 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 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

Steam VR Display Hurt HUD 0 Answers

Steam VR always asks for BINDING in starting the game 0 Answers

Apply Local Rotations to VR Camera 0 Answers

How to add Steam Vr Script "Interactable" during runtime without crashing on interact 0 Answers

Graphics look "wiggly" when moving to far from the origin (VR game) 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