In VR mode, change the width and color of the handle light invalid

In VR mode, change the width and color of the handle light invalid.

DEMO:https://playground.babylonjs.com/#ABDDD6#57
VR Device: PICO NEO 3
@babylonjs/core: ^6.3.1

After this code is running, the handle light has not changed anymore .

cc @RaananW

You are using the deprecated webvr experience helper, which has much less configuration options than the xr experience helper. Switch to the XR experience helper would be my first recommendation.

2 Likes

XR DEMO: xr-gui-h1-test | Babylon.js Playground (babylonjs.com)

This is an XR case, but the handle light has not changed. I don’t know how to set it up.

In this case, can change the line color of the handle,
but there is still no way to change the width.

And why the handle line color will be affected by HighlightLayer?

You can provide a different mesh if you want to override the default laser pointer mesh. It’s part of the options (customLasterPointerMeshGenerator). The default is:

CreateCylinder(
                  "laserPointer",
                  {
                      height: 1,
                      diameterTop: 0.0002,
                      diameterBottom: 0.004,
                      tessellation: 20,
                      subdivisions: 1,
                  },
                  scene
              );

This way you are in full control of the mesh.

1 Like

Solved, thank you very much.

1 Like