HoloLens2 + WebXR(Babylon) - Pointer Manipulation over 10m

F8 Shimada 6 Reputation points
2022-06-14T07:12:45.727+00:00

Thank you very much, I am looking forward to your comments.

I am developing HoloLens2 + WebXR(Babylon).
We use a pointer to perform operations, but it seems that objects more than 10m away cannot be manipulated.
(Strictly speaking, we have not tested the 10m away case. We tested the case of a more distant position and could not manipulate it)

In the case of XR apps made with MRTK2+Unity, it seems that the manipulation can be done by changing the Pointing Extent property.
https://learn.microsoft.com/ja-jp/windows/mixed-reality/mrtk-unity/mrtk2/configuration/mixed-reality-configuration-guide?view=mrtkunity-2022-05

In Babylon, I can use the MRTK controls.
However, I could not find a Unity-like setup.
https://doc.babylonjs.com/divingDeeper/gui/mrtk

Perhaps Pointing Extent is not supported by WebXR.
If you have any information on this, could you please let me know?

Alternatively, Unity+MRTK2 can be built into WebGL.
If Pointing Extent works at this time, the same code might work in Babylon.
However, I have no experience with either and have not been able to test that far.

Sorry but I am not good at English so I am using an automatic translation.
Sorry if there are any funny words.

Thank you very much.

HoloLens | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. F8 Shimada 6 Reputation points
    2022-06-15T04:45:23.8+00:00

    Thank you for your cooperation.
    Self resolved.
    I didn't know how to do it and asked a question here, but I should have asked it in the Babylon.js forum. Sorry about that.

    In Babylon.js I was able to change the pointer distance using maxPointerDistance.
    https://doc.babylonjs.com/typedoc/interfaces/BABYLON.IWebXRControllerPointerSelectionOptions

    I don't know if this is appropriate to post here, but here is an example of setting maxPointerDistance to Infinity in Babylon's PlayGround.
    https://playground.babylonjs.com/#43YQHC#16

    Thank you very much.

    Translated with www.DeepL.com/Translator (free version)

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.