-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the ability to specify an alternative Object3D to the camera to apply the pose coming from a VRDevice #12651
Conversation
src/renderers/webvr/WebVRManager.js
Outdated
@@ -85,6 +85,14 @@ function WebVRManager( renderer ) { | |||
|
|||
}; | |||
|
|||
this.headObject = null; | |||
|
|||
this.setHeadObject = function ( object ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.setPoseTarget = function ( object ) {
?
src/renderers/webvr/WebVRManager.js
Outdated
@@ -85,6 +85,14 @@ function WebVRManager( renderer ) { | |||
|
|||
}; | |||
|
|||
this.headObject = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't make this one public...
Ready 👍 |
Should we also update the |
Probably. Should the camera be always updated as well? |
I'm calling now to |
…pply the pose coming from a VRDevice
I know just call |
How do you guys handle https://github.com/mrdoob/three.js/blob/dev/src/renderers/webvr/WebVRManager.js#L119-L129 Should I get rid of that code? In the webvr examples I opted for adding a user |
@mrdoob We have a 1.6 default height on 3DOF headsets to always simulate standing and we just apply whatever position comes from 6DOF headsets. We don't use that code so we're ok with getting rid of it. |
Oks! |
Thanks! |
…