how to draw lines,circles in webvr when on headset

  • hi guys, this is my problem, i want to draw some lines or circles in vtour, i have finished it on my pc chrome browser, just like this:

    and this is my code:

    Code
    <action name="getmoveathatv">   screentosphere(mouse.x,mouse.y,toh,tov);   js(getDrawCoordinate(get(toh),get(tov))); </action><events name="getclickandmove" onmousedown="js(addDrawSpot());setinterval(intervalmove, 0.02, getmoveathatv(); );" onmouseup="clearinterval(intervalmove);" />


    listen to the onmousedown event, and get the mouse coordinate,and then draw.
    but when i use headset like VIVE, in firefox reality browser, enter VR mode, it seems like i can't listen to the gamepad onmousedown event.
    if there is a way to draw circles,lines in vr mode?
    thanks in advance.

    Edited 4 times, last by eclothy (August 12, 2022 at 2:33 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!