Hello, is it possible to recenter the camera in WebXR?
I would like to have the option to recenter the headset to the new user position like others platform does like SteamVR etc
my only guess will be to move the Entire scene to the user position, but I dont see a way to do that
When you say recenter, do you mean reset the rotation to make the user look at some default direction?
@RaananW yes but also position, not sure how to explain, but exactly the behavior that has SteamVR, lets say i started the session, i moved a bit to the right and rotated as well, i recenter, now my new origin will be this position, my best guess will be that you move all the Scene to the new user position and forward direction
this is an example, unfortunately this video just rotate the head, but you can see which option i refer to and try it? How to re-center SteamVR (updated July 2020) - YouTube
What’s the difference between this and setting your position to the position you want to be at?
** EDIT - sorry, I feel like this answer might have portraited the wrong attitude I am really trying to understand what the difference is. Technically it is the same, but I guess there is something I am missing. Is it really just the fact that the “world camera position” is now 0,0,0?
@RaananW yeap sorry probably is tricky to explain,
as my example before, lets say i started the game, my origin is 0,0,0, i move a little to the right, and now my position is 10,0,0 , i think you are suggesting, why shouldnt i just move to 0,0,0 again right? and i be again in the origin of my game,
but that is not what i want to do, what a want to do, is that, ok i am now at 10,0,0 and i want to convert that position to my new origin 0,0,0, like “apply transform” in blender
So it is, in general, a way to “reset” your transformation in your current transformation. I get it now.
I don’t mind looking into it. It is more than possible - webxr provides this functionality. We use it internally to move the user around when you are teleporting, for example.
Do you want to submit a github issue?